Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.Islanding,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_Islanding",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.Islanding,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_Islanding",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001173/0.001173, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.32/1.32, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.177/0.177, allocations: 38.02 MB / 329.7 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 65.12 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09703, allocations: 58.07 MB / 457 MB, free: 7.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.Islanding): time 0.01091/0.108, allocations: 10.37 MB / 467.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009173/0.1172, allocations: 6.28 MB / 473.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.1183, allocations: 43.75 kB / 473.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02022/0.1385, allocations: 12.5 MB / 486.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002443/0.141, allocations: 0.7968 MB / 487 MB, free: 9.859 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.1426, allocations: 0.6153 MB / 487.6 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004443/0.1471, allocations: 3.506 MB / 491.1 MB, free: 5.727 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001627/0.1487, allocations: 1.203 MB / 492.3 MB, free: 4.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.15, allocations: 0.9106 MB / 493.2 MB, free: 3.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001336/0.1514, allocations: 1 MB / 494.2 MB, free: 2.586 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000306/0.1517, allocations: 156 kB / 494.3 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008433/0.1526, allocations: 459.3 kB / 494.8 MB, free: 1.984 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005653/0.1531, allocations: 0.6156 MB / 495.4 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008963/0.154, allocations: 0.8008 MB / 496.2 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002041/0.1561, allocations: 2.22 MB / 498.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1561, allocations: 0 / 498.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1561, allocations: 0 / 498.4 MB, free: 14.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.544e-05/0.1562, allocations: 0 / 498.4 MB, free: 14.34 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.003808/0.16, allocations: 1.911 MB / 0.4886 GB, free: 12.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.16, allocations: 15.89 kB / 0.4886 GB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002224/0.1603, allocations: 177.5 kB / 0.4888 GB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000842/0.1611, allocations: 222.9 kB / 0.489 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002147/0.1633, allocations: 1.156 MB / 0.4901 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.758e-05/0.1633, allocations: 90.2 kB / 0.4902 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000324/0.1637, allocations: 136 kB / 0.4904 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002287/0.166, allocations: 1.477 MB / 0.4918 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.22e-05/0.166, allocations: 4 kB / 0.4918 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.1661, allocations: 47.98 kB / 0.4918 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000157/0.1663, allocations: 82.03 kB / 0.4919 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/0.1685, allocations: 1.21 MB / 0.4931 GB, free: 7.617 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008356/0.1769, allocations: 5.709 MB / 0.4987 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001727/0.1786, allocations: 0.9635 MB / 0.4996 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008844/0.1795, allocations: 492.3 kB / 0.5001 GB, free: 156 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.232e-05/0.1796, allocations: 12.66 kB / 0.5001 GB, free: 140 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.358e-05/0.1797, allocations: 43.16 kB / 0.5001 GB, free: 88 kB / 382.1 MB Notification: Performance of pre-optimization done (n=76): time 3.617e-06/0.1797, allocations: 0 / 0.5001 GB, free: 88 kB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.167/0.3467, allocations: 3.677 MB / 0.5037 GB, free: 56.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.189e-05/0.3467, allocations: 167.3 kB / 0.5039 GB, free: 56.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.3481, allocations: 0.9334 MB / 0.5048 GB, free: 55.97 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.01e-05/0.3481, allocations: 42.11 kB / 0.5048 GB, free: 55.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003637/0.3485, allocations: 0.6219 MB / 0.5055 GB, free: 55.44 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002128/0.3487, allocations: 307.2 kB / 0.5057 GB, free: 55.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002698/0.349, allocations: 180 kB / 0.5059 GB, free: 55.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.3491, allocations: 349.8 kB / 0.5063 GB, free: 54.79 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006841/0.3498, allocations: 399.6 kB / 0.5066 GB, free: 54.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008114/0.3506, allocations: 0.6405 MB / 0.5073 GB, free: 54.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.352, allocations: 1.085 MB / 0.5083 GB, free: 53.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3521, allocations: 3.938 kB / 0.5083 GB, free: 53.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.004334/0.3564, allocations: 2.049 MB / 0.5103 GB, free: 52.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.3564, allocations: 8.438 kB / 0.5103 GB, free: 52.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.3565, allocations: 7.875 kB / 0.5103 GB, free: 52.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00264/0.3591, allocations: 0.7949 MB / 0.5111 GB, free: 52.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006606/0.3598, allocations: 158 kB / 0.5113 GB, free: 52.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01441/0.3742, allocations: 10.55 MB / 0.5216 GB, free: 45.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009444/0.3752, allocations: 66.02 kB / 0.5216 GB, free: 45.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.315e-05/0.3753, allocations: 39 kB / 0.5217 GB, free: 45.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001001/0.3763, allocations: 0.6823 MB / 0.5223 GB, free: 45.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006144/0.3769, allocations: 0.6173 MB / 0.5229 GB, free: 44.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001137/0.378, allocations: 1.044 MB / 0.524 GB, free: 44.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.208e-06/0.378, allocations: 3.938 kB / 0.524 GB, free: 44.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization_lambda0): time 0.003417/0.3815, allocations: 1.881 MB / 0.5258 GB, free: 43.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.3815, allocations: 8.25 kB / 0.5258 GB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3815, allocations: 10.7 kB / 0.5258 GB, free: 43.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/0.3839, allocations: 0.7739 MB / 0.5266 GB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/0.3844, allocations: 157.2 kB / 0.5267 GB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/0.3955, allocations: 10.1 MB / 0.5366 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009511/0.3964, allocations: 47.97 kB / 0.5366 GB, free: 33.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.074e-05/0.3965, allocations: 46.72 kB / 0.5367 GB, free: 33.75 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.0002551/0.3968, allocations: 240.9 kB / 0.5369 GB, free: 33.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.397, allocations: 118.5 kB / 0.537 GB, free: 33.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001778/0.3987, allocations: 1.326 MB / 0.5383 GB, free: 31.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.3988, allocations: 12.75 kB / 0.5383 GB, free: 31.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3988, allocations: 3.938 kB / 0.5383 GB, free: 31.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3988, allocations: 3.984 kB / 0.5383 GB, free: 31.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.4019, allocations: 2.631 MB / 0.5409 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.4019, allocations: 0 / 0.5409 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009003/0.4028, allocations: 179.8 kB / 0.5411 GB, free: 29.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.403, allocations: 97.05 kB / 0.5412 GB, free: 28.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.057e-05/0.4031, allocations: 27.98 kB / 0.5412 GB, free: 28.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001928/0.405, allocations: 4.5 MB / 0.5456 GB, free: 24.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.405, allocations: 4.031 kB / 0.5456 GB, free: 24.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002204/0.4073, allocations: 1.905 MB / 0.5474 GB, free: 22.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003972/0.4077, allocations: 271.5 kB / 0.5477 GB, free: 21.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001516/0.4078, allocations: 20 kB / 0.5477 GB, free: 21.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000667/0.4085, allocations: 47.95 kB / 0.5478 GB, free: 21.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.4086, allocations: 58.23 kB / 0.5478 GB, free: 21.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.885e-05/0.4087, allocations: 23.98 kB / 0.5478 GB, free: 21.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007968/0.4095, allocations: 0.6423 MB / 0.5485 GB, free: 20.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4095, allocations: 0 / 0.5485 GB, free: 20.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001834/0.4113, allocations: 0.5531 MB / 0.549 GB, free: 20.39 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.002436/0.4138, allocations: 2.501 MB / 0.5515 GB, free: 17.81 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005424/0.4192, allocations: 3.229 MB / 0.5546 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4192, allocations: 0 / 0.5546 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.4203, allocations: 0.8206 MB / 0.5554 GB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00139/0.4217, allocations: 288.7 kB / 0.5557 GB, free: 13.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/0.4398, allocations: 12.68 MB / 0.5681 GB, free: 196 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.4411, allocations: 1.335 MB / 0.5694 GB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001071/0.4422, allocations: 268.8 kB / 0.5696 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006634/0.4429, allocations: 0.5071 MB / 0.5701 GB, free: 14.05 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4429, allocations: 0 / 0.5701 GB, free: 14.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07398/0.5169, allocations: 36.44 MB / 0.6057 GB, free: 9.879 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.77, allocations: 11.75 kB / 0.6057 GB, free: 9.871 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.Islanding.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Generation.Islanding_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 PowerSystems_PowerSystems_Examples_AC3ph_Generation_Islanding.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe 2>&1)