Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.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_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Network.NetworkLoop_d,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Network_NetworkLoop_d",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.001824/0.001823, allocations: 108 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.002142/0.002143, 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.558/1.558, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.178/0.178, allocations: 38.04 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002592/0.002592, allocations: 58.78 kB / 398.9 MB, free: 33.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1303, allocations: 58.07 MB / 457 MB, free: 7.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkLoop_d): time 0.008828/0.1392, allocations: 7.554 MB / 464.5 MB, free: 400 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006325/0.1456, allocations: 4.152 MB / 468.7 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008457/0.1465, allocations: 15.94 kB / 468.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003195/0.1497, allocations: 1.034 MB / 469.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003766/0.1535, allocations: 1.094 MB / 470.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001158/0.1547, allocations: 307 kB / 471.1 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002263/0.1569, allocations: 1.367 MB / 472.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001067/0.158, allocations: 460 kB / 472.9 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.1595, allocations: 0.5639 MB / 473.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.1607, allocations: 0.5877 MB / 474.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.1608, allocations: 36 kB / 474.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002125/0.163, allocations: 0.9817 MB / 475.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003857/0.1634, allocations: 271.3 kB / 475.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004246/0.1638, allocations: 250.8 kB / 475.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001957/0.1658, allocations: 0.8064 MB / 476.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.1658, allocations: 0 / 476.4 MB, free: 4.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1658, allocations: 3.938 kB / 476.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.747e-05/0.1658, allocations: 4 kB / 476.4 MB, free: 4.449 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: 101 * Number of variables: 101 Notification: Performance of Generate backend data structure: time 0.001772/0.1676, allocations: 0.7922 MB / 477.2 MB, free: 3.609 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/0.1677, allocations: 11.89 kB / 477.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001715/0.1679, allocations: 82.69 kB / 477.3 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001791/0.1697, allocations: 136.3 kB / 477.4 MB, free: 3.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005998/0.1703, allocations: 334.3 kB / 477.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/0.1703, allocations: 25.38 kB / 477.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.349e-05/0.1704, allocations: 44.36 kB / 477.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001032/0.1714, allocations: 0.5857 MB / 478.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1715, allocations: 0 / 478.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.1715, allocations: 19.98 kB / 478.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.513e-05/0.1716, allocations: 36.62 kB / 478.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006844/0.1723, allocations: 390.1 kB / 478.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/0.1754, allocations: 2.596 MB / 481.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006915/0.1761, allocations: 439.7 kB / 481.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.1764, allocations: 206.5 kB / 482.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1764, allocations: 7.938 kB / 482.1 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.1765, allocations: 42.56 kB / 482.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.834e-06/0.1765, allocations: 0 / 482.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001699/0.1782, allocations: 0.7656 MB / 482.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.1783, allocations: 106.8 kB / 483 MB, free: 13.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003177/0.1786, allocations: 316.5 kB / 483.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.576e-05/0.1786, allocations: 29.7 kB / 483.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.1788, allocations: 251.9 kB / 483.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001403/0.179, allocations: 122.2 kB / 483.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.1791, allocations: 82.14 kB / 483.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003563/0.1794, allocations: 346.9 kB / 484.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002144/0.1797, allocations: 128.8 kB / 484.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003217/0.18, allocations: 283.4 kB / 484.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005475/0.1806, allocations: 460 kB / 485 MB, free: 11.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1806, allocations: 0 / 485 MB, free: 11.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0008565/0.1814, allocations: 0.5618 MB / 485.5 MB, free: 10.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.1815, allocations: 10.34 kB / 485.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.1815, allocations: 4 kB / 485.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003312/0.1818, allocations: 121.3 kB / 485.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002388/0.1821, allocations: 75.91 kB / 485.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002582/0.1847, allocations: 2.566 MB / 488.3 MB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.1849, allocations: 47.53 kB / 488.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.824e-05/0.185, allocations: 20 kB / 488.4 MB, free: 7.773 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (41): * Single equations (assignments): 40 * 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 {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002347/0.1852, allocations: 200.6 kB / 488.6 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.357e-05/0.1853, allocations: 35.53 kB / 488.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.533e-05/0.1854, allocations: 56.02 kB / 488.7 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.1854, allocations: 4 kB / 488.7 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.1854, allocations: 7.938 kB / 488.7 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1854, allocations: 0 / 488.7 MB, free: 7.469 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.1867, allocations: 0.9421 MB / 489.6 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1867, allocations: 0 / 489.6 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.1868, allocations: 39.86 kB / 489.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002527/0.1871, allocations: 117 kB / 489.8 MB, free: 6.305 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.958e-05/0.1871, allocations: 8 kB / 489.8 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/0.1896, allocations: 2.553 MB / 492.3 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.1896, allocations: 4.25 kB / 492.3 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007707/0.1904, allocations: 0.6265 MB / 493 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.1905, allocations: 116.6 kB / 493.1 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.1906, allocations: 11.92 kB / 493.1 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.1908, allocations: 8 kB / 493.1 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.1909, allocations: 27.91 kB / 493.1 MB, free: 2.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.1909, allocations: 8 kB / 493.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002294/0.1911, allocations: 223 kB / 493.4 MB, free: 2.527 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1911, allocations: 4 kB / 493.4 MB, free: 2.523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006951/0.1918, allocations: 159.7 kB / 493.5 MB, free: 2.367 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (20): * Single equations (assignments): 18 * 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 {(1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00102/0.1929, allocations: 1.163 MB / 494.7 MB, free: 1.164 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009098/0.1938, allocations: 0.5536 MB / 495.2 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.1938, allocations: 0 / 495.2 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.1942, allocations: 342.7 kB / 495.6 MB, free: 256 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005939/0.1948, allocations: 61.84 kB / 495.6 MB, free: 196 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.1997, allocations: 4.015 MB / 499.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005049/0.2002, allocations: 0.8863 MB / 0.4888 GB, free: 11.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.2004, allocations: 70.89 kB / 0.4889 GB, free: 10.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.2005, allocations: 119.4 kB / 0.489 GB, free: 10.84 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2006, allocations: 0 / 0.489 GB, free: 10.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03081/0.2314, allocations: 7.468 MB / 0.4963 GB, free: 3.473 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.459/9.69, allocations: 11.25 kB / 0.4963 GB, free: 3.465 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_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_d.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkLoop_d.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkLoop_d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches