Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.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.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationSteadyState,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState",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.001146/0.001146, allocations: 108 kB / 16.92 MB, free: 5.758 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.001261/0.001261, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.321/1.321, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1735/0.1735, allocations: 38.02 MB / 329.7 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 62.53 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09724, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationSteadyState): time 0.009279/0.1066, allocations: 7.565 MB / 464.5 MB, free: 368 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003993/0.1106, allocations: 2.333 MB / 466.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004945/0.1111, allocations: 27.81 kB / 466.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002193/0.1133, allocations: 0.8557 MB / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.1145, allocations: 0.5013 MB / 468.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.1156, allocations: 451 kB / 468.7 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.1169, allocations: 1.27 MB / 470 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008661/0.1178, allocations: 0.6816 MB / 470.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007876/0.1186, allocations: 0.5446 MB / 471.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009261/0.1196, allocations: 0.6501 MB / 471.8 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001627/0.1197, allocations: 83.94 kB / 471.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004949/0.1202, allocations: 215.7 kB / 472.1 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004605/0.1207, allocations: 486.8 kB / 472.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006234/0.1213, allocations: 0.5325 MB / 473.1 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001161/0.1225, allocations: 1.219 MB / 474.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1225, allocations: 0 / 474.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1225, allocations: 0 / 474.3 MB, free: 6.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.457e-05/0.1226, allocations: 0 / 474.3 MB, free: 6.5 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002372/0.125, allocations: 1.306 MB / 475.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.125, allocations: 19.88 kB / 475.7 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000167/0.1252, allocations: 139.7 kB / 475.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009272/0.1261, allocations: 163.5 kB / 476 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.1273, allocations: 0.6921 MB / 476.7 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.159e-05/0.1273, allocations: 62.36 kB / 476.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.1275, allocations: 87.94 kB / 476.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/0.1291, allocations: 1.179 MB / 478 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/0.1292, allocations: 4 kB / 478 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.221e-05/0.1293, allocations: 36 kB / 478 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.691e-05/0.1293, allocations: 53.98 kB / 478.1 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00149/0.1308, allocations: 0.9287 MB / 479 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005452/0.1363, allocations: 4.803 MB / 483.8 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.1374, allocations: 0.6712 MB / 484.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005339/0.138, allocations: 387.8 kB / 484.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.693e-05/0.1381, allocations: 12.55 kB / 484.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005911/0.1387, allocations: 439.7 kB / 485.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.284e-06/0.1387, allocations: 0 / 485.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.005259/0.1439, allocations: 2.444 MB / 487.7 MB, free: 8.582 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.218e-05/0.144, allocations: 162.8 kB / 487.9 MB, free: 8.387 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006609/0.1447, allocations: 0.6017 MB / 488.5 MB, free: 7.773 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.1448, allocations: 37.7 kB / 488.5 MB, free: 7.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.1451, allocations: 482.7 kB / 489 MB, free: 7.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001895/0.1453, allocations: 236.8 kB / 489.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.1455, allocations: 146.6 kB / 489.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1457, allocations: 386.8 kB / 489.8 MB, free: 6.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004582/0.1461, allocations: 289.8 kB / 490 MB, free: 6.195 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006223/0.1468, allocations: 0.5563 MB / 490.6 MB, free: 5.516 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.148, allocations: 0.9572 MB / 491.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.148, allocations: 0 / 491.6 MB, free: 4.418 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002076/0.1501, allocations: 1.215 MB / 492.8 MB, free: 3.188 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.695e-05/0.1501, allocations: 34.58 kB / 492.8 MB, free: 3.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.376e-05/0.1502, allocations: 12 kB / 492.8 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.1512, allocations: 349.4 kB / 493.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005015/0.1517, allocations: 143.8 kB / 493.3 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006038/0.1578, allocations: 5.4 MB / 498.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005094/0.1583, allocations: 35.94 kB / 498.7 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.752e-05/0.1584, allocations: 43.98 kB / 498.8 MB, free: 12.87 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,$PRE.switch.closed,switch.open,$PRE.switch.open,switch.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004529/0.1589, allocations: 351.2 kB / 499.1 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001092/0.159, allocations: 75.09 kB / 499.2 MB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/0.1609, allocations: 1.048 MB / 0.4885 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.1609, allocations: 8 kB / 0.4885 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1609, allocations: 4 kB / 0.4885 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.1609, allocations: 3.984 kB / 0.4885 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/0.1642, allocations: 2.051 MB / 0.4905 GB, free: 9.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.1642, allocations: 7.938 kB / 0.4905 GB, free: 9.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003281/0.1645, allocations: 71.91 kB / 0.4906 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008947/0.1654, allocations: 313.8 kB / 0.4909 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.1655, allocations: 27.86 kB / 0.4909 GB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005815/0.1713, allocations: 5.318 MB / 0.4961 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1713, allocations: 4 kB / 0.4961 GB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.1731, allocations: 1.119 MB / 0.4972 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.1733, allocations: 140.2 kB / 0.4974 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001106/0.1734, allocations: 27.92 kB / 0.4974 GB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000357/0.1738, allocations: 23.98 kB / 0.4974 GB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.1739, allocations: 56.42 kB / 0.4975 GB, free: 1.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.174, allocations: 20 kB / 0.4975 GB, free: 1.711 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004617/0.1745, allocations: 415 kB / 0.4979 GB, free: 1.312 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1745, allocations: 4 kB / 0.4979 GB, free: 1.309 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008964/0.1754, allocations: 268 kB / 0.4981 GB, free: 1.047 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (switch.open,switch.control[1],switch.closed,$whenCondition1,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 3 (relayNet.y[1],relayNet.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,17,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002022/0.1774, allocations: 1.676 MB / 0.4998 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002024/0.1794, allocations: 1.269 MB / 0.501 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/0.1795, allocations: 4.125 kB / 0.501 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001053/0.1805, allocations: 0.7633 MB / 0.5018 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008727/0.1814, allocations: 178.8 kB / 0.5019 GB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.1918, allocations: 7.502 MB / 0.5093 GB, free: 5.145 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00077/0.1926, allocations: 1.111 MB / 0.5103 GB, free: 4.008 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004972/0.1932, allocations: 174.3 kB / 0.5105 GB, free: 3.832 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003694/0.1935, allocations: 327.3 kB / 0.5108 GB, free: 3.512 MB / 398.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1935, allocations: 0 / 0.5108 GB, free: 3.512 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2164/0.4099, allocations: 17.97 MB / 0.5284 GB, free: 68.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.377/9.787, allocations: 6.016 kB / 0.5284 GB, free: 68.51 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_Introductory_SimulationSteadyState.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationSteadyState.pipe 2>&1)