Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.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.Generic.Network.NetworkOpened,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkOpened",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkOpened,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkOpened",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.001164/0.001164, allocations: 114.5 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.001225/0.001225, allocations: 191 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.454/1.454, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1994/0.1994, allocations: 38.05 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 63.91 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.3739, allocations: 58.06 MB / 0.5036 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkOpened): time 0.007266/0.3813, allocations: 7.673 MB / 0.5111 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006077/0.3874, allocations: 4.738 MB / 0.5157 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005378/0.388, allocations: 21.28 kB / 0.5158 GB, free: 14.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002809/0.3908, allocations: 1.087 MB / 0.5168 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003941/0.3947, allocations: 1.274 MB / 0.5181 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.3961, allocations: 359.8 kB / 0.5184 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002527/0.3987, allocations: 1.47 MB / 0.5198 GB, free: 12.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.3998, allocations: 0.6646 MB / 0.5205 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001334/0.4011, allocations: 0.6501 MB / 0.5211 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009781/0.4021, allocations: 0.6976 MB / 0.5218 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001227/0.4023, allocations: 69.91 kB / 0.5219 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003094/0.4054, allocations: 1.433 MB / 0.5233 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007051/0.4061, allocations: 495.3 kB / 0.5237 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006019/0.4067, allocations: 460.7 kB / 0.5242 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003267/0.41, allocations: 1.544 MB / 0.5257 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.41, allocations: 0 / 0.5257 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.41, allocations: 0 / 0.5257 GB, free: 10.21 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.884e-05/0.41, allocations: 1.906 kB / 0.5257 GB, free: 10.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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002246/0.4123, allocations: 1.191 MB / 0.5269 GB, free: 9.359 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.4123, allocations: 13.98 kB / 0.5269 GB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001826/0.4125, allocations: 131.2 kB / 0.527 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003555/0.4161, allocations: 414.6 kB / 0.5274 GB, free: 9.203 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.4172, allocations: 0.5006 MB / 0.5279 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.889e-05/0.4172, allocations: 59.83 kB / 0.5279 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.4174, allocations: 73.44 kB / 0.528 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002083/0.4195, allocations: 1.227 MB / 0.5292 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.295e-05/0.4195, allocations: 10.02 kB / 0.5292 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.522e-05/0.4196, allocations: 30.17 kB / 0.5292 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001218/0.4198, allocations: 79.67 kB / 0.5293 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002024/0.4218, allocations: 1.315 MB / 0.5306 GB, free: 7.773 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006158/0.428, allocations: 3.681 MB / 0.5342 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/0.43, allocations: 1.085 MB / 0.5353 GB, free: 4.688 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008927/0.4309, allocations: 0.6426 MB / 0.5359 GB, free: 4.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.864e-05/0.431, allocations: 18.56 kB / 0.5359 GB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.431, allocations: 47.31 kB / 0.536 GB, free: 4.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 3.907e-06/0.431, allocations: 1.094 kB / 0.536 GB, free: 4.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.007078/0.4381, allocations: 3.16 MB / 0.539 GB, free: 2.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.967e-05/0.4382, allocations: 95.88 kB / 0.5391 GB, free: 2.504 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000456/0.4387, allocations: 381.9 kB / 0.5395 GB, free: 2.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.026e-05/0.4388, allocations: 40.42 kB / 0.5395 GB, free: 2.223 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.439, allocations: 333.9 kB / 0.5399 GB, free: 1.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002979/0.4393, allocations: 334.3 kB / 0.5402 GB, free: 1.637 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002671/0.4396, allocations: 161.1 kB / 0.5403 GB, free: 1.543 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.4397, allocations: 374.9 kB / 0.5407 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006769/0.4404, allocations: 468.4 kB / 0.5411 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007804/0.4412, allocations: 0.5754 MB / 0.5417 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.4429, allocations: 1.112 MB / 0.5428 GB, free: 4 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.4429, allocations: 0.9688 kB / 0.5428 GB, free: 4 kB / 398.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002524/0.4454, allocations: 1.49 MB / 0.5442 GB, free: 14.71 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.4454, allocations: 7.938 kB / 0.5442 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.029e-05/0.4455, allocations: 4 kB / 0.5442 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009911/0.4465, allocations: 340.8 kB / 0.5446 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007046/0.4472, allocations: 183.7 kB / 0.5447 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00524/0.4524, allocations: 4.175 MB / 0.5488 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006567/0.4531, allocations: 47.94 kB / 0.5489 GB, free: 9.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.893e-05/0.4532, allocations: 39.92 kB / 0.5489 GB, free: 9.758 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004913/0.4537, allocations: 301.7 kB / 0.5492 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001162/0.4538, allocations: 59.62 kB / 0.5492 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002747/0.4566, allocations: 1.547 MB / 0.5508 GB, free: 7.832 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.4566, allocations: 12 kB / 0.5508 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.4566, allocations: 11.98 kB / 0.5508 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.4566, allocations: 7.984 kB / 0.5508 GB, free: 7.801 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00562/0.4623, allocations: 3.016 MB / 0.5537 GB, free: 4.656 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.337e-06/0.4623, allocations: 4 kB / 0.5537 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006212/0.4629, allocations: 167.8 kB / 0.5539 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007688/0.4637, allocations: 280.6 kB / 0.5542 GB, free: 4.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.441e-05/0.4638, allocations: 27.98 kB / 0.5542 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005155/0.469, allocations: 3.906 MB / 0.558 GB, free: 132 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.575e-06/0.469, allocations: 7.938 kB / 0.558 GB, free: 124 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002516/0.4715, allocations: 1.575 MB / 0.5596 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00029/0.4718, allocations: 148.7 kB / 0.5597 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001238/0.4719, allocations: 23.98 kB / 0.5597 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005133/0.4725, allocations: 39.97 kB / 0.5598 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.4726, allocations: 84.77 kB / 0.5598 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.388e-05/0.4727, allocations: 35.98 kB / 0.5599 GB, free: 14.13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003213/0.473, allocations: 271.1 kB / 0.5601 GB, free: 13.87 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.473, allocations: 0 / 0.5601 GB, free: 13.87 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001335/0.4744, allocations: 308 kB / 0.5604 GB, free: 13.57 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00301/0.4774, allocations: 2.153 MB / 0.5625 GB, free: 11.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002276/0.4797, allocations: 1.398 MB / 0.5639 GB, free: 9.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.4797, allocations: 4.188 kB / 0.5639 GB, free: 9.926 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001253/0.481, allocations: 0.8402 MB / 0.5647 GB, free: 9.074 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/0.482, allocations: 110.5 kB / 0.5648 GB, free: 8.969 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01151/0.4935, allocations: 7.647 MB / 0.5723 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008795/0.4944, allocations: 1.08 MB / 0.5733 GB, free: 15.96 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004864/0.4949, allocations: 192.6 kB / 0.5735 GB, free: 15.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.4954, allocations: 267.3 kB / 0.5738 GB, free: 15.52 MB / 446.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4954, allocations: 0 / 0.5738 GB, free: 15.52 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04971/0.5451, allocations: 16.7 MB / 0.5901 GB, free: 14.94 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.02, allocations: 18.39 kB / 0.5901 GB, free: 14.93 MB / 462.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkOpened.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkOpened.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches