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.001361/0.001361, allocations: 109 kB / 17.06 MB, free: 6.016 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.001272/0.001272, allocations: 192 kB / 18 MB, free: 5.102 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.523/1.523, 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.1829/0.1829, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.91 kB / 457.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.4146, allocations: 58.06 MB / 0.5036 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.006949/0.4216, allocations: 7.423 MB / 0.5109 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005734/0.4274, allocations: 4.445 MB / 0.5152 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006884/0.4281, allocations: 16.12 kB / 0.5152 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003024/0.4312, allocations: 1.035 MB / 0.5163 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004149/0.4353, allocations: 1.267 MB / 0.5175 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001237/0.4366, allocations: 340.4 kB / 0.5178 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002784/0.4394, allocations: 1.412 MB / 0.5192 GB, free: 13.05 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.441, allocations: 0.7987 MB / 0.52 GB, free: 12.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001558/0.4426, allocations: 0.6425 MB / 0.5206 GB, free: 12.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.4441, allocations: 0.7377 MB / 0.5213 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000274/0.4444, allocations: 79.5 kB / 0.5214 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003421/0.4478, allocations: 1.519 MB / 0.5229 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009545/0.4488, allocations: 0.6009 MB / 0.5235 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.4505, allocations: 0.5589 MB / 0.524 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007287/0.4578, allocations: 1.892 MB / 0.5259 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.4579, allocations: 5.031 kB / 0.5259 GB, free: 10.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4579, allocations: 0 / 0.5259 GB, free: 10.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.104e-05/0.458, allocations: 0 / 0.5259 GB, free: 10.43 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.004424/0.4624, allocations: 1.362 MB / 0.5272 GB, free: 9.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.535e-05/0.4625, allocations: 13.7 kB / 0.5272 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002912/0.4628, allocations: 161.5 kB / 0.5274 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004579/0.4674, allocations: 0.5477 MB / 0.5279 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.469, allocations: 0.5582 MB / 0.5284 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.4691, allocations: 65.53 kB / 0.5285 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004325/0.4696, allocations: 93.91 kB / 0.5286 GB, free: 8.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005026/0.4746, allocations: 1.511 MB / 0.5301 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.091e-05/0.4748, allocations: 1.375 kB / 0.5301 GB, free: 8.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003141/0.4751, allocations: 35.64 kB / 0.5301 GB, free: 8.051 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000239/0.4754, allocations: 98.97 kB / 0.5302 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003947/0.4793, allocations: 1.552 MB / 0.5317 GB, free: 7.285 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.01047/0.4898, allocations: 4.897 MB / 0.5365 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.4919, allocations: 1.182 MB / 0.5377 GB, free: 3.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.4931, allocations: 0.7649 MB / 0.5384 GB, free: 2.793 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.909e-05/0.4932, allocations: 21.16 kB / 0.5384 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.642e-05/0.4933, allocations: 48.06 kB / 0.5385 GB, free: 2.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 3.667e-06/0.4933, allocations: 3.938 kB / 0.5385 GB, free: 2.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=108): time 0.009909/0.5032, allocations: 3.699 MB / 0.5421 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.104e-05/0.5033, allocations: 89.27 kB / 0.5422 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006845/0.504, allocations: 474.5 kB / 0.5426 GB, free: 292 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.5041, allocations: 41.7 kB / 0.5427 GB, free: 244 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003775/0.5045, allocations: 444.6 kB / 0.5431 GB, free: 15.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004601/0.505, allocations: 384.7 kB / 0.5434 GB, free: 15.42 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000365/0.5053, allocations: 198.9 kB / 0.5436 GB, free: 15.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002118/0.5056, allocations: 386.8 kB / 0.544 GB, free: 14.83 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009447/0.5065, allocations: 0.5413 MB / 0.5445 GB, free: 14.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001096/0.5076, allocations: 0.75 MB / 0.5453 GB, free: 13.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.5098, allocations: 1.408 MB / 0.5466 GB, free: 11.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.5098, allocations: 0 / 0.5466 GB, free: 11.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.003419/0.5132, allocations: 1.806 MB / 0.5484 GB, free: 10.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.5133, allocations: 12.09 kB / 0.5484 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.5133, allocations: 8 kB / 0.5484 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/0.5145, allocations: 405.4 kB / 0.5488 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.5155, allocations: 235.6 kB / 0.549 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008523/0.5241, allocations: 6.072 MB / 0.555 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.5253, allocations: 63.94 kB / 0.555 GB, free: 3.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002924/0.5256, allocations: 43.98 kB / 0.5551 GB, free: 3.027 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.001078/0.5267, allocations: 369.4 kB / 0.5554 GB, free: 2.656 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002781/0.527, allocations: 75.53 kB / 0.5555 GB, free: 2.582 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003722/0.5307, allocations: 1.814 MB / 0.5573 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.5308, allocations: 12 kB / 0.5573 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.77e-05/0.5308, allocations: 7.938 kB / 0.5573 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/0.5308, allocations: 3.984 kB / 0.5573 GB, free: 0.7305 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.007718/0.5385, allocations: 3.469 MB / 0.5607 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.5386, allocations: 4 kB / 0.5607 GB, free: 13.12 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008383/0.5394, allocations: 192.1 kB / 0.5609 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.5405, allocations: 357.6 kB / 0.5612 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.5407, allocations: 31.94 kB / 0.5612 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007907/0.5486, allocations: 5.783 MB / 0.5669 GB, free: 6.473 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.513e-06/0.5486, allocations: 4 kB / 0.5669 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003706/0.5523, allocations: 1.833 MB / 0.5687 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004275/0.5528, allocations: 172.5 kB / 0.5688 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002274/0.5531, allocations: 28 kB / 0.5689 GB, free: 4.352 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007552/0.5538, allocations: 55.88 kB / 0.5689 GB, free: 4.297 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002487/0.5541, allocations: 84.83 kB / 0.569 GB, free: 4.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.631e-05/0.5542, allocations: 39.98 kB / 0.569 GB, free: 4.176 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005335/0.5547, allocations: 323.1 kB / 0.5693 GB, free: 3.859 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5547, allocations: 4 kB / 0.5694 GB, free: 3.855 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001705/0.5564, allocations: 399.9 kB / 0.5697 GB, free: 3.465 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.003653/0.5601, allocations: 2.392 MB / 0.5721 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003156/0.5633, allocations: 1.767 MB / 0.5738 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.5633, allocations: 0 / 0.5738 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001816/0.5651, allocations: 1.077 MB / 0.5748 GB, free: 14.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.5664, allocations: 128.8 kB / 0.575 GB, free: 13.98 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/0.5831, allocations: 9.155 MB / 0.5839 GB, free: 4.457 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.5844, allocations: 1.171 MB / 0.5851 GB, free: 3.258 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000728/0.5851, allocations: 233.4 kB / 0.5853 GB, free: 3.027 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007295/0.5859, allocations: 343.3 kB / 0.5856 GB, free: 2.691 MB / 446.1 MB Notification: Performance of SimCode: time 1.523e-06/0.5859, allocations: 0 / 0.5856 GB, free: 2.691 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06151/0.6474, allocations: 20.48 MB / 0.6056 GB, free: 14.35 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.84, allocations: 4 kB / 0.6056 GB, free: 14.34 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