Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 75.91 kB / 21.18 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.966/0.966, allocations: 173.4 MB / 201.1 MB, free: 8.984 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 268 MB, free: 6.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.777e-05/2.943e-05, allocations: 2.312 kB / 268 MB, free: 6.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.00683/0.006859, allocations: 5.024 MB / 273 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.009833, allocations: 1.297 MB / 274.3 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004367/0.01027, allocations: 11.94 kB / 274.3 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004654/0.01074, allocations: 162.5 kB / 274.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007419/0.01148, allocations: 353 kB / 274.8 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001872/0.01335, allocations: 227.6 kB / 275 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001658/0.01501, allocations: 1.226 MB / 276.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004233/0.01543, allocations: 222.5 kB / 276.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007562/0.01619, allocations: 0.6783 MB / 277.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003791/0.01657, allocations: 390.9 kB / 277.6 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.01668, allocations: 104 kB / 277.7 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.01679, allocations: 104 kB / 277.8 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.01692, allocations: 231.2 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003033/0.01722, allocations: 387.1 kB / 278.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007111/0.01793, allocations: 0.7903 MB / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.01794, allocations: 0 / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.01794, allocations: 0 / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.01795, allocations: 0 / 279.1 MB, free: 11.07 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001528/0.01948, allocations: 1.376 MB / 280.5 MB, free: 9.641 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.01952, allocations: 12.03 kB / 280.5 MB, free: 9.629 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.01969, allocations: 164.3 kB / 280.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.02027, allocations: 0.5059 MB / 281.2 MB, free: 8.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003176/0.02059, allocations: 293.2 kB / 281.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.435e-05/0.02067, allocations: 72.36 kB / 281.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000943/0.02162, allocations: 1.507 MB / 283.1 MB, free: 6.688 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.02163, allocations: 11.86 kB / 283.1 MB, free: 6.676 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.271e-05/0.02168, allocations: 31.94 kB / 283.1 MB, free: 6.645 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.02169, allocations: 16 kB / 283.1 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.02215, allocations: 299.6 kB / 283.4 MB, free: 6.336 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.02423, allocations: 1.471 MB / 284.9 MB, free: 4.824 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.02475, allocations: 396.2 kB / 285.3 MB, free: 4.43 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000292/0.02505, allocations: 213.3 kB / 285.5 MB, free: 4.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.124e-05/0.0251, allocations: 16.66 kB / 285.5 MB, free: 4.199 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.02513, allocations: 54.03 kB / 285.6 MB, free: 4.137 MB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 1.863e-06/0.02513, allocations: 4 kB / 285.6 MB, free: 4.133 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001945/0.02708, allocations: 1.031 MB / 286.6 MB, free: 3.082 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002143/0.02729, allocations: 0.8195 MB / 287.4 MB, free: 2.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004635/0.02776, allocations: 0.6129 MB / 288 MB, free: 1.438 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.183e-05/0.0278, allocations: 41.7 kB / 288.1 MB, free: 1.391 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001949/0.02799, allocations: 400 kB / 288.5 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.02812, allocations: 265.7 kB / 288.7 MB, free: 0.7305 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.02827, allocations: 148.3 kB / 288.9 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.02843, allocations: 0.5625 MB / 289.4 MB, free: 4 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1205/0.1489, allocations: 203.3 kB / 289.6 MB, free: 29.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005453/0.1495, allocations: 1.296 MB / 290.9 MB, free: 27.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005705/0.15, allocations: 437.2 kB / 291.3 MB, free: 27.62 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.718e-06/0.15, allocations: 0.7969 kB / 291.3 MB, free: 27.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001389/0.1514, allocations: 0.8669 MB / 292.2 MB, free: 27.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/0.1515, allocations: 89.06 kB / 292.3 MB, free: 27.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.1515, allocations: 6.844 kB / 292.3 MB, free: 27.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004746/0.1519, allocations: 191.6 kB / 292.5 MB, free: 27.19 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003501/0.1523, allocations: 132.8 kB / 292.6 MB, free: 27.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003442/0.1557, allocations: 7.8 MB / 300.4 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003827/0.1561, allocations: 82.62 kB / 300.5 MB, free: 20.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.779e-05/0.1562, allocations: 26.34 kB / 300.5 MB, free: 20.1 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (69): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(3,3), (1,3), (1,7), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001859/0.1563, allocations: 211.5 kB / 300.7 MB, free: 19.94 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001186/0.1565, allocations: 112.1 kB / 300.8 MB, free: 19.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.874e-05/0.1565, allocations: 87.75 kB / 300.9 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.1565, allocations: 7.438 kB / 300.9 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1566, allocations: 0.75 kB / 300.9 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001289/0.1578, allocations: 0.9277 MB / 301.9 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00219/0.16, allocations: 1.404 MB / 303.3 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.16, allocations: 0 / 303.3 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003866/0.1604, allocations: 134.8 kB / 303.4 MB, free: 18.94 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003703/0.1608, allocations: 159.3 kB / 303.6 MB, free: 18.9 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.927e-05/0.1608, allocations: 18.31 kB / 303.6 MB, free: 18.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002834/0.1637, allocations: 5.933 MB / 309.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1637, allocations: 0 / 309.5 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001373/0.165, allocations: 0.9514 MB / 310.5 MB, free: 13.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002826/0.1653, allocations: 159.1 kB / 310.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.029e-05/0.1654, allocations: 19.12 kB / 310.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003032/0.1657, allocations: 40.11 kB / 310.7 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.1659, allocations: 70.55 kB / 310.7 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.305e-05/0.1659, allocations: 26.75 kB / 310.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003973/0.1663, allocations: 411.2 kB / 311.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1663, allocations: 0 / 311.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007296/0.167, allocations: 285.8 kB / 311.4 MB, free: 12.9 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * 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 (61): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,3), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001394/0.1672, allocations: 120.2 kB / 311.6 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001093/0.1683, allocations: 1.385 MB / 312.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1683, allocations: 2.75 kB / 312.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006156/0.1689, allocations: 0.7843 MB / 313.7 MB, free: 11.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006664/0.1695, allocations: 247.1 kB / 314 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.1717, allocations: 1.443 MB / 315.4 MB, free: 10.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.1719, allocations: 165.9 kB / 315.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003184/0.1722, allocations: 97.95 kB / 315.7 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001266/0.1723, allocations: 68.83 kB / 315.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1723, allocations: 0 / 315.7 MB, free: 10.07 MB / 266.7 MB Notification: Performance of Templates: time 0.02046/0.1928, allocations: 19.36 MB / 335.1 MB, free: 8.852 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5891462829895318]