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.001507/0.001507, allocations: 109.6 kB / 16.92 MB, free: 6.332 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.001698/0.001698, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.461/1.461, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1762/0.1762, allocations: 38.04 MB / 329.7 MB, free: 8.852 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 63.75 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1068, allocations: 58.06 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_dq0): time 0.009075/0.1159, allocations: 7.417 MB / 464.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006303/0.1223, allocations: 4.44 MB / 468.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005502/0.1229, allocations: 15.94 kB / 468.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002657/0.1255, allocations: 1.038 MB / 469.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00314/0.1287, allocations: 1.273 MB / 471.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1298, allocations: 343.1 kB / 471.5 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001589/0.1314, allocations: 1.402 MB / 472.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001127/0.1325, allocations: 0.8047 MB / 473.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001038/0.1336, allocations: 0.6381 MB / 474.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.1346, allocations: 0.736 MB / 475.1 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002168/0.1348, allocations: 76 kB / 475.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002708/0.1375, allocations: 1.528 MB / 476.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006595/0.1382, allocations: 0.6002 MB / 477.3 MB, free: 3.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008575/0.1391, allocations: 0.5676 MB / 477.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003009/0.1421, allocations: 1.87 MB / 479.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1421, allocations: 0 / 479.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.827e-06/0.1421, allocations: 0 / 479.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.353e-05/0.1422, allocations: 3.938 kB / 479.7 MB, free: 1.137 MB / 350.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.002523/0.1447, allocations: 1.33 MB / 481 MB, free: 15.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1448, allocations: 19.89 kB / 481.1 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002399/0.145, allocations: 164.8 kB / 481.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004029/0.1491, allocations: 0.5341 MB / 481.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009327/0.15, allocations: 0.5559 MB / 482.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.657e-05/0.1501, allocations: 62.36 kB / 482.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002149/0.1503, allocations: 88.36 kB / 482.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/0.1528, allocations: 1.501 MB / 484 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.72e-05/0.1529, allocations: 11.78 kB / 484 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.153, allocations: 39.98 kB / 484 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.1531, allocations: 98 kB / 484.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00268/0.1558, allocations: 1.546 MB / 485.7 MB, free: 11.04 MB / 366.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.008402/0.1642, allocations: 4.927 MB / 490.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.1662, allocations: 1.177 MB / 491.8 MB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.1673, allocations: 0.7646 MB / 492.5 MB, free: 3.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.761e-05/0.1674, allocations: 21.42 kB / 492.5 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.1674, allocations: 47.5 kB / 492.6 MB, free: 3.855 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 3.165e-06/0.1674, allocations: 0 / 492.6 MB, free: 3.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=108): time 0.007761/0.1752, allocations: 3.673 MB / 496.3 MB, free: 132 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.1753, allocations: 98.05 kB / 496.4 MB, free: 16 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005842/0.1759, allocations: 469.7 kB / 496.8 MB, free: 15.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001001/0.176, allocations: 49.73 kB / 496.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.1763, allocations: 427.4 kB / 497.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003359/0.1766, allocations: 370.6 kB / 497.6 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003072/0.1769, allocations: 202.8 kB / 497.8 MB, free: 14.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1771, allocations: 382.8 kB / 498.2 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000812/0.1779, allocations: 0.5374 MB / 498.8 MB, free: 13.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009529/0.1789, allocations: 0.7501 MB / 499.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001909/0.1808, allocations: 1.404 MB / 0.4892 GB, free: 11.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.1808, allocations: 4 kB / 0.4892 GB, free: 11.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.002967/0.1838, allocations: 1.805 MB / 0.4909 GB, free: 9.445 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.1838, allocations: 8 kB / 0.4909 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.1839, allocations: 4 kB / 0.4909 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.185, allocations: 407.5 kB / 0.4913 GB, free: 9.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009176/0.1859, allocations: 243.6 kB / 0.4916 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007028/0.193, allocations: 6.062 MB / 0.4975 GB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008261/0.1938, allocations: 60 kB / 0.4975 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/0.194, allocations: 51.98 kB / 0.4976 GB, free: 2.309 MB / 382.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.0006469/0.1947, allocations: 361.4 kB / 0.4979 GB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002082/0.1949, allocations: 79.14 kB / 0.498 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003121/0.198, allocations: 1.81 MB / 0.4998 GB, free: 48 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/0.198, allocations: 12 kB / 0.4998 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/0.1981, allocations: 15.94 kB / 0.4998 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.1981, allocations: 7.969 kB / 0.4998 GB, free: 12 kB / 382.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.2721/0.4702, allocations: 3.455 MB / 0.5032 GB, free: 55.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.4702, allocations: 12.69 kB / 0.5032 GB, free: 55.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000759/0.471, allocations: 185.7 kB / 0.5034 GB, free: 55.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009773/0.472, allocations: 356.3 kB / 0.5037 GB, free: 55.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.285e-05/0.472, allocations: 28.02 kB / 0.5038 GB, free: 55.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005957/0.478, allocations: 5.783 MB / 0.5094 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.478, allocations: 4 kB / 0.5094 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002921/0.481, allocations: 1.824 MB / 0.5112 GB, free: 50.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000243/0.4812, allocations: 158.3 kB / 0.5113 GB, free: 50.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.4813, allocations: 30.59 kB / 0.5114 GB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005482/0.4819, allocations: 47.27 kB / 0.5114 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.4821, allocations: 95.69 kB / 0.5115 GB, free: 50.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.884e-05/0.4822, allocations: 38.28 kB / 0.5115 GB, free: 50.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004085/0.4826, allocations: 333.5 kB / 0.5119 GB, free: 49.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4826, allocations: 0 / 0.5119 GB, free: 49.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001496/0.4841, allocations: 392.7 kB / 0.5122 GB, free: 49.93 MB / 382.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.003103/0.4872, allocations: 2.4 MB / 0.5146 GB, free: 48.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003652/0.4909, allocations: 2.129 MB / 0.5167 GB, free: 47.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/0.4909, allocations: 1.375 kB / 0.5167 GB, free: 47.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001673/0.4926, allocations: 1.084 MB / 0.5177 GB, free: 47.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008892/0.4935, allocations: 129.3 kB / 0.5178 GB, free: 47.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01221/0.5057, allocations: 9.271 MB / 0.5269 GB, free: 42.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007189/0.5065, allocations: 1.168 MB / 0.528 GB, free: 41.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005725/0.5071, allocations: 237.5 kB / 0.5283 GB, free: 41.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004141/0.5075, allocations: 340.5 kB / 0.5286 GB, free: 41.24 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5075, allocations: 4 kB / 0.5286 GB, free: 41.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03971/0.5472, allocations: 20.07 MB / 0.5482 GB, free: 21.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.834/10.38, allocations: 8.062 kB / 0.5482 GB, free: 21.54 MB / 382.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