Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001083/0.001089, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.14/1.14, allocations: 194.2 MB / 212.2 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001662/0.001662, allocations: 127.1 kB / 256.6 MB, free: 4.336 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1667/0.1667, allocations: 37.95 MB / 338.8 MB, free: 2.215 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 63.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07348/0.07467, allocations: 52.19 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.004322/0.07903, allocations: 5.068 MB / 459.1 MB, free: 11.46 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.08117, allocations: 1.656 MB / 460.7 MB, free: 9.801 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003461/0.08155, allocations: 27.88 kB / 460.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008819/0.08244, allocations: 362.6 kB / 461.1 MB, free: 9.418 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000449/0.08289, allocations: 239.1 kB / 461.3 MB, free: 9.184 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000479/0.08338, allocations: 215.6 kB / 461.5 MB, free: 8.973 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005332/0.08393, allocations: 0.8888 MB / 462.4 MB, free: 8.082 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003948/0.08433, allocations: 264.6 kB / 462.7 MB, free: 7.828 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002407/0.08459, allocations: 223 kB / 462.9 MB, free: 7.609 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003626/0.08496, allocations: 374.9 kB / 463.3 MB, free: 7.242 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.983e-05/0.08502, allocations: 28 kB / 463.3 MB, free: 7.215 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003477/0.08537, allocations: 247.5 kB / 463.5 MB, free: 6.973 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.08552, allocations: 223.4 kB / 463.8 MB, free: 6.754 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001711/0.0857, allocations: 246.8 kB / 464 MB, free: 6.512 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004432/0.08615, allocations: 0.6503 MB / 464.6 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.08616, allocations: 0 / 464.6 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.08617, allocations: 0 / 464.6 MB, free: 5.859 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.08618, allocations: 0 / 464.6 MB, free: 5.859 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001201/0.08739, allocations: 0.7738 MB / 465.4 MB, free: 5.035 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.08743, allocations: 12.03 kB / 465.4 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005058/0.08794, allocations: 88.22 kB / 465.5 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005298/0.08849, allocations: 411.2 kB / 465.9 MB, free: 4.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.08851, allocations: 25.38 kB / 465.9 MB, free: 4.477 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001008/0.08862, allocations: 47.92 kB / 466 MB, free: 4.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006966/0.08933, allocations: 0.6804 MB / 466.7 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.08935, allocations: 0 / 466.7 MB, free: 3.711 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.919e-05/0.0894, allocations: 19.98 kB / 466.7 MB, free: 3.691 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001528/0.08956, allocations: 52.91 kB / 466.7 MB, free: 3.637 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007473/0.09031, allocations: 0.6674 MB / 467.4 MB, free: 2.973 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00266/0.09298, allocations: 2.516 MB / 469.9 MB, free: 332 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004265/0.09342, allocations: 345.3 kB / 470.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.0937, allocations: 229.6 kB / 470.5 MB, free: 15.74 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.09374, allocations: 11.92 kB / 470.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.09378, allocations: 38.56 kB / 470.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.306e-06/0.09379, allocations: 3.984 kB / 470.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.001832/0.09563, allocations: 1.352 MB / 471.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.09568, allocations: 81.38 kB / 472 MB, free: 14.16 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.09595, allocations: 300.4 kB / 472.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.464e-05/0.09599, allocations: 33.7 kB / 472.3 MB, free: 13.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.09614, allocations: 251.6 kB / 472.5 MB, free: 13.57 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.772e-05/0.09624, allocations: 157.7 kB / 472.7 MB, free: 13.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000128/0.09638, allocations: 98.28 kB / 472.8 MB, free: 13.31 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.09649, allocations: 346.8 kB / 473.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000259/0.09676, allocations: 201 kB / 473.3 MB, free: 12.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003424/0.09711, allocations: 365.2 kB / 473.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006407/0.09776, allocations: 0.6099 MB / 474.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.09777, allocations: 4 kB / 474.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008246/0.0986, allocations: 0.6267 MB / 474.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.09863, allocations: 4 kB / 474.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.09864, allocations: 8 kB / 474.9 MB, free: 11.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.09867, allocations: 8 kB / 474.9 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.09909, allocations: 115.8 kB / 475.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.09911, allocations: 12.53 kB / 475.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.09933, allocations: 27.98 kB / 475.1 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.929e-05/0.09938, allocations: 16 kB / 475.1 MB, free: 10.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001977/0.09958, allocations: 221.6 kB / 475.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.504e-05/0.09967, allocations: 47.45 kB / 475.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006892/0.1004, allocations: 488.6 kB / 475.9 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-05/0.1004, allocations: 12 kB / 475.9 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1004, allocations: 4 kB / 475.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1004, allocations: 0 / 475.9 MB, free: 10.06 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.102, allocations: 1.104 MB / 477 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/0.102, allocations: 0 / 477 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.1023, allocations: 71.89 kB / 477 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.1023, allocations: 4.094 kB / 477.1 MB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.1024, allocations: 8 kB / 477.1 MB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1024, allocations: 4 kB / 477.1 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1024, allocations: 0 / 477.1 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0025/0.1049, allocations: 2.271 MB / 479.3 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/0.105, allocations: 112.6 kB / 479.4 MB, free: 6.262 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.105, allocations: 20.02 kB / 479.5 MB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.1052, allocations: 15.92 kB / 479.5 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.1053, allocations: 24.11 kB / 479.5 MB, free: 6.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-05/0.1053, allocations: 8 kB / 479.5 MB, free: 6.195 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001736/0.1055, allocations: 211.1 kB / 479.7 MB, free: 5.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1055, allocations: 0 / 479.7 MB, free: 5.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005211/0.106, allocations: 136 kB / 479.8 MB, free: 5.859 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001923/0.1062, allocations: 143 kB / 480 MB, free: 5.707 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006369/0.1069, allocations: 0.4891 MB / 480.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1069, allocations: 0 / 480.5 MB, free: 5.219 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000264/0.1072, allocations: 236 kB / 480.7 MB, free: 4.988 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004644/0.1076, allocations: 76.73 kB / 480.8 MB, free: 4.914 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.1094, allocations: 1.568 MB / 482.4 MB, free: 3.289 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.1098, allocations: 0.8821 MB / 483.2 MB, free: 2.375 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003275/0.1101, allocations: 127.1 kB / 483.4 MB, free: 2.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.167e-05/0.1102, allocations: 35.44 kB / 483.4 MB, free: 2.223 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1102, allocations: 0 / 483.4 MB, free: 2.223 MB / 330.7 MB Notification: Performance of Templates: time 0.007006/0.1172, allocations: 3.9 MB / 487.3 MB, free: 14.32 MB / 346.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)