Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.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.NetworkOpened,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkOpened",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkOpened,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkOpened",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.001247/0.001247, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001425/0.001425, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.388/1.388, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1845/0.1845, allocations: 38.04 MB / 329.7 MB, free: 8.859 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.001391, allocations: 61.33 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1052, allocations: 58.07 MB / 457 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkOpened): time 0.008117/0.1134, allocations: 7.686 MB / 464.7 MB, free: 268 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005966/0.1194, allocations: 4.728 MB / 469.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004837/0.1199, allocations: 19.94 kB / 469.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002567/0.1225, allocations: 1.077 MB / 470.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002723/0.1252, allocations: 1.253 MB / 471.7 MB, free: 9.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009752/0.1262, allocations: 374.9 kB / 472.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001698/0.1279, allocations: 1.465 MB / 473.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008784/0.1288, allocations: 0.6655 MB / 474.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.13, allocations: 0.638 MB / 474.9 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001171/0.1312, allocations: 0.7086 MB / 475.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001739/0.1314, allocations: 64 kB / 475.6 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002748/0.1342, allocations: 1.43 MB / 477.1 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005016/0.1347, allocations: 0.491 MB / 477.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006088/0.1353, allocations: 449.9 kB / 478 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002359/0.1377, allocations: 1.531 MB / 479.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1377, allocations: 0 / 479.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.028e-05/0.1377, allocations: 3.984 kB / 479.5 MB, free: 1.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.694e-05/0.1377, allocations: 4 kB / 479.5 MB, free: 1.332 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002126/0.1399, allocations: 1.163 MB / 480.7 MB, free: 124 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.1399, allocations: 11.89 kB / 480.7 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001926/0.1401, allocations: 139.3 kB / 480.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003393/0.1435, allocations: 415.4 kB / 481.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007326/0.1443, allocations: 491.2 kB / 481.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.026e-05/0.1443, allocations: 54.36 kB / 481.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.1445, allocations: 76.36 kB / 481.9 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001865/0.1464, allocations: 1.234 MB / 483.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.1464, allocations: 0 / 483.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.487e-05/0.1465, allocations: 31.98 kB / 483.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/0.1466, allocations: 77.95 kB / 483.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001959/0.1486, allocations: 1.308 MB / 484.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005634/0.1542, allocations: 3.708 MB / 488.2 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/0.156, allocations: 1.085 MB / 489.3 MB, free: 7.312 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008043/0.1568, allocations: 0.651 MB / 490 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.902e-05/0.1569, allocations: 13.14 kB / 490 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.1569, allocations: 43.56 kB / 490 MB, free: 6.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=92): time 4.439e-06/0.1569, allocations: 0 / 490 MB, free: 6.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=93): time 0.006763/0.1637, allocations: 3.153 MB / 493.2 MB, free: 3.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.1638, allocations: 86.11 kB / 493.3 MB, free: 3.309 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004336/0.1642, allocations: 377.5 kB / 493.6 MB, free: 2.934 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.483e-05/0.1643, allocations: 41.7 kB / 493.7 MB, free: 2.887 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002256/0.1645, allocations: 328.1 kB / 494 MB, free: 2.559 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.1648, allocations: 319.3 kB / 494.3 MB, free: 2.242 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002537/0.1651, allocations: 162.6 kB / 494.5 MB, free: 2.078 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1652, allocations: 366.8 kB / 494.8 MB, free: 1.711 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006721/0.1659, allocations: 465.7 kB / 495.3 MB, free: 1.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007255/0.1666, allocations: 0.5782 MB / 495.8 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00149/0.1681, allocations: 1.118 MB / 497 MB, free: 15.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.1682, allocations: 4 kB / 497 MB, free: 15.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.002431/0.1706, allocations: 1.481 MB / 498.4 MB, free: 14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.1706, allocations: 8 kB / 498.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1707, allocations: 4 kB / 498.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009226/0.1716, allocations: 338.3 kB / 498.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006986/0.1723, allocations: 183.7 kB / 499 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005738/0.178, allocations: 4.172 MB / 0.4913 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006445/0.1787, allocations: 43.95 kB / 0.4914 GB, free: 9.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.1789, allocations: 39.92 kB / 0.4914 GB, free: 9.059 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (82): * Single equations (assignments): 81 * 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.0005885/0.1795, allocations: 309.5 kB / 0.4917 GB, free: 8.746 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.1796, allocations: 59.34 kB / 0.4918 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/0.1823, allocations: 1.547 MB / 0.4933 GB, free: 7.125 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.1823, allocations: 16 kB / 0.4933 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.1823, allocations: 4 kB / 0.4933 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.1823, allocations: 7.969 kB / 0.4933 GB, free: 7.098 MB / 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.005159/0.1875, allocations: 3.009 MB / 0.4963 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.1875, allocations: 4 kB / 0.4963 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006341/0.1882, allocations: 167.7 kB / 0.4964 GB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008389/0.189, allocations: 293.8 kB / 0.4967 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.974e-05/0.1891, allocations: 20 kB / 0.4967 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2292/0.4183, allocations: 3.895 MB / 0.5005 GB, free: 54.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.4184, allocations: 6 kB / 0.5005 GB, free: 54.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.421, allocations: 1.58 MB / 0.5021 GB, free: 54.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001769/0.4212, allocations: 150.1 kB / 0.5022 GB, free: 54.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.4213, allocations: 19.83 kB / 0.5022 GB, free: 54.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004373/0.4218, allocations: 43.38 kB / 0.5023 GB, free: 54.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.422, allocations: 78.12 kB / 0.5024 GB, free: 54.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.352e-05/0.422, allocations: 37.27 kB / 0.5024 GB, free: 54.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002894/0.4223, allocations: 270 kB / 0.5026 GB, free: 54.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4223, allocations: 0 / 0.5026 GB, free: 54.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009954/0.4233, allocations: 310.8 kB / 0.5029 GB, free: 54.23 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 (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.002554/0.4259, allocations: 2.139 MB / 0.505 GB, free: 53.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002909/0.4288, allocations: 1.67 MB / 0.5067 GB, free: 52.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.4288, allocations: 3.406 kB / 0.5067 GB, free: 52.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.4301, allocations: 0.8344 MB / 0.5075 GB, free: 52.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000875/0.431, allocations: 104.5 kB / 0.5076 GB, free: 52.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01283/0.4439, allocations: 7.709 MB / 0.5151 GB, free: 48.4 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007075/0.4446, allocations: 1.083 MB / 0.5162 GB, free: 47.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005189/0.4452, allocations: 185.4 kB / 0.5163 GB, free: 47.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003598/0.4455, allocations: 271 kB / 0.5166 GB, free: 47.44 MB / 382.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4455, allocations: 0 / 0.5166 GB, free: 47.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03684/0.4824, allocations: 16.37 MB / 0.5326 GB, free: 37.78 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.602/10.08, allocations: 8.062 kB / 0.5326 GB, free: 37.77 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened_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_NetworkOpened.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkOpened.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkOpened.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches