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.00137/0.00137, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001453/0.001453, allocations: 200 kB / 18.01 MB, free: 5.047 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.52/1.52, 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.1899/0.1899, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001866/0.001866, allocations: 63.89 kB / 457.7 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4024/0.4042, allocations: 58.06 MB / 0.5036 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkOpened): time 0.007048/0.4113, allocations: 7.678 MB / 0.5111 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006082/0.4175, allocations: 4.738 MB / 0.5157 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005288/0.418, allocations: 13.84 kB / 0.5158 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002792/0.4208, allocations: 1.086 MB / 0.5168 GB, free: 13.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003571/0.4244, allocations: 1.259 MB / 0.5181 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.4259, allocations: 371.5 kB / 0.5184 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003228/0.4291, allocations: 1.46 MB / 0.5198 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001308/0.4305, allocations: 0.6608 MB / 0.5205 GB, free: 12.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001639/0.4321, allocations: 0.6436 MB / 0.5211 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001071/0.4332, allocations: 0.7162 MB / 0.5218 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001092/0.4333, allocations: 66.28 kB / 0.5219 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003414/0.4367, allocations: 1.419 MB / 0.5233 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006464/0.4374, allocations: 0.4895 MB / 0.5237 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006235/0.438, allocations: 462.1 kB / 0.5242 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003055/0.4411, allocations: 1.536 MB / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4411, allocations: 0 / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4411, allocations: 1.219 kB / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.128e-05/0.4411, allocations: 0 / 0.5257 GB, free: 10.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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002579/0.4437, allocations: 1.195 MB / 0.5268 GB, free: 9.293 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.4438, allocations: 13.48 kB / 0.5269 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002227/0.444, allocations: 135.8 kB / 0.527 GB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00397/0.448, allocations: 410.6 kB / 0.5274 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.4496, allocations: 0.5047 MB / 0.5279 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.438e-05/0.4497, allocations: 57.05 kB / 0.5279 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001725/0.4499, allocations: 72.08 kB / 0.528 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002667/0.4525, allocations: 1.236 MB / 0.5292 GB, free: 8.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.686e-05/0.4526, allocations: 5.922 kB / 0.5292 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.694e-05/0.4527, allocations: 30.86 kB / 0.5292 GB, free: 8.219 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001363/0.4529, allocations: 77.88 kB / 0.5293 GB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002394/0.4553, allocations: 1.309 MB / 0.5306 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006224/0.4615, allocations: 3.687 MB / 0.5342 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001888/0.4634, allocations: 1.086 MB / 0.5352 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008855/0.4643, allocations: 0.6426 MB / 0.5359 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.645e-05/0.4644, allocations: 14.7 kB / 0.5359 GB, free: 4.316 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.213e-05/0.4644, allocations: 48 kB / 0.5359 GB, free: 4.266 MB / 398.1 MB Notification: Performance of pre-optimization done (n=92): time 2.795e-06/0.4645, allocations: 0 / 0.5359 GB, free: 4.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=93): time 0.007595/0.4721, allocations: 3.173 MB / 0.539 GB, free: 2.562 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.912e-05/0.4722, allocations: 86.36 kB / 0.5391 GB, free: 2.465 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005164/0.4727, allocations: 381.9 kB / 0.5395 GB, free: 2.227 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.935e-05/0.4728, allocations: 41.83 kB / 0.5395 GB, free: 2.184 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.473, allocations: 324.7 kB / 0.5398 GB, free: 1.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003498/0.4734, allocations: 342.2 kB / 0.5402 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002713/0.4737, allocations: 156.6 kB / 0.5403 GB, free: 1.508 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.4739, allocations: 370.9 kB / 0.5407 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007075/0.4746, allocations: 465.5 kB / 0.5411 GB, free: 0.9336 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000806/0.4754, allocations: 0.5784 MB / 0.5417 GB, free: 0.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.477, allocations: 1.12 MB / 0.5428 GB, free: 15.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.477, allocations: 1.125 kB / 0.5428 GB, free: 15.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002603/0.4796, allocations: 1.483 MB / 0.5442 GB, free: 14.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.4796, allocations: 4 kB / 0.5442 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.4796, allocations: 4 kB / 0.5442 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009486/0.4806, allocations: 340.7 kB / 0.5445 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007406/0.4813, allocations: 191.7 kB / 0.5447 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005649/0.487, allocations: 4.175 MB / 0.5488 GB, free: 9.848 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006092/0.4876, allocations: 47.95 kB / 0.5488 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.269e-05/0.4877, allocations: 35.92 kB / 0.5489 GB, free: 9.766 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.0005227/0.4883, allocations: 305.7 kB / 0.5492 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001295/0.4884, allocations: 59.62 kB / 0.5492 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002835/0.4912, allocations: 1.547 MB / 0.5507 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.57e-05/0.4913, allocations: 16 kB / 0.5508 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.4913, allocations: 4 kB / 0.5508 GB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.508e-05/0.4913, allocations: 7.969 kB / 0.5508 GB, free: 7.809 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.005229/0.4965, allocations: 3.012 MB / 0.5537 GB, free: 4.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.005e-05/0.4966, allocations: 4 kB / 0.5537 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006423/0.4972, allocations: 167.7 kB / 0.5539 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008334/0.4981, allocations: 284.7 kB / 0.5541 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.012e-05/0.4981, allocations: 27.98 kB / 0.5542 GB, free: 4.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005464/0.5036, allocations: 3.906 MB / 0.558 GB, free: 140 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/0.5036, allocations: 4 kB / 0.558 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002812/0.5065, allocations: 1.583 MB / 0.5595 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003086/0.5068, allocations: 144.7 kB / 0.5597 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.5069, allocations: 20 kB / 0.5597 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.5075, allocations: 43.95 kB / 0.5597 GB, free: 14.26 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/0.5077, allocations: 84.72 kB / 0.5598 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.341e-05/0.5078, allocations: 43.97 kB / 0.5599 GB, free: 14.13 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003837/0.5082, allocations: 263.1 kB / 0.5601 GB, free: 13.88 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5082, allocations: 0 / 0.5601 GB, free: 13.88 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001293/0.5095, allocations: 312 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.003039/0.5125, allocations: 2.149 MB / 0.5625 GB, free: 11.35 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002541/0.5151, allocations: 1.394 MB / 0.5639 GB, free: 9.945 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.5151, allocations: 3.938 kB / 0.5639 GB, free: 9.941 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.5164, allocations: 0.8403 MB / 0.5647 GB, free: 9.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007695/0.5172, allocations: 106.5 kB / 0.5648 GB, free: 8.988 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/0.5299, allocations: 7.654 MB / 0.5723 GB, free: 1.09 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009289/0.5309, allocations: 1.087 MB / 0.5733 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004987/0.5314, allocations: 176.7 kB / 0.5735 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004579/0.5318, allocations: 275.3 kB / 0.5738 GB, free: 15.53 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5319, allocations: 3.938 kB / 0.5738 GB, free: 15.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04733/0.5792, allocations: 16.7 MB / 0.5901 GB, free: 14.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.52, allocations: 3.984 kB / 0.5901 GB, free: 14.94 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