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.001236/0.001236, allocations: 105.9 kB / 17.06 MB, free: 6.004 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.001232/0.001233, allocations: 189.4 kB / 18 MB, free: 5.09 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.512/1.512, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.185/0.185, allocations: 38.05 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 63.89 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.406, allocations: 58.05 MB / 0.5036 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop): time 0.00795/0.414, allocations: 7.417 MB / 0.5109 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005925/0.42, allocations: 4.403 MB / 0.5152 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000592/0.4206, allocations: 11.88 kB / 0.5152 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002783/0.4235, allocations: 1.018 MB / 0.5162 GB, free: 14.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003565/0.427, allocations: 1.207 MB / 0.5173 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001087/0.4281, allocations: 315.6 kB / 0.5176 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002343/0.4305, allocations: 1.409 MB / 0.519 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001317/0.4318, allocations: 0.6552 MB / 0.5197 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001475/0.4333, allocations: 0.6147 MB / 0.5203 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001192/0.4345, allocations: 0.678 MB / 0.5209 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001267/0.4346, allocations: 63.06 kB / 0.521 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003082/0.4377, allocations: 1.332 MB / 0.5223 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006571/0.4384, allocations: 476.7 kB / 0.5227 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000588/0.439, allocations: 441.5 kB / 0.5232 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003654/0.4427, allocations: 1.465 MB / 0.5246 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4427, allocations: 0 / 0.5246 GB, free: 10.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4427, allocations: 0.5625 kB / 0.5246 GB, free: 10.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.4427, 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.002754/0.4455, allocations: 1.152 MB / 0.5257 GB, free: 10.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4456, allocations: 10.92 kB / 0.5257 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002005/0.4458, allocations: 128.3 kB / 0.5259 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003846/0.4496, allocations: 394.6 kB / 0.5262 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00123/0.4509, allocations: 489.7 kB / 0.5267 GB, free: 9.578 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.281e-05/0.451, allocations: 55.08 kB / 0.5267 GB, free: 9.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.4512, allocations: 75.66 kB / 0.5268 GB, free: 9.527 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002529/0.4537, allocations: 1.179 MB / 0.528 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.4538, allocations: 1.25 kB / 0.528 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.71e-05/0.4539, allocations: 31.11 kB / 0.528 GB, free: 9.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001311/0.454, allocations: 72.77 kB / 0.5281 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002112/0.4561, allocations: 1.24 MB / 0.5293 GB, free: 8.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005915/0.462, allocations: 3.499 MB / 0.5327 GB, free: 6.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001826/0.4639, allocations: 1.061 MB / 0.5337 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009906/0.4649, allocations: 0.6593 MB / 0.5344 GB, free: 5.438 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.374e-05/0.465, allocations: 26.84 kB / 0.5344 GB, free: 5.422 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.617e-05/0.465, allocations: 48.25 kB / 0.5345 GB, free: 5.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=91): time 3.357e-06/0.465, allocations: 0 / 0.5345 GB, free: 5.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.00712/0.4722, allocations: 3.105 MB / 0.5375 GB, free: 3.719 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.658e-05/0.4723, allocations: 91.45 kB / 0.5376 GB, free: 3.617 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004806/0.4728, allocations: 362.2 kB / 0.5379 GB, free: 3.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.394e-05/0.4728, allocations: 40.95 kB / 0.538 GB, free: 3.348 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002461/0.4731, allocations: 331.6 kB / 0.5383 GB, free: 3.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003378/0.4734, allocations: 329.7 kB / 0.5386 GB, free: 2.766 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002765/0.4737, allocations: 160.1 kB / 0.5387 GB, free: 2.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.4739, allocations: 366.8 kB / 0.5391 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006919/0.4746, allocations: 466.4 kB / 0.5395 GB, free: 2.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007984/0.4754, allocations: 0.5691 MB / 0.5401 GB, free: 1.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001633/0.4771, allocations: 1.116 MB / 0.5412 GB, free: 1.152 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.4771, allocations: 1.188 kB / 0.5412 GB, free: 1.152 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0027/0.4798, allocations: 1.474 MB / 0.5426 GB, free: 348 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.4798, allocations: 12.03 kB / 0.5426 GB, free: 336 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.4798, allocations: 4 kB / 0.5426 GB, free: 332 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009894/0.4808, allocations: 338.3 kB / 0.543 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007389/0.4816, allocations: 183.6 kB / 0.5431 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005945/0.4875, allocations: 4.189 MB / 0.5472 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007017/0.4883, allocations: 47.95 kB / 0.5473 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-05/0.4883, allocations: 35.98 kB / 0.5473 GB, free: 11.38 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.0006027/0.489, allocations: 289.6 kB / 0.5476 GB, free: 11.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.4891, allocations: 59.62 kB / 0.5476 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002907/0.492, allocations: 1.571 MB / 0.5492 GB, free: 9.438 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.492, allocations: 12 kB / 0.5492 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.492, allocations: 4 kB / 0.5492 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.4921, allocations: 7.984 kB / 0.5492 GB, free: 9.414 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.005252/0.4973, allocations: 3.023 MB / 0.5521 GB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.4973, allocations: 4 kB / 0.5522 GB, free: 6.262 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006439/0.498, allocations: 167.8 kB / 0.5523 GB, free: 6.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008283/0.4988, allocations: 288.9 kB / 0.5526 GB, free: 5.812 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.491e-05/0.4989, allocations: 23.98 kB / 0.5526 GB, free: 5.789 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005373/0.5043, allocations: 3.915 MB / 0.5564 GB, free: 1.723 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.5043, allocations: 4 kB / 0.5564 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002697/0.507, allocations: 1.602 MB / 0.558 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002667/0.5073, allocations: 152.6 kB / 0.5581 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.5074, allocations: 31.81 kB / 0.5582 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004363/0.5079, allocations: 43.95 kB / 0.5582 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001657/0.5081, allocations: 76.89 kB / 0.5583 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-05/0.5082, allocations: 35.94 kB / 0.5583 GB, free: 15.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003197/0.5085, allocations: 267.1 kB / 0.5586 GB, free: 15.44 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5085, allocations: 0 / 0.5586 GB, free: 15.44 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001146/0.5096, allocations: 308 kB / 0.5589 GB, free: 15.14 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.003036/0.5127, allocations: 2.153 MB / 0.561 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.5155, allocations: 1.409 MB / 0.5624 GB, free: 11.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.5155, allocations: 4 kB / 0.5624 GB, free: 11.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001315/0.5168, allocations: 0.8482 MB / 0.5632 GB, free: 10.62 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007763/0.5176, allocations: 104.8 kB / 0.5633 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01237/0.53, allocations: 7.549 MB / 0.5707 GB, free: 2.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001113/0.5312, allocations: 1.068 MB / 0.5717 GB, free: 1.637 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005268/0.5317, allocations: 180.6 kB / 0.5719 GB, free: 1.461 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004734/0.5322, allocations: 271.2 kB / 0.5721 GB, free: 1.195 MB / 430.1 MB Notification: Performance of SimCode: time 2.655e-06/0.5322, allocations: 0 / 0.5721 GB, free: 1.195 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04986/0.5821, allocations: 16.52 MB / 0.5883 GB, free: 0.793 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.25, allocations: 10.38 kB / 0.5883 GB, free: 0.7891 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