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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.Islanding,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Generation_Islanding",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.Islanding,fileNamePrefix="PowerSystems_latest_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.001236/0.001236, allocations: 110.2 kB / 16.92 MB, free: 5.785 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.001205/0.001205, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.325/1.325, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 329.7 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 65.95 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08814/0.08951, allocations: 58.06 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.Islanding): time 0.01339/0.103, allocations: 10.36 MB / 467.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009328/0.1123, allocations: 6.296 MB / 473.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009921/0.1134, allocations: 47.75 kB / 473.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0196/0.133, allocations: 12.49 MB / 486.2 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002239/0.1352, allocations: 0.7968 MB / 487 MB, free: 9.902 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001573/0.1368, allocations: 0.6195 MB / 487.6 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004527/0.1414, allocations: 3.509 MB / 491.1 MB, free: 5.762 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00202/0.1434, allocations: 1.203 MB / 492.3 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001478/0.1449, allocations: 0.9106 MB / 493.2 MB, free: 3.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00161/0.1465, allocations: 0.9962 MB / 494.2 MB, free: 2.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004539/0.147, allocations: 152 kB / 494.4 MB, free: 2.477 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001089/0.1481, allocations: 463.4 kB / 494.8 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007021/0.1488, allocations: 0.6039 MB / 495.4 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001289/0.1501, allocations: 0.8047 MB / 496.2 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003061/0.1532, allocations: 2.231 MB / 498.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1532, allocations: 4 kB / 498.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1532, allocations: 0 / 498.4 MB, free: 14.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.476e-05/0.1533, allocations: 0 / 498.4 MB, free: 14.37 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.004969/0.1583, allocations: 1.9 MB / 0.4886 GB, free: 12.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1584, allocations: 11.89 kB / 0.4886 GB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002594/0.1586, allocations: 181.5 kB / 0.4888 GB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008966/0.1595, allocations: 226.9 kB / 0.489 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/0.1616, allocations: 1.152 MB / 0.4901 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.751e-05/0.1617, allocations: 82.2 kB / 0.4902 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003112/0.162, allocations: 136 kB / 0.4904 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00217/0.1642, allocations: 1.481 MB / 0.4918 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.1642, allocations: 0 / 0.4918 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001087/0.1644, allocations: 51.98 kB / 0.4918 GB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001525/0.1645, allocations: 82.03 kB / 0.4919 GB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001977/0.1665, allocations: 1.206 MB / 0.4931 GB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007284/0.1738, allocations: 5.709 MB / 0.4987 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001458/0.1753, allocations: 0.9635 MB / 0.4996 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008212/0.1761, allocations: 495.6 kB / 0.5001 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.638e-05/0.1762, allocations: 16.58 kB / 0.5001 GB, free: 184 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.1762, allocations: 47.22 kB / 0.5002 GB, free: 128 kB / 382.1 MB Notification: Performance of pre-optimization done (n=76): time 2.855e-06/0.1762, allocations: 0 / 0.5002 GB, free: 128 kB / 382.1 MB Notification: Performance of matching and sorting (n=85): time 0.1883/0.3645, allocations: 3.672 MB / 0.5037 GB, free: 56.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.726e-05/0.3646, allocations: 165 kB / 0.5039 GB, free: 56.26 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/0.3665, allocations: 0.9351 MB / 0.5048 GB, free: 55.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.25e-05/0.3666, allocations: 41.02 kB / 0.5049 GB, free: 55.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004377/0.3671, allocations: 0.6263 MB / 0.5055 GB, free: 55.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002492/0.3673, allocations: 303.2 kB / 0.5058 GB, free: 55.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003115/0.3676, allocations: 185.2 kB / 0.5059 GB, free: 55.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.451e-05/0.3677, allocations: 351.8 kB / 0.5063 GB, free: 54.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007305/0.3685, allocations: 398.4 kB / 0.5066 GB, free: 54.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000823/0.3693, allocations: 0.6371 MB / 0.5073 GB, free: 54.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.3708, allocations: 1.094 MB / 0.5083 GB, free: 53.47 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.3709, allocations: 2.344 kB / 0.5083 GB, free: 53.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.004484/0.3754, allocations: 2.041 MB / 0.5103 GB, free: 52.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.3754, allocations: 8.625 kB / 0.5103 GB, free: 52.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.325e-05/0.3754, allocations: 6.719 kB / 0.5103 GB, free: 52.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/0.3783, allocations: 0.8042 MB / 0.5111 GB, free: 52.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007761/0.379, allocations: 149.4 kB / 0.5113 GB, free: 52.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01616/0.3952, allocations: 10.54 MB / 0.5216 GB, free: 45.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.3964, allocations: 63.17 kB / 0.5216 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.3966, allocations: 40.84 kB / 0.5217 GB, free: 45.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001404/0.398, allocations: 0.6838 MB / 0.5223 GB, free: 45.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000708/0.3987, allocations: 0.6198 MB / 0.5229 GB, free: 44.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001115/0.3998, allocations: 1.047 MB / 0.524 GB, free: 43.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.258e-06/0.3998, allocations: 0 / 0.524 GB, free: 43.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=126) (initialization_lambda0): time 0.003461/0.4033, allocations: 1.888 MB / 0.5258 GB, free: 43.01 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.4033, allocations: 12.58 kB / 0.5258 GB, free: 43.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4033, allocations: 7 kB / 0.5258 GB, free: 43.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002366/0.4057, allocations: 0.7713 MB / 0.5266 GB, free: 42.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005323/0.4063, allocations: 151.9 kB / 0.5267 GB, free: 42.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.4169, allocations: 10.1 MB / 0.5366 GB, free: 33.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008808/0.4178, allocations: 51.97 kB / 0.5366 GB, free: 33.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.185e-05/0.4178, allocations: 36 kB / 0.5367 GB, free: 33.83 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.0003002/0.4181, allocations: 249.1 kB / 0.5369 GB, free: 33.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.4183, allocations: 117.3 kB / 0.537 GB, free: 33.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001716/0.42, allocations: 1.326 MB / 0.5383 GB, free: 32.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.4201, allocations: 8 kB / 0.5383 GB, free: 32.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.4201, allocations: 11.92 kB / 0.5383 GB, free: 32.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.4201, allocations: 3.984 kB / 0.5383 GB, free: 32.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/0.4231, allocations: 2.632 MB / 0.5409 GB, free: 29.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.4231, allocations: 4 kB / 0.5409 GB, free: 29.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008934/0.424, allocations: 171.8 kB / 0.5411 GB, free: 29.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002121/0.4243, allocations: 98.34 kB / 0.5412 GB, free: 29.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.066e-05/0.4243, allocations: 31.97 kB / 0.5412 GB, free: 29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/0.4263, allocations: 4.493 MB / 0.5456 GB, free: 24.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.4263, allocations: 3.938 kB / 0.5456 GB, free: 24.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002175/0.4285, allocations: 1.903 MB / 0.5474 GB, free: 22.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003334/0.4289, allocations: 271.5 kB / 0.5477 GB, free: 21.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000145/0.429, allocations: 31.98 kB / 0.5477 GB, free: 21.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006339/0.4297, allocations: 43.95 kB / 0.5478 GB, free: 21.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.533e-05/0.4298, allocations: 52.92 kB / 0.5478 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.865e-05/0.4298, allocations: 27.98 kB / 0.5479 GB, free: 21.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007857/0.4306, allocations: 0.6384 MB / 0.5485 GB, free: 21.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4306, allocations: 4 kB / 0.5485 GB, free: 21.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001828/0.4325, allocations: 0.5544 MB / 0.549 GB, free: 20.47 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.002324/0.4348, allocations: 2.503 MB / 0.5515 GB, free: 17.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005137/0.4399, allocations: 3.223 MB / 0.5546 GB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.44, allocations: 0 / 0.5546 GB, free: 14.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009787/0.4409, allocations: 0.8246 MB / 0.5554 GB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/0.4423, allocations: 301.7 kB / 0.5557 GB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0172/0.4595, allocations: 12.67 MB / 0.5681 GB, free: 276 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008985/0.4604, allocations: 1.324 MB / 0.5694 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009784/0.4614, allocations: 268.8 kB / 0.5696 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006574/0.4621, allocations: 0.5071 MB / 0.5701 GB, free: 14.14 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4621, allocations: 0 / 0.5701 GB, free: 14.14 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07285/0.535, allocations: 36.47 MB / 0.6057 GB, free: 9.984 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.39, allocations: 10.98 kB / 0.6058 GB, free: 9.977 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Generation_Islanding.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Generation.Islanding.pipe 2>&1)