Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.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_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq",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.00143/0.00143, allocations: 111.1 kB / 17.06 MB, free: 5.992 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.001247/0.001247, allocations: 200 kB / 18.01 MB, free: 5.066 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.404/1.404, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1821/0.1821, allocations: 38.04 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 63.89 kB / 457.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.442/0.4436, allocations: 58.05 MB / 0.5036 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq): time 0.00802/0.4517, allocations: 7.421 MB / 0.5109 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005503/0.4573, allocations: 4.387 MB / 0.5152 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004522/0.4578, allocations: 17.88 kB / 0.5152 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002782/0.4606, allocations: 1.028 MB / 0.5162 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003261/0.4638, allocations: 1.213 MB / 0.5174 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.4649, allocations: 317.2 kB / 0.5177 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002047/0.4669, allocations: 1.41 MB / 0.5191 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.4682, allocations: 0.6581 MB / 0.5197 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001352/0.4696, allocations: 0.6201 MB / 0.5203 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.4707, allocations: 0.6764 MB / 0.521 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.4708, allocations: 64.69 kB / 0.521 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002932/0.4738, allocations: 1.331 MB / 0.5223 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000632/0.4744, allocations: 481.3 kB / 0.5228 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006103/0.475, allocations: 441.6 kB / 0.5232 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002956/0.478, allocations: 1.461 MB / 0.5246 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.478, allocations: 0 / 0.5246 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.478, allocations: 0 / 0.5246 GB, free: 10.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.332e-05/0.478, allocations: 0 / 0.5246 GB, free: 10.91 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.002046/0.4801, allocations: 1.154 MB / 0.5258 GB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.4802, allocations: 13.11 kB / 0.5258 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001761/0.4803, allocations: 133.5 kB / 0.5259 GB, free: 9.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003192/0.4835, allocations: 394 kB / 0.5263 GB, free: 9.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.4846, allocations: 486.1 kB / 0.5267 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.325e-05/0.4847, allocations: 62.17 kB / 0.5268 GB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.4849, allocations: 76.16 kB / 0.5269 GB, free: 9.516 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.487, allocations: 1.177 MB / 0.528 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.487, allocations: 3.141 kB / 0.528 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.873e-05/0.4871, allocations: 30.23 kB / 0.528 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001449/0.4873, allocations: 74.28 kB / 0.5281 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00206/0.4893, allocations: 1.244 MB / 0.5293 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006465/0.4958, allocations: 3.495 MB / 0.5327 GB, free: 6.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.4977, allocations: 1.062 MB / 0.5338 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000938/0.4986, allocations: 0.6552 MB / 0.5344 GB, free: 5.457 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.439e-05/0.4987, allocations: 23.94 kB / 0.5344 GB, free: 5.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.19e-05/0.4987, allocations: 51.34 kB / 0.5345 GB, free: 5.391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 3.426e-06/0.4988, allocations: 0 / 0.5345 GB, free: 5.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.006827/0.5056, allocations: 3.109 MB / 0.5375 GB, free: 3.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.012e-05/0.5057, allocations: 87.89 kB / 0.5376 GB, free: 3.637 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004391/0.5061, allocations: 361.3 kB / 0.538 GB, free: 3.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.158e-05/0.5062, allocations: 41.2 kB / 0.538 GB, free: 3.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002042/0.5064, allocations: 324.2 kB / 0.5383 GB, free: 3.078 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002949/0.5067, allocations: 328.3 kB / 0.5386 GB, free: 2.793 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/0.507, allocations: 160.3 kB / 0.5388 GB, free: 2.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.5072, allocations: 370.8 kB / 0.5391 GB, free: 2.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006595/0.5078, allocations: 466.3 kB / 0.5396 GB, free: 2.125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.5086, allocations: 0.5705 MB / 0.5401 GB, free: 1.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00157/0.5102, allocations: 1.108 MB / 0.5412 GB, free: 1.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.5102, allocations: 1.156 kB / 0.5412 GB, free: 1.184 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002538/0.5127, allocations: 1.483 MB / 0.5427 GB, free: 312 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.5128, allocations: 12.03 kB / 0.5427 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.5128, allocations: 0 / 0.5427 GB, free: 300 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009644/0.5138, allocations: 330.3 kB / 0.543 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006966/0.5145, allocations: 183.7 kB / 0.5432 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005333/0.5198, allocations: 4.201 MB / 0.5473 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005487/0.5204, allocations: 47.94 kB / 0.5473 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.543e-05/0.5205, allocations: 35.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.0004591/0.5209, allocations: 289.6 kB / 0.5476 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.5211, allocations: 59.62 kB / 0.5477 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.5237, allocations: 1.575 MB / 0.5492 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.5237, allocations: 15.98 kB / 0.5492 GB, free: 9.383 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.5237, allocations: 4 kB / 0.5492 GB, free: 9.379 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.5237, allocations: 7.984 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.004976/0.5287, allocations: 3.027 MB / 0.5522 GB, free: 6.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5287, allocations: 4 kB / 0.5522 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006268/0.5294, allocations: 167.8 kB / 0.5524 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007551/0.5301, allocations: 284.9 kB / 0.5526 GB, free: 5.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.934e-05/0.5302, allocations: 27.98 kB / 0.5527 GB, free: 5.742 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004944/0.5352, allocations: 3.915 MB / 0.5565 GB, free: 1.676 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.5352, allocations: 4 kB / 0.5565 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.5377, allocations: 1.594 MB / 0.558 GB, free: 12 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002881/0.538, allocations: 152.6 kB / 0.5582 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.5381, allocations: 27.92 kB / 0.5582 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004471/0.5386, allocations: 43.97 kB / 0.5583 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/0.5387, allocations: 76.83 kB / 0.5583 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.14e-05/0.5388, allocations: 43.92 kB / 0.5584 GB, free: 15.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002888/0.5391, allocations: 255.2 kB / 0.5586 GB, free: 15.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5391, allocations: 0 / 0.5586 GB, free: 15.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001009/0.5401, allocations: 308 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.00266/0.5428, allocations: 2.159 MB / 0.561 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00223/0.545, allocations: 1.417 MB / 0.5624 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5451, allocations: 0 / 0.5624 GB, free: 11.44 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.5463, allocations: 0.8443 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.000707/0.547, 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.01051/0.5575, allocations: 7.553 MB / 0.5707 GB, free: 2.691 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007072/0.5583, allocations: 1.068 MB / 0.5717 GB, free: 1.598 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004385/0.5587, allocations: 192.6 kB / 0.5719 GB, free: 1.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003901/0.5591, allocations: 255.3 kB / 0.5722 GB, free: 1.16 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5591, allocations: 0 / 0.5722 GB, free: 1.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04177/0.6009, allocations: 16.53 MB / 0.5883 GB, free: 0.7539 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/11.27, allocations: 15.94 kB / 0.5883 GB, free: 0.7383 MB / 446.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_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_dq.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches