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.001287/0.001287, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001515/0.001515, allocations: 189.4 kB / 18 MB, free: 5.098 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.423/1.423, allocations: 222.9 MB / 241.7 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.1848/0.1848, allocations: 38.04 MB / 329.9 MB, free: 8.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 67.89 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3175, allocations: 58.06 MB / 0.5036 GB, free: 7.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007374/0.3249, allocations: 7.563 MB / 0.511 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003793/0.3287, allocations: 2.325 MB / 0.5133 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005256/0.3293, allocations: 28.91 kB / 0.5133 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00228/0.3316, allocations: 0.8593 MB / 0.5141 GB, free: 76 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001919/0.3335, allocations: 0.4996 MB / 0.5146 GB, free: 15.78 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001703/0.3353, allocations: 447 kB / 0.515 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002316/0.3376, allocations: 1.319 MB / 0.5163 GB, free: 15.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001138/0.3387, allocations: 0.6893 MB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001235/0.34, allocations: 0.5665 MB / 0.5176 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.3414, allocations: 0.6859 MB / 0.5182 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002374/0.3416, allocations: 81.78 kB / 0.5183 GB, free: 14.21 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000753/0.3424, allocations: 264.8 kB / 0.5186 GB, free: 14.15 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006568/0.343, allocations: 0.5086 MB / 0.5191 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007165/0.3438, allocations: 0.5482 MB / 0.5196 GB, free: 13.65 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001818/0.3456, allocations: 1.325 MB / 0.5209 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.3456, allocations: 1.891 kB / 0.5209 GB, free: 13.16 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3456, allocations: 3.938 kB / 0.5209 GB, free: 13.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.094e-05/0.3457, allocations: 0 / 0.5209 GB, free: 13.15 MB / 398.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.003439/0.3491, allocations: 1.362 MB / 0.5222 GB, free: 12.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.3492, allocations: 13.52 kB / 0.5222 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002368/0.3494, allocations: 139.9 kB / 0.5224 GB, free: 12.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/0.3507, allocations: 181.4 kB / 0.5225 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001607/0.3523, allocations: 0.7486 MB / 0.5233 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.125e-05/0.3524, allocations: 66.88 kB / 0.5233 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002629/0.3527, allocations: 101.1 kB / 0.5234 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002217/0.3549, allocations: 1.222 MB / 0.5246 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.806e-05/0.355, allocations: 8.172 kB / 0.5246 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.3551, allocations: 32.88 kB / 0.5247 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002883/0.3554, allocations: 66 kB / 0.5247 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.3574, allocations: 1.011 MB / 0.5257 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006973/0.3644, allocations: 4.762 MB / 0.5304 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.3656, allocations: 0.6686 MB / 0.531 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000682/0.3663, allocations: 458.4 kB / 0.5315 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.013e-05/0.3664, allocations: 11.73 kB / 0.5315 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008473/0.3673, allocations: 0.5096 MB / 0.532 GB, free: 6.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 3.507e-06/0.3673, allocations: 0 / 0.532 GB, free: 6.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005372/0.3727, allocations: 2.812 MB / 0.5347 GB, free: 4.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.3728, allocations: 172.6 kB / 0.5349 GB, free: 4.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008159/0.3737, allocations: 0.5961 MB / 0.5355 GB, free: 4.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.798e-05/0.3738, allocations: 46.7 kB / 0.5355 GB, free: 3.992 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004692/0.3742, allocations: 492.3 kB / 0.536 GB, free: 3.562 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/0.3745, allocations: 260.3 kB / 0.5362 GB, free: 3.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.3748, allocations: 175.1 kB / 0.5364 GB, free: 3.234 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.3751, allocations: 391 kB / 0.5368 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006357/0.3757, allocations: 372.4 kB / 0.5371 GB, free: 2.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008388/0.3766, allocations: 0.6355 MB / 0.5377 GB, free: 2.168 MB / 398.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.007716/0.3843, allocations: 3.45 MB / 0.5411 GB, free: 92 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.3843, allocations: 2.562 kB / 0.5411 GB, free: 92 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002608/0.3869, allocations: 1.341 MB / 0.5424 GB, free: 15.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.633e-05/0.387, allocations: 38.41 kB / 0.5424 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.387, allocations: 8.281 kB / 0.5425 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006691/0.3877, allocations: 252.8 kB / 0.5427 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/0.3889, allocations: 263 kB / 0.5429 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006554/0.3955, allocations: 6.084 MB / 0.5489 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007817/0.3963, allocations: 40.05 kB / 0.5489 GB, free: 8.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.798e-05/0.3964, allocations: 40 kB / 0.549 GB, free: 8.914 MB / 414.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.0006993/0.3971, allocations: 372.8 kB / 0.5493 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.3973, allocations: 87.42 kB / 0.5494 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002225/0.3995, allocations: 1.145 MB / 0.5505 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.36e-05/0.3995, allocations: 8 kB / 0.5505 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3996, allocations: 4 kB / 0.5505 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3996, allocations: 3.984 kB / 0.5505 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004015/0.4036, allocations: 2.254 MB / 0.5527 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.403e-06/0.4036, allocations: 4 kB / 0.5527 GB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009802/0.4046, allocations: 187.9 kB / 0.5529 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007555/0.4054, allocations: 258.3 kB / 0.5532 GB, free: 4.469 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/0.4055, allocations: 27.91 kB / 0.5532 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006294/0.4118, allocations: 6.008 MB / 0.5591 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.4118, allocations: 8.016 kB / 0.5591 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/0.4148, allocations: 1.647 MB / 0.5607 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000325/0.4151, allocations: 152.6 kB / 0.5608 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001416/0.4153, allocations: 20 kB / 0.5608 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/0.4157, allocations: 27.97 kB / 0.5609 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.4159, allocations: 60.36 kB / 0.5609 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.145e-05/0.416, allocations: 24 kB / 0.5609 GB, free: 12.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006027/0.4166, allocations: 423 kB / 0.5614 GB, free: 11.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4166, allocations: 0 / 0.5614 GB, free: 11.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001306/0.4179, allocations: 264 kB / 0.5616 GB, free: 11.35 MB / 430.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.003387/0.4213, allocations: 2.224 MB / 0.5638 GB, free: 9.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002589/0.4239, allocations: 1.399 MB / 0.5651 GB, free: 7.613 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/0.424, allocations: 4.438 kB / 0.5651 GB, free: 7.609 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.4256, allocations: 0.9123 MB / 0.566 GB, free: 6.641 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.4268, allocations: 189.7 kB / 0.5662 GB, free: 6.465 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/0.4403, allocations: 8.202 MB / 0.5742 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009817/0.4413, allocations: 1.119 MB / 0.5753 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006308/0.442, allocations: 206.5 kB / 0.5755 GB, free: 12.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000484/0.4425, allocations: 335.3 kB / 0.5758 GB, free: 12.18 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4425, allocations: 4 kB / 0.5758 GB, free: 12.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05707/0.4995, allocations: 18.86 MB / 0.5943 GB, free: 9.473 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/12.1, allocations: 12.67 kB / 0.5943 GB, free: 9.469 MB / 462.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)