Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000868/0.000868, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005358/0.005358, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8709/0.8709, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.844e-06/1.844e-06, allocations: 0 / 298.5 MB, free: 3.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.658e-05, allocations: 6.281 kB / 298.5 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.1564/0.1565, allocations: 4.721 MB / 303.2 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003347/0.1598, allocations: 1.427 MB / 304.6 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006369/0.1605, allocations: 37.72 kB / 304.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005336/0.161, allocations: 223 kB / 304.9 MB, free: 12.62 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000594/0.1616, allocations: 211.2 kB / 305.1 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.1627, allocations: 400.9 kB / 305.5 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.164, allocations: 1.15 MB / 306.6 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00053/0.1645, allocations: 316.5 kB / 306.9 MB, free: 11.54 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008586/0.1654, allocations: 0.5807 MB / 307.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003739/0.1658, allocations: 294.6 kB / 307.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001261/0.1659, allocations: 83.06 kB / 307.9 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.1661, allocations: 104.8 kB / 308 MB, free: 11.16 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.1662, allocations: 217.7 kB / 308.2 MB, free: 11.01 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002774/0.1665, allocations: 322.7 kB / 308.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.1677, allocations: 1.154 MB / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.175e-06/0.1677, allocations: 0 / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1677, allocations: 0 / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.8e-05/0.1677, allocations: 0 / 309.7 MB, free: 10.38 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.001556/0.1693, allocations: 1.258 MB / 310.9 MB, free: 9.527 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.621e-05/0.1693, allocations: 18.92 kB / 310.9 MB, free: 9.52 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001323/0.1695, allocations: 153 kB / 311.1 MB, free: 9.418 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.1696, allocations: 128.2 kB / 311.2 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009072/0.1705, allocations: 0.5758 MB / 311.8 MB, free: 8.98 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.999e-05/0.1706, allocations: 73.78 kB / 311.9 MB, free: 8.949 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.1707, allocations: 101 kB / 312 MB, free: 8.914 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.172, allocations: 1.091 MB / 313.1 MB, free: 8.203 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.172, allocations: 7.5 kB / 313.1 MB, free: 8.199 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.061e-05/0.1721, allocations: 43.25 kB / 313.1 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.408e-05/0.1721, allocations: 33.47 kB / 313.1 MB, free: 8.164 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008749/0.173, allocations: 0.5519 MB / 313.7 MB, free: 7.977 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003201/0.1762, allocations: 5.215 MB / 318.9 MB, free: 3.441 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004586/0.1766, allocations: 224.3 kB / 319.1 MB, free: 3.332 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.1769, allocations: 144.4 kB / 319.3 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.177, allocations: 8.875 kB / 319.3 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.177, allocations: 44.47 kB / 319.3 MB, free: 3.23 MB / 282.7 MB Notification: Performance of pre-optimization done (n=28): time 2.284e-06/0.177, allocations: 0 / 319.3 MB, free: 3.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.002857/0.1799, allocations: 1.579 MB / 320.9 MB, free: 2.336 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.1799, allocations: 85.98 kB / 321 MB, free: 2.238 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006207/0.1806, allocations: 0.6651 MB / 321.6 MB, free: 1.934 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1806, allocations: 38.92 kB / 321.7 MB, free: 1.891 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000236/0.1808, allocations: 0.6107 MB / 322.3 MB, free: 1.398 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.416e-05/0.1809, allocations: 156.2 kB / 322.4 MB, free: 1.277 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.181, allocations: 130.5 kB / 322.6 MB, free: 1.203 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.494e-05/0.1811, allocations: 389.3 kB / 322.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000229/0.1813, allocations: 152.5 kB / 323.1 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003335/0.1817, allocations: 0.4887 MB / 323.6 MB, free: 320 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.1827, allocations: 0.7012 MB / 324.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.1828, allocations: 3.844 kB / 324.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0009426/0.1837, allocations: 0.718 MB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.713e-05/0.1837, allocations: 10.91 kB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.1837, allocations: 12.31 kB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/0.1838, allocations: 16.66 kB / 325 MB, free: 15.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004155/0.1842, allocations: 199.1 kB / 325.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.486e-05/0.1842, allocations: 25.41 kB / 325.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.1845, allocations: 37.52 kB / 325.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.816e-05/0.1845, allocations: 39.81 kB / 325.3 MB, free: 15.33 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003502/0.1849, allocations: 225.6 kB / 325.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.185, allocations: 82.73 kB / 325.6 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001013/0.1851, allocations: 74.89 kB / 325.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.1851, allocations: 8.625 kB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/0.1851, allocations: 1.219 kB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1851, allocations: 3.859 kB / 325.7 MB, free: 15.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001841/0.187, allocations: 1.232 MB / 327 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.187, allocations: 2.438 kB / 327 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003247/0.1873, allocations: 104.8 kB / 327.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.147e-06/0.1873, allocations: 2.688 kB / 327.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.1873, allocations: 14.34 kB / 327.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.255e-06/0.1873, allocations: 6.906 kB / 327.1 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.1873, allocations: 5.406 kB / 327.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007916/0.1881, allocations: 0.6956 MB / 327.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.1882, allocations: 68.16 kB / 327.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.1883, allocations: 16.12 kB / 327.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001655/0.1885, allocations: 19.42 kB / 327.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.1885, allocations: 32 kB / 327.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.899e-05/0.1885, allocations: 14.03 kB / 327.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004184/0.189, allocations: 426.3 kB / 328.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.189, allocations: 0 / 328.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006138/0.1896, allocations: 136.9 kB / 328.5 MB, free: 13.36 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009564/0.1905, allocations: 1.257 MB / 329.7 MB, free: 12.33 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007199/0.1913, allocations: 412.9 kB / 330.1 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1913, allocations: 3.938 kB / 330.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002299/0.1915, allocations: 147.3 kB / 330.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005114/0.192, allocations: 78.02 kB / 330.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006905/0.1989, allocations: 6.009 MB / 336.4 MB, free: 7.254 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.1992, allocations: 417.3 kB / 336.8 MB, free: 6.816 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.1994, allocations: 91.89 kB / 336.9 MB, free: 6.727 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00032/0.1997, allocations: 392.4 kB / 337.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of SimCode: time 1.492e-06/0.1997, allocations: 0 / 337.3 MB, free: 6.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.2322, allocations: 12.5 MB / 349.8 MB, free: 9.785 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.301/7.533, allocations: 11.94 kB / 349.8 MB, free: 9.773 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.387199657037854]