Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.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/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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(PowerSystems.Examples.AC3ph.Generation.Islanding,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="ACpower.p.1.|ACpower.p.2.|ACpower.p.3.|DCpower.p|DCvoltage.v|Time",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding") translateModel(PowerSystems.Examples.AC3ph.Generation.Islanding,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="ACpower.p.1.|ACpower.p.2.|ACpower.p.3.|DCpower.p|DCvoltage.v|Time",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 100.6 kB / 16.5 MB, free: 6.688 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.001472/0.001472, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.337/1.337, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1761/0.1761, allocations: 38.03 MB / 329.3 MB, free: 9.109 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 58.25 kB / 398.1 MB, free: 34.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1158, allocations: 58.07 MB / 456.2 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.Islanding): time 0.01305/0.1289, allocations: 11.77 MB / 467.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01023/0.1391, allocations: 6.901 MB / 474.8 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009922/0.1402, allocations: 71.56 kB / 474.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02023/0.1604, allocations: 12.63 MB / 487.5 MB, free: 9.109 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00259/0.163, allocations: 0.7429 MB / 488.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001838/0.1649, allocations: 0.5569 MB / 488.8 MB, free: 7.809 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005594/0.1705, allocations: 4.496 MB / 493.3 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001466/0.172, allocations: 0.9699 MB / 494.3 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.1731, allocations: 0.7621 MB / 495.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001177/0.1743, allocations: 1.016 MB / 496.1 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001704/0.1745, allocations: 91.94 kB / 496.2 MB, free: 436 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007622/0.1753, allocations: 407.3 kB / 496.6 MB, free: 28 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005194/0.1758, allocations: 0.5453 MB / 497.1 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007135/0.1765, allocations: 0.7304 MB / 497.8 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001837/0.1784, allocations: 2.153 MB / 500 MB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1784, allocations: 0 / 500 MB, free: 12.59 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1784, allocations: 0 / 500 MB, free: 12.59 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.994e-05/0.1784, allocations: 8 kB / 0.4883 GB, free: 12.58 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 294 * Number of variables: 294 Notification: Performance of Generate backend data structure: time 0.003795/0.1822, allocations: 1.9 MB / 0.4901 GB, free: 10.62 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.1823, allocations: 8.031 kB / 0.4902 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009662/0.1833, allocations: 230.8 kB / 0.4904 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002348/0.1856, allocations: 1.152 MB / 0.4915 GB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.585e-05/0.1857, allocations: 82.2 kB / 0.4916 GB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003476/0.1861, allocations: 143.9 kB / 0.4917 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.1885, allocations: 1.481 MB / 0.4932 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.1885, allocations: 4 kB / 0.4932 GB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.1886, allocations: 47.98 kB / 0.4932 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001608/0.1888, allocations: 82.03 kB / 0.4933 GB, free: 7.273 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002076/0.1909, allocations: 1.21 MB / 0.4945 GB, free: 6.055 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008235/0.1991, allocations: 5.701 MB / 0.5 GB, free: 96 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2391/0.4383, allocations: 0.9554 MB / 0.501 GB, free: 57.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001091/0.4395, allocations: 490.8 kB / 0.5014 GB, free: 57.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.793e-05/0.4396, allocations: 10.42 kB / 0.5014 GB, free: 57.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.837e-05/0.4396, allocations: 49.12 kB / 0.5015 GB, free: 57.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=76): time 4.559e-06/0.4396, allocations: 0 / 0.5015 GB, free: 57.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.007898/0.4475, allocations: 3.67 MB / 0.5051 GB, free: 55.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.4476, allocations: 172.9 kB / 0.5052 GB, free: 55.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.4491, allocations: 0.9317 MB / 0.5062 GB, free: 55.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.934e-05/0.4492, allocations: 41.05 kB / 0.5062 GB, free: 55.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004113/0.4496, allocations: 0.6319 MB / 0.5068 GB, free: 54.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.4498, allocations: 304.4 kB / 0.5071 GB, free: 54.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002913/0.4501, allocations: 183.8 kB / 0.5073 GB, free: 54.42 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.086e-05/0.4502, allocations: 347.8 kB / 0.5076 GB, free: 54.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006737/0.4509, allocations: 400.8 kB / 0.508 GB, free: 53.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008197/0.4518, allocations: 0.6371 MB / 0.5086 GB, free: 53.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.4534, allocations: 1.089 MB / 0.5097 GB, free: 52.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4534, allocations: 2.188 kB / 0.5097 GB, free: 52.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00464/0.4581, allocations: 2.046 MB / 0.5117 GB, free: 51.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.4581, allocations: 8.281 kB / 0.5117 GB, free: 51.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.4581, allocations: 9.203 kB / 0.5117 GB, free: 51.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003094/0.4612, allocations: 0.7944 MB / 0.5125 GB, free: 51.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006351/0.4619, allocations: 149.8 kB / 0.5126 GB, free: 51.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01426/0.4762, allocations: 9.738 MB / 0.5221 GB, free: 45.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.4773, allocations: 55.3 kB / 0.5222 GB, free: 45.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.103e-05/0.4774, allocations: 38.34 kB / 0.5222 GB, free: 45.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001155/0.4786, allocations: 0.6845 MB / 0.5229 GB, free: 45 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006553/0.4792, allocations: 0.6179 MB / 0.5235 GB, free: 44.55 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001195/0.4804, allocations: 1.041 MB / 0.5245 GB, free: 43.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.93e-06/0.4805, allocations: 2.656 kB / 0.5245 GB, free: 43.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization_lambda0): time 0.003675/0.4841, allocations: 1.887 MB / 0.5263 GB, free: 43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.4842, allocations: 14.84 kB / 0.5264 GB, free: 42.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.4842, allocations: 4.094 kB / 0.5264 GB, free: 42.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002393/0.4866, allocations: 0.7694 MB / 0.5271 GB, free: 42.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005406/0.4871, allocations: 161 kB / 0.5273 GB, free: 42.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.4975, allocations: 9.294 MB / 0.5363 GB, free: 34.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008858/0.4984, allocations: 55.86 kB / 0.5364 GB, free: 34.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.187e-05/0.4985, allocations: 40 kB / 0.5364 GB, free: 34.17 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,limPID_DC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,40)} Notification: Performance of prepare postOptimizeDAE: time 0.0003103/0.4988, allocations: 244.2 kB / 0.5367 GB, free: 33.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.499, allocations: 110.6 kB / 0.5368 GB, free: 33.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.5007, allocations: 1.33 MB / 0.5381 GB, free: 32.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.5007, allocations: 12 kB / 0.5381 GB, free: 32.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.5008, allocations: 0 / 0.5381 GB, free: 32.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.5008, allocations: 7.969 kB / 0.5381 GB, free: 32.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003086/0.5039, allocations: 2.641 MB / 0.5407 GB, free: 29.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.5039, allocations: 0 / 0.5407 GB, free: 29.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008862/0.5048, allocations: 176 kB / 0.5408 GB, free: 29.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002178/0.505, allocations: 94.34 kB / 0.5409 GB, free: 29.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.359e-05/0.5051, allocations: 31.92 kB / 0.541 GB, free: 29.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.5069, allocations: 4.129 MB / 0.545 GB, free: 24.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.507, allocations: 0 / 0.545 GB, free: 24.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002099/0.5091, allocations: 1.902 MB / 0.5468 GB, free: 22.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000309/0.5094, allocations: 263.7 kB / 0.5471 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.5095, allocations: 24 kB / 0.5471 GB, free: 22.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006118/0.5101, allocations: 47.95 kB / 0.5472 GB, free: 22.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.5103, allocations: 60.84 kB / 0.5472 GB, free: 22.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.065e-05/0.5103, allocations: 20 kB / 0.5472 GB, free: 22.42 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008001/0.5111, allocations: 0.6462 MB / 0.5479 GB, free: 21.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5111, allocations: 0 / 0.5479 GB, free: 21.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001872/0.513, allocations: 0.5491 MB / 0.5484 GB, free: 21.22 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 13 (turboGen.generator.i_s[1],turboGen.generator.i_s[2],turboGen.generator.i_s[3],turboGen.generator.i_rd[1],turboGen.generator.i_rq[1],turboGen.governor.speedReg.x_scaled[1],turboGen.rotor.phi,turboGen.rotor.w,capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,limPID_DC.I.y,limPID_DC.D.x) * 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 (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002813/0.5133, allocations: 158.8 kB / 0.5486 GB, free: 21.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004465/0.5178, allocations: 2.985 MB / 0.5515 GB, free: 18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5178, allocations: 0 / 0.5515 GB, free: 18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009635/0.5188, allocations: 0.8181 MB / 0.5523 GB, free: 17.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.5201, allocations: 267.1 kB / 0.5525 GB, free: 16.89 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00485/0.5249, allocations: 3.796 MB / 0.5562 GB, free: 13.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006922/0.5257, allocations: 1.332 MB / 0.5575 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008827/0.5265, allocations: 264.8 kB / 0.5578 GB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002473/0.5268, allocations: 75.42 kB / 0.5579 GB, free: 11.42 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5268, allocations: 0 / 0.5579 GB, free: 11.42 MB / 382.1 MB Notification: Performance of Templates: time 0.03619/0.563, allocations: 24.26 MB / 0.5816 GB, free: 3.355 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe 2>&1)