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.00108/0.00108, allocations: 115.2 kB / 17.06 MB, free: 6 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.0009972/0.0009972, allocations: 195 kB / 18.01 MB, free: 5.074 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.33/1.33, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1769/0.1769, allocations: 38.02 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002447/0.002447, allocations: 67.91 kB / 457.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3128/0.3153, allocations: 58.06 MB / 0.5036 GB, free: 7.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007141/0.3225, allocations: 7.558 MB / 0.511 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00366/0.3262, allocations: 2.319 MB / 0.5132 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005509/0.3268, allocations: 29.34 kB / 0.5133 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002066/0.3288, allocations: 0.848 MB / 0.5141 GB, free: 152 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001354/0.3302, allocations: 0.5174 MB / 0.5146 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.3316, allocations: 447.8 kB / 0.515 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001698/0.3333, allocations: 1.321 MB / 0.5163 GB, free: 15.08 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009566/0.3342, allocations: 0.6871 MB / 0.517 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.3354, allocations: 0.5787 MB / 0.5176 GB, free: 14.53 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001193/0.3366, allocations: 0.6858 MB / 0.5182 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.3368, allocations: 81.56 kB / 0.5183 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006402/0.3374, allocations: 269.7 kB / 0.5186 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005545/0.338, allocations: 0.5081 MB / 0.5191 GB, free: 14.03 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006957/0.3387, allocations: 0.5445 MB / 0.5196 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00169/0.3404, allocations: 1.324 MB / 0.5209 GB, free: 13.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3404, allocations: 1.656 kB / 0.5209 GB, free: 13.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.3404, allocations: 0 / 0.5209 GB, free: 13.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.3405, allocations: 3.938 kB / 0.5209 GB, free: 13.21 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.002776/0.3432, allocations: 1.366 MB / 0.5222 GB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.3433, allocations: 18.19 kB / 0.5222 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001899/0.3435, allocations: 139.6 kB / 0.5224 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001134/0.3446, allocations: 176.9 kB / 0.5225 GB, free: 12.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001569/0.3462, allocations: 0.7459 MB / 0.5233 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.48e-05/0.3463, allocations: 65.59 kB / 0.5233 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002672/0.3466, allocations: 104.8 kB / 0.5234 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/0.3486, allocations: 1.219 MB / 0.5246 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.488e-05/0.3487, allocations: 11.56 kB / 0.5246 GB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.3488, allocations: 36.94 kB / 0.5247 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000282/0.3491, allocations: 62.3 kB / 0.5247 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001767/0.3508, allocations: 1.011 MB / 0.5257 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006545/0.3574, allocations: 4.752 MB / 0.5304 GB, free: 7.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001086/0.3585, allocations: 0.6806 MB / 0.531 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006291/0.3592, allocations: 457.9 kB / 0.5315 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.794e-05/0.3592, allocations: 16.19 kB / 0.5315 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007449/0.36, allocations: 0.5055 MB / 0.532 GB, free: 6.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.695e-06/0.36, allocations: 1.188 kB / 0.532 GB, free: 6.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.004995/0.365, allocations: 2.808 MB / 0.5347 GB, free: 4.594 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.872e-05/0.3651, allocations: 176.6 kB / 0.5349 GB, free: 4.391 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007185/0.3658, allocations: 0.5959 MB / 0.5355 GB, free: 4.039 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.116e-05/0.3659, allocations: 37.73 kB / 0.5355 GB, free: 4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003664/0.3663, allocations: 492.2 kB / 0.536 GB, free: 3.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002429/0.3665, allocations: 269 kB / 0.5362 GB, free: 3.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.3668, allocations: 166.7 kB / 0.5364 GB, free: 3.242 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.367, allocations: 391.4 kB / 0.5368 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005946/0.3676, allocations: 380.8 kB / 0.5371 GB, free: 2.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007469/0.3683, allocations: 0.6311 MB / 0.5377 GB, free: 2.172 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.00722/0.3756, allocations: 3.452 MB / 0.5411 GB, free: 92 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/0.3756, allocations: 3.031 kB / 0.5411 GB, free: 92 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002342/0.3779, allocations: 1.344 MB / 0.5424 GB, free: 15.37 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/0.378, allocations: 34.64 kB / 0.5425 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.378, allocations: 9.719 kB / 0.5425 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000639/0.3787, allocations: 252 kB / 0.5427 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/0.3798, allocations: 262.8 kB / 0.543 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00531/0.3852, allocations: 6.079 MB / 0.5489 GB, free: 8.914 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007619/0.386, allocations: 39.97 kB / 0.5489 GB, free: 8.875 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.234e-05/0.3861, allocations: 40 kB / 0.549 GB, free: 8.836 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.0006142/0.3867, allocations: 381.8 kB / 0.5493 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001393/0.3868, allocations: 87.41 kB / 0.5494 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/0.3888, allocations: 1.137 MB / 0.5505 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.277e-05/0.3889, allocations: 11.98 kB / 0.5505 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.3889, allocations: 4 kB / 0.5505 GB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3889, allocations: 3.984 kB / 0.5506 GB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003656/0.3926, allocations: 2.254 MB / 0.5528 GB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3926, allocations: 8.031 kB / 0.5528 GB, free: 4.828 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009832/0.3936, allocations: 183.8 kB / 0.5529 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007123/0.3943, allocations: 250.5 kB / 0.5532 GB, free: 4.395 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-05/0.3944, allocations: 27.92 kB / 0.5532 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005161/0.3996, allocations: 6.007 MB / 0.5591 GB, free: 13.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.3996, allocations: 8.094 kB / 0.5591 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002683/0.4023, allocations: 1.643 MB / 0.5607 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002796/0.4026, allocations: 148.7 kB / 0.5608 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001318/0.4027, allocations: 32.3 kB / 0.5609 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004388/0.4032, allocations: 27.92 kB / 0.5609 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001384/0.4033, allocations: 68.34 kB / 0.5609 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.301e-05/0.4034, allocations: 27.98 kB / 0.561 GB, free: 11.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000482/0.4039, allocations: 411 kB / 0.5614 GB, free: 11.53 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4039, allocations: 0 / 0.5614 GB, free: 11.53 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001138/0.405, allocations: 272 kB / 0.5616 GB, free: 11.26 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.002831/0.4079, allocations: 2.222 MB / 0.5638 GB, free: 8.98 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002276/0.4102, allocations: 1.399 MB / 0.5652 GB, free: 7.527 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4102, allocations: 4 kB / 0.5652 GB, free: 7.523 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001379/0.4116, allocations: 0.9133 MB / 0.5661 GB, free: 6.555 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.4126, allocations: 192.1 kB / 0.5662 GB, free: 6.379 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.4238, allocations: 8.201 MB / 0.5742 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006813/0.4245, allocations: 1.115 MB / 0.5753 GB, free: 12.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005641/0.4251, allocations: 206.5 kB / 0.5755 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.4255, allocations: 335.3 kB / 0.5759 GB, free: 12.1 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4255, allocations: 0 / 0.5759 GB, free: 12.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04847/0.474, allocations: 18.87 MB / 0.5943 GB, free: 9.398 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.1, allocations: 11.92 kB / 0.5943 GB, free: 9.387 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)