Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_PowerSystems_Examples_Introductory_SimulationFixedInitial",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.001536/0.001536, allocations: 103.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.001796/0.001796, 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.325/1.325, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1774/0.1774, allocations: 38.03 MB / 329.7 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.66 kB / 398.9 MB, free: 33.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08689/0.08829, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.008633/0.09697, allocations: 7.566 MB / 464.5 MB, free: 356 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003971/0.101, allocations: 2.321 MB / 466.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004965/0.1015, allocations: 27.88 kB / 466.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002156/0.1037, allocations: 0.8593 MB / 467.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.1048, allocations: 0.5053 MB / 468.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.106, allocations: 451 kB / 468.7 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001493/0.1075, allocations: 1.313 MB / 470 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009642/0.1085, allocations: 0.6894 MB / 470.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008755/0.1093, allocations: 0.568 MB / 471.2 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009889/0.1103, allocations: 0.6814 MB / 471.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001746/0.1105, allocations: 83.94 kB / 472 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005857/0.1111, allocations: 267.6 kB / 472.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005092/0.1116, allocations: 0.4988 MB / 472.8 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007091/0.1124, allocations: 0.5443 MB / 473.3 MB, free: 7.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001257/0.1136, allocations: 1.312 MB / 474.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1136, allocations: 4 kB / 474.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1137, allocations: 0 / 474.6 MB, free: 6.207 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.943e-05/0.1137, allocations: 0 / 474.6 MB, free: 6.207 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.002514/0.1162, allocations: 1.339 MB / 476 MB, free: 4.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1163, allocations: 11.89 kB / 476 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001783/0.1164, allocations: 143.7 kB / 476.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/0.1175, allocations: 163.5 kB / 476.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.1186, allocations: 0.7076 MB / 477 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.12e-05/0.1187, allocations: 62.38 kB / 477 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002151/0.1189, allocations: 115.8 kB / 477.2 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001789/0.1207, allocations: 1.212 MB / 478.4 MB, free: 2.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/0.1208, allocations: 11.84 kB / 478.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.742e-05/0.1209, allocations: 35.98 kB / 478.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002731/0.1211, allocations: 69.91 kB / 478.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001602/0.1228, allocations: 1.007 MB / 479.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0057/0.1285, allocations: 4.771 MB / 484.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.1295, allocations: 0.6725 MB / 484.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006109/0.1302, allocations: 451.8 kB / 485.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.909e-05/0.1302, allocations: 16.56 kB / 485.4 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000712/0.1309, allocations: 0.5041 MB / 485.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.936e-06/0.131, allocations: 4 kB / 485.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004733/0.1357, allocations: 2.78 MB / 488.7 MB, free: 7.629 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.878e-05/0.1358, allocations: 170.8 kB / 488.9 MB, free: 7.426 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006407/0.1365, allocations: 0.5938 MB / 489.4 MB, free: 6.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.63e-05/0.1365, allocations: 41.7 kB / 489.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003177/0.1368, allocations: 475 kB / 489.9 MB, free: 6.301 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.1371, allocations: 256.5 kB / 490.2 MB, free: 6.047 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000246/0.1373, allocations: 174.5 kB / 490.4 MB, free: 5.871 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1375, allocations: 390.8 kB / 490.8 MB, free: 5.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/0.1381, allocations: 381.7 kB / 491.1 MB, free: 5.105 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00076/0.1388, allocations: 0.631 MB / 491.8 MB, free: 4.359 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007055/0.1459, allocations: 3.461 MB / 495.2 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.1459, allocations: 4 kB / 495.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002184/0.1481, allocations: 1.343 MB / 496.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.367e-05/0.1482, allocations: 33.7 kB / 496.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.593e-05/0.1482, allocations: 8.781 kB / 496.6 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006095/0.1488, allocations: 254.4 kB / 496.9 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.15, allocations: 267.5 kB / 497.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005428/0.1554, allocations: 6.069 MB / 0.4914 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/0.156, allocations: 39.97 kB / 0.4914 GB, free: 8.262 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.382e-05/0.1561, allocations: 36 kB / 0.4915 GB, free: 8.227 MB / 382.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * 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): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005054/0.1566, allocations: 375.5 kB / 0.4918 GB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.1568, allocations: 82.98 kB / 0.4919 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001979/0.1588, allocations: 1.141 MB / 0.493 GB, free: 6.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/0.1588, allocations: 11.98 kB / 0.493 GB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.1588, allocations: 4 kB / 0.493 GB, free: 6.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.1588, allocations: 7.984 kB / 0.493 GB, free: 6.566 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00357/0.1624, allocations: 2.249 MB / 0.4952 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.1624, allocations: 64 / 0.4952 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009796/0.1634, allocations: 183.8 kB / 0.4954 GB, free: 4.047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007263/0.1641, allocations: 258.4 kB / 0.4957 GB, free: 3.785 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.967e-05/0.1642, allocations: 31.92 kB / 0.4957 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005582/0.1698, allocations: 6.011 MB / 0.5016 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1699, allocations: 0 / 0.5016 GB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003017/0.1729, allocations: 1.649 MB / 0.5032 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002229/0.1731, allocations: 144.2 kB / 0.5033 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.1733, allocations: 23.98 kB / 0.5033 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000464/0.1738, allocations: 27.98 kB / 0.5034 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.1739, allocations: 60.36 kB / 0.5034 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/0.174, allocations: 23.98 kB / 0.5034 GB, free: 11.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005213/0.1745, allocations: 411 kB / 0.5038 GB, free: 10.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1745, allocations: 4 kB / 0.5038 GB, free: 10.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001221/0.1758, allocations: 272 kB / 0.5041 GB, free: 10.67 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002984/0.1787, allocations: 2.214 MB / 0.5063 GB, free: 8.398 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002599/0.1814, allocations: 1.571 MB / 0.5078 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1814, allocations: 0 / 0.5078 GB, free: 6.777 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.1827, allocations: 0.9094 MB / 0.5087 GB, free: 5.812 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009985/0.1837, allocations: 189.6 kB / 0.5089 GB, free: 5.629 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1688/0.3525, allocations: 8.394 MB / 0.5171 GB, free: 67.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005775/0.3531, allocations: 1.114 MB / 0.5181 GB, free: 67.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006303/0.3537, allocations: 208.4 kB / 0.5183 GB, free: 67.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003616/0.3541, allocations: 338.2 kB / 0.5187 GB, free: 67.27 MB / 398.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3541, allocations: 0 / 0.5187 GB, free: 67.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04855/0.4027, allocations: 18.58 MB / 0.5368 GB, free: 61.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.532/9.935, allocations: 19.05 kB / 0.5368 GB, free: 61.67 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial_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_SimulationFixedInitial.fmu > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)