Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.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.NetworkLoop,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop",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.001568/0.001568, allocations: 110 kB / 17.06 MB, free: 5.82 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.001837/0.001837, allocations: 195.9 kB / 18 MB, free: 4.965 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.44/1.44, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1944/0.1944, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 59.91 kB / 457.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3991/0.4005, allocations: 58.05 MB / 0.5036 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.007402/0.408, allocations: 7.411 MB / 0.5109 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005722/0.4138, allocations: 4.39 MB / 0.5151 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004164/0.4142, allocations: 16.56 kB / 0.5152 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002662/0.4169, allocations: 1.033 MB / 0.5162 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003173/0.4201, allocations: 1.215 MB / 0.5174 GB, free: 14 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001001/0.4211, allocations: 323.6 kB / 0.5177 GB, free: 13.84 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002163/0.4233, allocations: 1.403 MB / 0.519 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/0.4245, allocations: 0.6633 MB / 0.5197 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.4259, allocations: 0.6178 MB / 0.5203 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001054/0.427, allocations: 0.6827 MB / 0.521 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001337/0.4271, allocations: 63.16 kB / 0.521 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002824/0.4299, allocations: 1.322 MB / 0.5223 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007011/0.4307, allocations: 485.5 kB / 0.5228 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006151/0.4313, allocations: 442 kB / 0.5232 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002758/0.4341, allocations: 1.456 MB / 0.5246 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.4341, allocations: 4 kB / 0.5246 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4341, allocations: 1.375 kB / 0.5246 GB, free: 10.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.596e-05/0.4341, allocations: 0 / 0.5246 GB, free: 10.98 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002256/0.4364, allocations: 1.152 MB / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.4364, allocations: 9.875 kB / 0.5257 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002159/0.4367, allocations: 136.8 kB / 0.5259 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00355/0.4402, allocations: 394.3 kB / 0.5263 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.4415, allocations: 485.5 kB / 0.5267 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.168e-05/0.4416, allocations: 56.23 kB / 0.5268 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002126/0.4418, allocations: 74.94 kB / 0.5268 GB, free: 9.598 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.4442, allocations: 1.183 MB / 0.528 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.759e-05/0.4443, allocations: 1.625 kB / 0.528 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.721e-05/0.4444, allocations: 30.56 kB / 0.528 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/0.4445, allocations: 69.95 kB / 0.5281 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002277/0.4468, allocations: 1.247 MB / 0.5293 GB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005879/0.4527, allocations: 3.494 MB / 0.5327 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001875/0.4546, allocations: 1.062 MB / 0.5338 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009487/0.4555, allocations: 0.6588 MB / 0.5344 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.668e-05/0.4556, allocations: 22.7 kB / 0.5344 GB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.4557, allocations: 40.19 kB / 0.5345 GB, free: 5.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 2.845e-06/0.4557, allocations: 3.938 kB / 0.5345 GB, free: 5.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.00674/0.4624, allocations: 3.105 MB / 0.5375 GB, free: 3.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.632e-05/0.4625, allocations: 87.48 kB / 0.5376 GB, free: 3.629 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004764/0.463, allocations: 362.3 kB / 0.5379 GB, free: 3.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.472e-05/0.4631, allocations: 41.23 kB / 0.538 GB, free: 3.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.4633, allocations: 332 kB / 0.5383 GB, free: 3.062 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003186/0.4636, allocations: 325.6 kB / 0.5386 GB, free: 2.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002822/0.4639, allocations: 164.1 kB / 0.5388 GB, free: 2.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.4641, allocations: 365.9 kB / 0.5391 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006894/0.4648, allocations: 470.3 kB / 0.5396 GB, free: 2.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000831/0.4656, allocations: 0.5701 MB / 0.5401 GB, free: 1.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001565/0.4672, allocations: 1.113 MB / 0.5412 GB, free: 1.164 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.4672, allocations: 0 / 0.5412 GB, free: 1.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002642/0.4699, allocations: 1.477 MB / 0.5426 GB, free: 312 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.4699, allocations: 14.52 kB / 0.5427 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.4699, allocations: 4 kB / 0.5427 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009422/0.4709, allocations: 334.2 kB / 0.543 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007171/0.4716, allocations: 179.7 kB / 0.5431 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005531/0.4771, allocations: 4.194 MB / 0.5472 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000759/0.4779, allocations: 47.95 kB / 0.5473 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.195e-05/0.478, allocations: 39.98 kB / 0.5473 GB, free: 11.34 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (80): * Single equations (assignments): 79 * 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.0005366/0.4786, allocations: 293.6 kB / 0.5476 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/0.4787, allocations: 59.62 kB / 0.5477 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/0.4814, allocations: 1.571 MB / 0.5492 GB, free: 9.395 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.4814, allocations: 8 kB / 0.5492 GB, free: 9.387 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.4814, allocations: 8 kB / 0.5492 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.4814, allocations: 7.969 kB / 0.5492 GB, free: 9.371 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.005384/0.4868, allocations: 3.023 MB / 0.5522 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.4869, allocations: 0 / 0.5522 GB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006495/0.4875, allocations: 163.8 kB / 0.5523 GB, free: 6.062 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007727/0.4883, allocations: 289 kB / 0.5526 GB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.549e-05/0.4884, allocations: 27.98 kB / 0.5526 GB, free: 5.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005026/0.4934, allocations: 3.917 MB / 0.5565 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.4934, allocations: 4 kB / 0.5565 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.496, allocations: 1.594 MB / 0.558 GB, free: 20 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002581/0.4963, allocations: 148.6 kB / 0.5582 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.291e-05/0.4964, allocations: 31.88 kB / 0.5582 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004336/0.4968, allocations: 51.89 kB / 0.5582 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.497, allocations: 76.83 kB / 0.5583 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.173e-05/0.4971, allocations: 39.92 kB / 0.5583 GB, free: 15.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002873/0.4973, allocations: 259.2 kB / 0.5586 GB, free: 15.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4974, allocations: 0 / 0.5586 GB, free: 15.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001062/0.4984, allocations: 304 kB / 0.5589 GB, free: 15.11 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.002621/0.5011, allocations: 2.165 MB / 0.561 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.5033, allocations: 1.409 MB / 0.5624 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.5033, allocations: 0 / 0.5624 GB, free: 11.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.5044, allocations: 0.8482 MB / 0.5632 GB, free: 10.59 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007114/0.5052, allocations: 102.4 kB / 0.5633 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01081/0.516, allocations: 7.56 MB / 0.5707 GB, free: 2.688 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008115/0.5168, allocations: 1.068 MB / 0.5717 GB, free: 1.594 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004864/0.5173, allocations: 184.6 kB / 0.5719 GB, free: 1.414 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/0.5178, allocations: 263.3 kB / 0.5722 GB, free: 1.156 MB / 430.1 MB Notification: Performance of SimCode: time 1.402e-06/0.5178, allocations: 0 / 0.5722 GB, free: 1.156 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06658/0.5844, allocations: 16.52 MB / 0.5883 GB, free: 0.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/11.07, allocations: 10.56 kB / 0.5883 GB, free: 0.7461 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_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_NetworkLoop.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches