Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.000985/0.000985, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009725/0.0009725, allocations: 170 kB / 24.91 MB, free: 9.191 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9366/0.9366, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: 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.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.052e-05/2.217e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.005183/0.005205, allocations: 4.978 MB / 278.4 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.007042, allocations: 1.366 MB / 279.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002412/0.007283, allocations: 11.94 kB / 279.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003153/0.007598, allocations: 166.5 kB / 280 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004345/0.008033, allocations: 360.9 kB / 280.3 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002695/0.008302, allocations: 223.6 kB / 280.5 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000832/0.009134, allocations: 1.226 MB / 281.8 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.0094, allocations: 228.5 kB / 282 MB, free: 8.723 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000593/0.009993, allocations: 0.6821 MB / 282.7 MB, free: 8.039 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003618/0.01036, allocations: 375 kB / 283 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.01046, allocations: 104 kB / 283.1 MB, free: 7.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.01057, allocations: 108 kB / 283.2 MB, free: 7.465 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.01068, allocations: 235.2 kB / 283.5 MB, free: 7.234 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002579/0.01094, allocations: 383.2 kB / 283.8 MB, free: 6.859 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005883/0.01153, allocations: 0.7863 MB / 284.6 MB, free: 6.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.01153, allocations: 0 / 284.6 MB, free: 6.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.01153, allocations: 0 / 284.6 MB, free: 6.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.01155, allocations: 4 kB / 284.6 MB, free: 6.066 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.001209/0.01275, allocations: 1.232 MB / 285.9 MB, free: 4.785 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.01279, allocations: 8.031 kB / 285.9 MB, free: 4.777 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.01291, allocations: 128.8 kB / 286 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004121/0.01332, allocations: 374.2 kB / 286.4 MB, free: 4.258 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.01347, allocations: 297.2 kB / 286.6 MB, free: 3.914 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.38e-05/0.01354, allocations: 76.33 kB / 286.7 MB, free: 3.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007775/0.01432, allocations: 1.41 MB / 288.1 MB, free: 2.141 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.01434, allocations: 3.938 kB / 288.1 MB, free: 2.137 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.66e-05/0.01437, allocations: 32 kB / 288.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.01438, allocations: 12 kB / 288.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002669/0.01465, allocations: 202.3 kB / 288.4 MB, free: 1.895 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001395/0.01605, allocations: 1.023 MB / 289.4 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00035/0.0164, allocations: 327.8 kB / 289.7 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.01657, allocations: 151.3 kB / 289.9 MB, free: 384 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.245e-05/0.01661, allocations: 24.64 kB / 289.9 MB, free: 360 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.01664, allocations: 51.16 kB / 289.9 MB, free: 300 kB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 1.613e-06/0.01664, allocations: 7.938 kB / 289.9 MB, free: 292 kB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.1333/0.1499, allocations: 0.8034 MB / 290.7 MB, free: 26.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.15, allocations: 0.8221 MB / 291.6 MB, free: 25.21 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.1504, allocations: 0.4957 MB / 292.1 MB, free: 25.07 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.413e-05/0.1504, allocations: 45.05 kB / 292.1 MB, free: 25.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.1506, allocations: 252.9 kB / 292.4 MB, free: 24.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.1507, allocations: 266.5 kB / 292.6 MB, free: 24.87 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.1508, allocations: 150.3 kB / 292.8 MB, free: 24.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.928e-05/0.1509, allocations: 391 kB / 293.1 MB, free: 24.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.151, allocations: 158.6 kB / 293.3 MB, free: 24.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.1514, allocations: 1.173 MB / 294.5 MB, free: 23.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.1517, allocations: 365.9 kB / 294.8 MB, free: 23.01 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.1517, allocations: 0 / 294.8 MB, free: 23.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0007977/0.1525, allocations: 0.6687 MB / 295.5 MB, free: 22.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.271e-05/0.1526, allocations: 86.55 kB / 295.6 MB, free: 22.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1526, allocations: 1.156 kB / 295.6 MB, free: 22.64 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003783/0.1529, allocations: 169.5 kB / 295.8 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003084/0.1532, allocations: 138.4 kB / 295.9 MB, free: 22.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002506/0.1558, allocations: 5.279 MB / 301.2 MB, free: 17.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003342/0.1561, allocations: 85.25 kB / 301.3 MB, free: 17.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.918e-05/0.1561, allocations: 19.36 kB / 301.3 MB, free: 17.94 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.0001399/0.1563, allocations: 164.9 kB / 301.4 MB, free: 17.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.1564, allocations: 83.25 kB / 301.5 MB, free: 17.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.506e-05/0.1564, allocations: 86.06 kB / 301.6 MB, free: 17.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1564, allocations: 11.62 kB / 301.6 MB, free: 17.8 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1564, allocations: 0 / 301.6 MB, free: 17.8 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006567/0.1571, allocations: 0.7838 MB / 302.4 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.1584, allocations: 0.9645 MB / 303.4 MB, free: 16.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1584, allocations: 0 / 303.4 MB, free: 16.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.1587, allocations: 132.2 kB / 303.5 MB, free: 16.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002708/0.159, allocations: 142.1 kB / 303.6 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.159, allocations: 14.53 kB / 303.6 MB, free: 16.96 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001798/0.1608, allocations: 4.046 MB / 307.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1608, allocations: 0 / 307.7 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000864/0.1617, allocations: 0.6942 MB / 308.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.1619, allocations: 93.56 kB / 308.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.047e-05/0.1619, allocations: 27.3 kB / 308.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002535/0.1622, allocations: 43.2 kB / 308.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.427e-05/0.1623, allocations: 68.23 kB / 308.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.1623, allocations: 10.91 kB / 308.6 MB, free: 13.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001811/0.1625, allocations: 251.4 kB / 308.9 MB, free: 13.15 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1625, allocations: 0 / 308.9 MB, free: 13.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005186/0.163, allocations: 281.3 kB / 309.1 MB, free: 13.14 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.0001173/0.1631, allocations: 102 kB / 309.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007107/0.1638, allocations: 1.076 MB / 310.3 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.1638, allocations: 6.906 kB / 310.3 MB, free: 12.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004246/0.1642, allocations: 0.5838 MB / 310.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005119/0.1648, allocations: 250.2 kB / 311.1 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.1664, allocations: 1.346 MB / 312.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.769e-05/0.1665, allocations: 163.1 kB / 312.7 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002299/0.1667, allocations: 99.48 kB / 312.7 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004793/0.1672, allocations: 376.5 kB / 313.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of SimCode: time 8.51e-07/0.1672, allocations: 0 / 313.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of Templates: time 0.02141/0.1886, allocations: 20.45 MB / 333.6 MB, free: 8.012 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.296423617284745]