Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.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_dq0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_dq0",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.001199/0.001199, 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.001227/0.001227, 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.361/1.361, 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.1837/0.1837, allocations: 38.04 MB / 329.9 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 59.91 kB / 457.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.338, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.008234/0.3463, allocations: 7.424 MB / 0.5109 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005898/0.3523, allocations: 4.44 MB / 0.5152 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006237/0.3529, allocations: 16.12 kB / 0.5152 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.3556, allocations: 1.044 MB / 0.5163 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003404/0.359, allocations: 1.282 MB / 0.5175 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.3601, allocations: 341.2 kB / 0.5178 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002127/0.3623, allocations: 1.41 MB / 0.5192 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.3636, allocations: 0.8014 MB / 0.52 GB, free: 12.79 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.365, allocations: 0.6479 MB / 0.5206 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009835/0.366, allocations: 0.7314 MB / 0.5213 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.3661, allocations: 83.14 kB / 0.5214 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003424/0.3696, allocations: 1.526 MB / 0.5229 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007884/0.3704, allocations: 0.5981 MB / 0.5235 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006987/0.3711, allocations: 0.5655 MB / 0.524 GB, free: 11.13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003914/0.375, allocations: 1.894 MB / 0.5259 GB, free: 10.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.375, allocations: 0 / 0.5259 GB, free: 10.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3751, allocations: 0 / 0.5259 GB, free: 10.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.82e-05/0.3751, allocations: 0 / 0.5259 GB, free: 10.49 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.002978/0.3781, allocations: 1.357 MB / 0.5272 GB, free: 9.559 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.298e-05/0.3782, allocations: 21.92 kB / 0.5272 GB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002489/0.3784, allocations: 156.8 kB / 0.5274 GB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004443/0.3829, allocations: 0.5441 MB / 0.5279 GB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.3841, allocations: 0.5618 MB / 0.5285 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.561e-05/0.3842, allocations: 75.02 kB / 0.5285 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001968/0.3844, allocations: 93.03 kB / 0.5286 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002759/0.3871, allocations: 1.505 MB / 0.5301 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/0.3872, allocations: 3.562 kB / 0.5301 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.3873, allocations: 35.02 kB / 0.5301 GB, free: 8.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001517/0.3875, allocations: 102.2 kB / 0.5302 GB, free: 8.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002421/0.3899, allocations: 1.549 MB / 0.5317 GB, free: 7.297 MB / 398.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 preOpt removeSimpleEquations (simulation): time 0.008151/0.3981, allocations: 4.893 MB / 0.5365 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001803/0.3999, allocations: 1.186 MB / 0.5377 GB, free: 3.191 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/0.4009, allocations: 0.7691 MB / 0.5384 GB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.045e-05/0.401, allocations: 24.55 kB / 0.5385 GB, free: 2.789 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.4011, allocations: 44.38 kB / 0.5385 GB, free: 2.738 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.597e-06/0.4011, allocations: 0 / 0.5385 GB, free: 2.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.007999/0.4091, allocations: 3.691 MB / 0.5421 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.324e-05/0.4092, allocations: 89.2 kB / 0.5422 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005584/0.4097, allocations: 478.2 kB / 0.5426 GB, free: 244 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.185e-05/0.4098, allocations: 45.7 kB / 0.5427 GB, free: 192 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002801/0.4101, allocations: 440.8 kB / 0.5431 GB, free: 15.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000335/0.4104, allocations: 384.7 kB / 0.5435 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/0.4108, allocations: 202.9 kB / 0.5437 GB, free: 15.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.4109, allocations: 382.8 kB / 0.544 GB, free: 14.78 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007984/0.4117, allocations: 0.5374 MB / 0.5446 GB, free: 14.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009324/0.4127, allocations: 0.75 MB / 0.5453 GB, free: 13.41 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00181/0.4145, allocations: 1.404 MB / 0.5467 GB, free: 11.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.4145, allocations: 4 kB / 0.5467 GB, free: 11.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003033/0.4175, allocations: 1.81 MB / 0.5484 GB, free: 10.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.735e-05/0.4176, allocations: 8 kB / 0.5484 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.4176, allocations: 8 kB / 0.5484 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.4187, allocations: 409.6 kB / 0.5488 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009144/0.4197, allocations: 239.6 kB / 0.5491 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006824/0.4265, allocations: 6.07 MB / 0.555 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008425/0.4274, allocations: 59.94 kB / 0.5551 GB, free: 3.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.05e-05/0.4275, allocations: 43.98 kB / 0.5551 GB, free: 2.98 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (105): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,26,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005778/0.4281, allocations: 369.4 kB / 0.5554 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.4282, allocations: 79.52 kB / 0.5555 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002994/0.4312, allocations: 1.807 MB / 0.5573 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.4312, allocations: 15.94 kB / 0.5573 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.826e-06/0.4313, allocations: 4 kB / 0.5573 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.581e-05/0.4313, allocations: 7.969 kB / 0.5573 GB, free: 0.6836 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.005635/0.4369, allocations: 3.473 MB / 0.5607 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/0.4369, allocations: 4 kB / 0.5607 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007448/0.4377, allocations: 195.7 kB / 0.5609 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009193/0.4386, allocations: 349.4 kB / 0.5612 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.147e-05/0.4387, allocations: 27.98 kB / 0.5613 GB, free: 12.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006389/0.4451, allocations: 5.797 MB / 0.5669 GB, free: 6.418 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.4451, allocations: 7.938 kB / 0.5669 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003131/0.4483, allocations: 1.829 MB / 0.5687 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00037/0.4487, allocations: 164.5 kB / 0.5689 GB, free: 4.332 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001801/0.4489, allocations: 24 kB / 0.5689 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006415/0.4495, allocations: 59.88 kB / 0.5689 GB, free: 4.25 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.4497, allocations: 88.81 kB / 0.569 GB, free: 4.164 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.738e-05/0.4498, allocations: 36 kB / 0.5691 GB, free: 4.129 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004415/0.4502, allocations: 331 kB / 0.5694 GB, free: 3.805 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4502, allocations: 0 / 0.5694 GB, free: 3.805 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001431/0.4517, allocations: 396 kB / 0.5698 GB, free: 3.418 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 (91): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,7,100.0%), (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.003017/0.4547, allocations: 2.388 MB / 0.5721 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002781/0.4575, allocations: 1.763 MB / 0.5738 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.4575, allocations: 3.938 kB / 0.5738 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001604/0.4591, allocations: 1.077 MB / 0.5749 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009325/0.4601, allocations: 130.8 kB / 0.575 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.4737, allocations: 9.143 MB / 0.5839 GB, free: 4.422 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009222/0.4747, allocations: 1.174 MB / 0.5851 GB, free: 3.219 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005763/0.4753, allocations: 237.4 kB / 0.5853 GB, free: 2.984 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005456/0.4758, allocations: 343.3 kB / 0.5856 GB, free: 2.648 MB / 446.1 MB Notification: Performance of SimCode: time 2.895e-06/0.4758, allocations: 0 / 0.5856 GB, free: 2.648 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0459/0.5217, allocations: 20.47 MB / 0.6056 GB, free: 14.31 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.34/10.86, allocations: 4 kB / 0.6056 GB, free: 14.31 MB / 478.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_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_dq0.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_dq0.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches