Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Examples.OneSourceOneLigneWithFault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault") translateModel(PowerSysPro.Examples.OneSourceOneLigneWithFault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004085/0.004085, allocations: 94.86 kB / 15.92 MB, free: 6.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009741/0.0009741, allocations: 199.8 kB / 16.83 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.212/1.212, allocations: 222.9 MB / 240.5 MB, free: 4.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.1348/0.1348, allocations: 8.092 MB / 298.7 MB, free: 2.109 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009955/0.0009955, allocations: 59.91 kB / 361 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08329/0.0843, allocations: 51.52 MB / 412.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceOneLigneWithFault): time 0.002618/0.08697, allocations: 1.948 MB / 414.5 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00176/0.08875, allocations: 1.598 MB / 416.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.111e-05/0.08885, allocations: 8 kB / 416.1 MB, free: 6.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003707/0.08924, allocations: 119.6 kB / 416.2 MB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002954/0.08954, allocations: 135.3 kB / 416.3 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00149/0.09104, allocations: 0.8446 MB / 417.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003629/0.09141, allocations: 322.5 kB / 417.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.09162, allocations: 111.1 kB / 417.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.09174, allocations: 127.5 kB / 417.7 MB, free: 4.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.09199, allocations: 171.3 kB / 417.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.662e-05/0.09203, allocations: 20 kB / 417.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003185/0.09236, allocations: 215.7 kB / 418.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/0.09241, allocations: 51.83 kB / 418.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.09257, allocations: 163.1 kB / 418.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005242/0.0931, allocations: 0.5027 MB / 418.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.09311, allocations: 0 / 418.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.09312, allocations: 0 / 418.8 MB, free: 3.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.09313, allocations: 0 / 418.8 MB, free: 3.84 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002587/0.09573, allocations: 0.918 MB / 419.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.09578, allocations: 8.031 kB / 419.8 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002423/0.09603, allocations: 44.62 kB / 419.8 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.0964, allocations: 311.6 kB / 420.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.09643, allocations: 16.81 kB / 420.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.096e-05/0.09649, allocations: 32.38 kB / 420.2 MB, free: 2.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.09702, allocations: 335.8 kB / 420.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.09704, allocations: 192 / 420.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.09708, allocations: 7.938 kB / 420.5 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.0971, allocations: 8 kB / 420.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004681/0.09757, allocations: 337.6 kB / 420.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.09929, allocations: 1.346 MB / 422.2 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009152/0.1002, allocations: 0.5202 MB / 422.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003027/0.1005, allocations: 212.7 kB / 422.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001069/0.1016, allocations: 0.8935 MB / 423.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006244/0.1023, allocations: 358.6 kB / 424.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.924e-06/0.1023, allocations: 0 / 424.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003053/0.1053, allocations: 1.095 MB / 425.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.965e-05/0.1054, allocations: 199.9 kB / 425.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.1057, allocations: 272.8 kB / 425.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.1058, allocations: 29.7 kB / 425.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.1059, allocations: 156.4 kB / 425.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.793e-05/0.1059, allocations: 110.5 kB / 426 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.1061, allocations: 82.11 kB / 426.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1062, allocations: 334.8 kB / 426.4 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000296/0.1065, allocations: 192.8 kB / 426.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003392/0.1069, allocations: 264.9 kB / 426.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004433/0.1113, allocations: 1.411 MB / 428.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.1113, allocations: 4 kB / 428.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001628/0.113, allocations: 0.8234 MB / 429.1 MB, free: 8.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.465e-05/0.113, allocations: 41.69 kB / 429.1 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1131, allocations: 0 / 429.1 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.1143, allocations: 308.6 kB / 429.4 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.1145, allocations: 63.91 kB / 429.5 MB, free: 8.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003352/0.1179, allocations: 2.725 MB / 432.2 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002693/0.1181, allocations: 35.62 kB / 432.3 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.1182, allocations: 20.03 kB / 432.3 MB, free: 5.668 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: lnFault.myFault.fault:DISCRETE(start = false fixed = true ) "true means the fault is active" type: Boolean lnFault.myFault.Y.re:DISCRETE(start = 0.0 fixed = true ) "Real part of complex number" type: Real lnFault.myFault.Y.im:DISCRETE(start = 0.0 fixed = true ) "Imaginary part of complex number" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.lnFault.myFault.fault,lnFault.myFault.fault,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.lnFault.myFault.Y.re,$PRE.lnFault.myFault.Y.im,lnFault.myFault.Y.im,lnFault.myFault.Y.re) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002626/0.1185, allocations: 208.2 kB / 432.5 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.515e-05/0.1185, allocations: 27.62 kB / 432.5 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001556/0.1201, allocations: 0.7408 MB / 433.3 MB, free: 4.664 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.1201, allocations: 4 kB / 433.3 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.1201, allocations: 0 / 433.3 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1201, allocations: 7.938 kB / 433.3 MB, free: 4.652 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003801/0.1205, allocations: 473.2 kB / 433.7 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1205, allocations: 0 / 433.7 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.119e-05/0.1206, allocations: 23.98 kB / 433.8 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001153/0.1218, allocations: 312.8 kB / 434.1 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.1218, allocations: 11.98 kB / 434.1 MB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003224/0.125, allocations: 2.71 MB / 436.8 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.125, allocations: 0 / 436.8 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001492/0.1265, allocations: 0.7451 MB / 437.5 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.228e-05/0.1266, allocations: 108.6 kB / 437.6 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.429e-05/0.1267, allocations: 19.98 kB / 437.6 MB, free: 32 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.1269, allocations: 12 kB / 437.7 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.156/0.2829, allocations: 23.48 kB / 437.7 MB, free: 57.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.311e-05/0.283, allocations: 9.188 kB / 437.7 MB, free: 57.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002104/0.2833, allocations: 192.2 kB / 437.9 MB, free: 57.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2833, allocations: 0 / 437.9 MB, free: 57.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006502/0.2839, allocations: 127.7 kB / 438 MB, free: 57.67 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,lnFault.myFault.Y.re,lnFault.myFault.Y.im,lnFault.myFault.fault) * Number of discrete states: 7 ($whenCondition4,lnFault.myFault.Y.im,lnFault.myFault.Y.re,$whenCondition3,$whenCondition2,lnFault.myFault.fault,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001939/0.2841, allocations: 125.4 kB / 438.1 MB, free: 57.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001217/0.2853, allocations: 0.7308 MB / 438.9 MB, free: 57.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2854, allocations: 0.5625 kB / 438.9 MB, free: 57.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007227/0.2861, allocations: 0.5245 MB / 439.4 MB, free: 57.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002395/0.2863, allocations: 32.78 kB / 439.4 MB, free: 57.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008393/0.2872, allocations: 0.6885 MB / 440.1 MB, free: 56.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.2874, allocations: 0.765 MB / 440.9 MB, free: 56.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.2875, allocations: 35.22 kB / 440.9 MB, free: 56.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.262e-05/0.2875, allocations: 26.58 kB / 440.9 MB, free: 56.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2875, allocations: 0 / 440.9 MB, free: 56.2 MB / 366.1 MB Notification: Performance of Templates: time 0.008021/0.2956, allocations: 6.151 MB / 447.1 MB, free: 55.96 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.makefile (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.sim & ./PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneSourceOneLigneWithFault.pipe 2>&1)