Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.SimulationFixedInitial,fileNamePrefix="PowerSystems_latest_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.001357/0.001357, allocations: 108.5 kB / 17.05 MB, free: 6.09 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.00134/0.001341, allocations: 192 kB / 17.99 MB, free: 5.184 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.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1861/0.1861, allocations: 38.05 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 59.91 kB / 457.6 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3147/0.3161, allocations: 58.06 MB / 0.5036 GB, free: 7.402 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.009008/0.3251, allocations: 7.568 MB / 0.511 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004925/0.3301, allocations: 2.317 MB / 0.5133 GB, free: 496 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.3311, allocations: 29.41 kB / 0.5133 GB, free: 484 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003088/0.3343, allocations: 0.8551 MB / 0.5141 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0028/0.3371, allocations: 0.5069 MB / 0.5146 GB, free: 15.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001786/0.3389, allocations: 450.3 kB / 0.515 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002683/0.3417, allocations: 1.322 MB / 0.5163 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0014/0.3431, allocations: 0.6851 MB / 0.517 GB, free: 14.61 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001586/0.3447, allocations: 0.5815 MB / 0.5176 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001755/0.3465, allocations: 0.6864 MB / 0.5182 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000414/0.3469, allocations: 82 kB / 0.5183 GB, free: 14.08 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001032/0.348, allocations: 269.9 kB / 0.5186 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.349, allocations: 0.503 MB / 0.5191 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.3502, allocations: 0.5484 MB / 0.5196 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002906/0.3532, allocations: 1.326 MB / 0.5209 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.207e-05/0.3532, allocations: 0 / 0.5209 GB, free: 13.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.3532, allocations: 3.938 kB / 0.5209 GB, free: 13.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.795e-05/0.3533, allocations: 0 / 0.5209 GB, free: 13.02 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.005503/0.3588, allocations: 1.363 MB / 0.5222 GB, free: 12.08 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.3589, allocations: 13.48 kB / 0.5222 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002613/0.3592, allocations: 143.3 kB / 0.5224 GB, free: 11.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001306/0.3605, allocations: 177.7 kB / 0.5226 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002575/0.3631, allocations: 0.7453 MB / 0.5233 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.3632, allocations: 69.25 kB / 0.5233 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003702/0.3636, allocations: 104.7 kB / 0.5234 GB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002419/0.366, allocations: 1.219 MB / 0.5246 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.774e-05/0.3661, allocations: 7.469 kB / 0.5246 GB, free: 10.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.564e-05/0.3662, allocations: 40.53 kB / 0.5247 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002824/0.3665, allocations: 65.98 kB / 0.5247 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002042/0.3685, allocations: 1.011 MB / 0.5257 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007941/0.3765, allocations: 4.757 MB / 0.5304 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.3778, allocations: 0.6736 MB / 0.531 GB, free: 6.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000727/0.3786, allocations: 456.6 kB / 0.5315 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.26e-05/0.3787, allocations: 11.55 kB / 0.5315 GB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008143/0.3795, allocations: 0.5103 MB / 0.532 GB, free: 6.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.905e-06/0.3795, allocations: 3.938 kB / 0.532 GB, free: 6.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.00558/0.3851, allocations: 2.808 MB / 0.5347 GB, free: 4.508 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.3852, allocations: 176.9 kB / 0.5349 GB, free: 4.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000876/0.3861, allocations: 0.5924 MB / 0.5355 GB, free: 3.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.549e-05/0.3862, allocations: 46.2 kB / 0.5355 GB, free: 3.91 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005378/0.3867, allocations: 484.4 kB / 0.536 GB, free: 3.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002563/0.387, allocations: 269.2 kB / 0.5362 GB, free: 3.258 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.3873, allocations: 169.5 kB / 0.5364 GB, free: 3.156 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.3875, allocations: 388 kB / 0.5368 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006313/0.3881, allocations: 377 kB / 0.5371 GB, free: 2.613 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009026/0.389, allocations: 0.6346 MB / 0.5377 GB, free: 2.09 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.007446/0.3965, allocations: 3.446 MB / 0.5411 GB, free: 12 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.3965, allocations: 3.281 kB / 0.5411 GB, free: 12 kB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002869/0.3994, allocations: 1.345 MB / 0.5424 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.018e-05/0.3995, allocations: 35.39 kB / 0.5425 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-05/0.3995, allocations: 11.08 kB / 0.5425 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007729/0.4003, allocations: 248.5 kB / 0.5427 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.4016, allocations: 262.5 kB / 0.543 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.4081, allocations: 6.078 MB / 0.5489 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009405/0.4091, allocations: 40.05 kB / 0.5489 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.759e-05/0.4092, allocations: 40 kB / 0.549 GB, free: 8.883 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.0006968/0.4099, allocations: 380.7 kB / 0.5493 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.41, allocations: 87.53 kB / 0.5494 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002025/0.4121, allocations: 1.141 MB / 0.5505 GB, free: 7.242 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/0.4121, allocations: 12 kB / 0.5505 GB, free: 7.23 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.4121, allocations: 4 kB / 0.5506 GB, free: 7.227 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/0.4121, allocations: 11.98 kB / 0.5506 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003932/0.4161, allocations: 2.254 MB / 0.5528 GB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4161, allocations: 0 / 0.5528 GB, free: 4.871 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009409/0.4171, allocations: 195.9 kB / 0.553 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007705/0.4178, allocations: 246.6 kB / 0.5532 GB, free: 4.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.054e-05/0.4179, allocations: 27.92 kB / 0.5532 GB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006514/0.4244, allocations: 6.007 MB / 0.5591 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.4245, allocations: 0 / 0.5591 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002929/0.4274, allocations: 1.659 MB / 0.5607 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003332/0.4278, allocations: 144.5 kB / 0.5608 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.4279, allocations: 28.05 kB / 0.5609 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004133/0.4283, allocations: 23.98 kB / 0.5609 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.4285, allocations: 60.42 kB / 0.5609 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.076e-05/0.4286, allocations: 28.23 kB / 0.561 GB, free: 11.97 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005938/0.4292, allocations: 411 kB / 0.5614 GB, free: 11.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4292, allocations: 0 / 0.5614 GB, free: 11.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00147/0.4307, allocations: 276 kB / 0.5616 GB, free: 11.3 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.003236/0.4339, allocations: 2.222 MB / 0.5638 GB, free: 9.023 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00235/0.4363, allocations: 1.396 MB / 0.5652 GB, free: 7.574 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.4363, allocations: 4 kB / 0.5652 GB, free: 7.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.4378, allocations: 0.9162 MB / 0.5661 GB, free: 6.598 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.4388, allocations: 184.5 kB / 0.5662 GB, free: 6.426 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01223/0.4511, allocations: 8.212 MB / 0.5743 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008324/0.4519, allocations: 1.111 MB / 0.5753 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0006197/0.4526, allocations: 206.5 kB / 0.5755 GB, free: 12.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004325/0.453, allocations: 335.3 kB / 0.5759 GB, free: 12.14 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.453, allocations: 4 kB / 0.5759 GB, free: 12.13 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05419/0.5072, allocations: 18.88 MB / 0.5943 GB, free: 9.484 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.51, allocations: 4.047 kB / 0.5943 GB, free: 9.48 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_Introductory_SimulationFixedInitial.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.SimulationFixedInitial.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.SimulationFixedInitial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches