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.001356/0.001356, allocations: 116.1 kB / 16.63 MB, free: 6.941 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.001453/0.001453, allocations: 193.9 kB / 17.55 MB, free: 6.039 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.343/1.343, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1736/0.1736, allocations: 38.03 MB / 329.4 MB, free: 9.047 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 59.98 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1054, allocations: 58.06 MB / 456.4 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.Islanding): time 0.01339/0.1188, allocations: 11.78 MB / 468.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01047/0.1293, allocations: 6.717 MB / 474.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001724/0.1311, allocations: 67.56 kB / 474.9 MB, free: 5.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0198/0.151, allocations: 12.97 MB / 487.9 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002368/0.1533, allocations: 0.7313 MB / 488.6 MB, free: 8.086 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001875/0.1552, allocations: 0.5648 MB / 489.2 MB, free: 7.523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004935/0.1602, allocations: 3.591 MB / 492.8 MB, free: 3.922 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002187/0.1624, allocations: 1.238 MB / 494 MB, free: 2.664 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001682/0.1641, allocations: 0.9104 MB / 494.9 MB, free: 1.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001751/0.1659, allocations: 1.062 MB / 496 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004087/0.1663, allocations: 156 kB / 496.1 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001153/0.1675, allocations: 471.4 kB / 496.6 MB, free: 72 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008208/0.1683, allocations: 0.6117 MB / 497.2 MB, free: 15.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.1695, allocations: 0.8008 MB / 498 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002662/0.1722, allocations: 2.212 MB / 0.4885 GB, free: 12.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1722, allocations: 0 / 0.4885 GB, free: 12.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1722, allocations: 0 / 0.4885 GB, free: 12.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.088e-05/0.1723, allocations: 0 / 0.4885 GB, free: 12.43 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.004716/0.177, allocations: 1.908 MB / 0.4904 GB, free: 10.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.1771, allocations: 8.031 kB / 0.4904 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.1781, allocations: 234.8 kB / 0.4906 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002455/0.1806, allocations: 1.144 MB / 0.4917 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.798e-05/0.1807, allocations: 86.19 kB / 0.4918 GB, free: 8.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003962/0.1811, allocations: 135.9 kB / 0.4919 GB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002944/0.184, allocations: 1.485 MB / 0.4934 GB, free: 7.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.214e-05/0.1841, allocations: 7.938 kB / 0.4934 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001362/0.1842, allocations: 48 kB / 0.4934 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001719/0.1844, allocations: 78.03 kB / 0.4935 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002305/0.1867, allocations: 1.203 MB / 0.4947 GB, free: 5.91 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2361/0.4229, allocations: 5.71 MB / 0.5002 GB, free: 56.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001922/0.4248, allocations: 0.9541 MB / 0.5012 GB, free: 56.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009304/0.4258, allocations: 499.7 kB / 0.5017 GB, free: 56.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.636e-05/0.4259, allocations: 9.016 kB / 0.5017 GB, free: 56.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.897e-05/0.4259, allocations: 44.83 kB / 0.5017 GB, free: 56.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=76): time 3.457e-06/0.4259, allocations: 0 / 0.5017 GB, free: 56.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.007565/0.4335, allocations: 3.675 MB / 0.5053 GB, free: 55.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.4336, allocations: 171.8 kB / 0.5055 GB, free: 54.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.435, allocations: 0.9321 MB / 0.5064 GB, free: 54.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.322e-05/0.4351, allocations: 41.8 kB / 0.5064 GB, free: 54.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003662/0.4355, allocations: 0.6287 MB / 0.507 GB, free: 53.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.4357, allocations: 303.9 kB / 0.5073 GB, free: 53.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003075/0.436, allocations: 177.1 kB / 0.5075 GB, free: 53.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.623e-05/0.4361, allocations: 352.4 kB / 0.5078 GB, free: 53.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006756/0.4368, allocations: 397.2 kB / 0.5082 GB, free: 53.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008301/0.4376, allocations: 0.6386 MB / 0.5088 GB, free: 52.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.4392, allocations: 1.089 MB / 0.5099 GB, free: 52.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.4392, allocations: 3.938 kB / 0.5099 GB, free: 52.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.004583/0.4438, allocations: 2.046 MB / 0.5119 GB, free: 51.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.4438, allocations: 9.406 kB / 0.5119 GB, free: 51.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.4438, allocations: 7.094 kB / 0.5119 GB, free: 51.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002959/0.4468, allocations: 0.8012 MB / 0.5127 GB, free: 50.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006201/0.4474, allocations: 156.8 kB / 0.5128 GB, free: 50.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01457/0.462, allocations: 10.55 MB / 0.5231 GB, free: 43.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001102/0.4632, allocations: 59.48 kB / 0.5232 GB, free: 43.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.812e-05/0.4633, allocations: 43.94 kB / 0.5232 GB, free: 43.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001046/0.4643, allocations: 0.679 MB / 0.5239 GB, free: 43.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006129/0.4649, allocations: 0.6174 MB / 0.5245 GB, free: 43.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001297/0.4662, allocations: 1.046 MB / 0.5255 GB, free: 42.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.238e-06/0.4662, allocations: 1.531 kB / 0.5255 GB, free: 42.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization_lambda0): time 0.003692/0.4699, allocations: 1.883 MB / 0.5274 GB, free: 41.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.47, allocations: 7.812 kB / 0.5274 GB, free: 41.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.47, allocations: 11.84 kB / 0.5274 GB, free: 41.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/0.4724, allocations: 0.7751 MB / 0.5281 GB, free: 41.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005218/0.4729, allocations: 153 kB / 0.5283 GB, free: 41.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.4838, allocations: 10.09 MB / 0.5381 GB, free: 32.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008813/0.4848, allocations: 59.59 kB / 0.5382 GB, free: 32.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.254e-05/0.4848, allocations: 44 kB / 0.5382 GB, free: 31.97 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.0002811/0.4851, allocations: 246.8 kB / 0.5385 GB, free: 31.72 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.4853, allocations: 106.7 kB / 0.5386 GB, free: 31.62 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001729/0.487, allocations: 1.33 MB / 0.5399 GB, free: 30.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.4871, allocations: 11.94 kB / 0.5399 GB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.4871, allocations: 4 kB / 0.5399 GB, free: 30.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.4871, allocations: 3.984 kB / 0.5399 GB, free: 30.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003248/0.4903, allocations: 2.636 MB / 0.5425 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.4904, allocations: 0 / 0.5425 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009303/0.4913, allocations: 183.6 kB / 0.5426 GB, free: 27.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002294/0.4915, allocations: 94.41 kB / 0.5427 GB, free: 27.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-05/0.4916, allocations: 27.98 kB / 0.5428 GB, free: 27.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002022/0.4936, allocations: 4.507 MB / 0.5472 GB, free: 22.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.4937, allocations: 0 / 0.5472 GB, free: 22.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.4958, allocations: 1.902 MB / 0.549 GB, free: 20.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.4962, allocations: 263.6 kB / 0.5493 GB, free: 19.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/0.4963, allocations: 31.98 kB / 0.5493 GB, free: 19.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006588/0.497, allocations: 43.95 kB / 0.5493 GB, free: 19.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.4971, allocations: 57.38 kB / 0.5494 GB, free: 19.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.112e-05/0.4971, allocations: 27.92 kB / 0.5494 GB, free: 19.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007947/0.4979, allocations: 0.6462 MB / 0.55 GB, free: 19.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.498, allocations: 1.75 kB / 0.5501 GB, free: 19.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001973/0.4999, allocations: 0.5493 MB / 0.5506 GB, free: 18.62 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.0002806/0.5002, allocations: 154.9 kB / 0.5507 GB, free: 18.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005249/0.5055, allocations: 3.223 MB / 0.5539 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5055, allocations: 128 / 0.5539 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009648/0.5065, allocations: 0.8207 MB / 0.5547 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001294/0.5078, allocations: 290.7 kB / 0.555 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.5127, allocations: 3.803 MB / 0.5587 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006675/0.5134, allocations: 1.332 MB / 0.56 GB, free: 8.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008271/0.5143, allocations: 264.8 kB / 0.5602 GB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.5145, allocations: 79.41 kB / 0.5603 GB, free: 8.57 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.5145, allocations: 0 / 0.5603 GB, free: 8.57 MB / 382.1 MB Notification: Performance of Templates: time 0.03966/0.5542, allocations: 25.38 MB / 0.5851 GB, free: 15.39 MB / 414.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)