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.0007565/0.0007565, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001025/0.001782, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0006434/0.0006434, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009144/0.001558, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9678/0.9678, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07426/1.042, allocations: 52.49 MB / 238.3 MB, free: 4.426 MB / 234.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.453e-06/1.453e-06, allocations: 0 / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.649e-05/1.794e-05, allocations: 2.312 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004088/0.004106, allocations: 5.025 MB / 244.6 MB, free: 14.13 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.005837, allocations: 1.347 MB / 245.9 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.006046, allocations: 11.94 kB / 245.9 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.006288, allocations: 166.5 kB / 246.1 MB, free: 12.61 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003987/0.006687, allocations: 356.9 kB / 246.4 MB, free: 12.25 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002796/0.006967, allocations: 231.6 kB / 246.7 MB, free: 12.03 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008159/0.007782, allocations: 1.226 MB / 247.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002541/0.008037, allocations: 228.4 kB / 248.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007033/0.00874, allocations: 0.8232 MB / 248.9 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003483/0.009088, allocations: 382.9 kB / 249.3 MB, free: 9.34 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.956e-05/0.009188, allocations: 100 kB / 249.4 MB, free: 9.242 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.0093, allocations: 108 kB / 249.5 MB, free: 9.137 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.009407, allocations: 159.5 kB / 249.7 MB, free: 8.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002772/0.009684, allocations: 311.4 kB / 250 MB, free: 8.676 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005392/0.01022, allocations: 0.7123 MB / 250.7 MB, free: 7.961 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.252e-05/0.01024, allocations: 0 / 250.7 MB, free: 7.961 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.72e-07/0.01024, allocations: 0 / 250.7 MB, free: 7.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.913e-05/0.01026, allocations: 0 / 250.7 MB, free: 7.961 MB / 250.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.00145/0.01171, allocations: 1.431 MB / 252.1 MB, free: 6.48 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.01174, allocations: 12.03 kB / 252.1 MB, free: 6.469 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.01186, allocations: 124.8 kB / 252.2 MB, free: 6.348 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004417/0.0123, allocations: 390.1 kB / 252.6 MB, free: 5.941 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001611/0.01247, allocations: 293.2 kB / 252.9 MB, free: 5.602 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.019e-05/0.01254, allocations: 72.31 kB / 253 MB, free: 5.531 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007556/0.01329, allocations: 1.41 MB / 254.4 MB, free: 3.832 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.488e-05/0.01331, allocations: 3.938 kB / 254.4 MB, free: 3.828 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.01335, allocations: 28 kB / 254.4 MB, free: 3.801 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.01336, allocations: 16 kB / 254.4 MB, free: 3.785 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.01362, allocations: 198.3 kB / 254.6 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001394/0.01501, allocations: 1.023 MB / 255.7 MB, free: 2.555 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003394/0.01535, allocations: 311.9 kB / 256 MB, free: 2.238 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.01552, allocations: 158.6 kB / 256.1 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.158e-05/0.01556, allocations: 16.66 kB / 256.1 MB, free: 2.066 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.01559, allocations: 51.16 kB / 256.2 MB, free: 2.008 MB / 250.7 MB Notification: Performance of pre-optimization done (n=73): time 2.825e-06/0.01559, allocations: 4 kB / 256.2 MB, free: 2.004 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.001437/0.01703, allocations: 0.813 MB / 257 MB, free: 1.172 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.717e-05/0.01706, allocations: 64.06 kB / 257.1 MB, free: 1.098 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003118/0.01737, allocations: 0.5 MB / 257.6 MB, free: 0.582 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.01741, allocations: 45.7 kB / 257.6 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.01752, allocations: 255.1 kB / 257.9 MB, free: 284 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.01769, allocations: 269.6 kB / 258.1 MB, free: 12 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002748/0.01797, allocations: 138.6 kB / 258.3 MB, free: 15.87 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.01807, allocations: 390.6 kB / 258.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001354/0.01821, allocations: 167.1 kB / 258.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005258/0.01874, allocations: 1.176 MB / 260 MB, free: 13.82 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.01902, allocations: 366 kB / 260.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.01902, allocations: 4 kB / 260.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0006928/0.01972, allocations: 0.6764 MB / 261 MB, free: 12.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.761e-05/0.01976, allocations: 81.11 kB / 261.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.01977, allocations: 4 kB / 261.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003309/0.0201, allocations: 171.3 kB / 261.3 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/0.02049, allocations: 190.5 kB / 261.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002983/0.02347, allocations: 5.301 MB / 266.7 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.02376, allocations: 79.59 kB / 266.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.02378, allocations: 19.92 kB / 266.8 MB, free: 6.484 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.0001387/0.02392, allocations: 169.7 kB / 267 MB, free: 6.309 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.605e-05/0.024, allocations: 79.92 kB / 267.1 MB, free: 6.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.113e-05/0.02408, allocations: 91 kB / 267.2 MB, free: 6.133 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.02408, allocations: 4 kB / 267.2 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.02409, allocations: 4 kB / 267.2 MB, free: 6.125 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006219/0.02471, allocations: 0.7801 MB / 268 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.02587, allocations: 0.9523 MB / 268.9 MB, free: 4.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.02588, allocations: 3.938 kB / 268.9 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003805/0.02626, allocations: 190.2 kB / 269.1 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.0264, allocations: 99.25 kB / 269.2 MB, free: 3.957 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002451/0.02665, allocations: 138.4 kB / 269.3 MB, free: 3.812 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.02667, allocations: 16 kB / 269.4 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.02895, allocations: 4.033 MB / 273.4 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.02896, allocations: 0 / 273.4 MB, free: 15.51 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000754/0.02971, allocations: 0.7009 MB / 274.1 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.022e-05/0.02977, allocations: 20 kB / 274.1 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002424/0.03001, allocations: 39.97 kB / 274.1 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.561e-05/0.03011, allocations: 64.53 kB / 274.2 MB, free: 14.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.03013, allocations: 12 kB / 274.2 MB, free: 14.65 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001659/0.03029, allocations: 252.6 kB / 274.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03029, allocations: 0 / 274.5 MB, free: 14.41 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004541/0.03075, allocations: 291.7 kB / 274.8 MB, free: 14.12 MB / 282.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.0001016/0.03085, allocations: 104.3 kB / 274.9 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007085/0.03156, allocations: 1.072 MB / 275.9 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.665e-05/0.03157, allocations: 20.11 kB / 275.9 MB, free: 12.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004165/0.03199, allocations: 0.5757 MB / 276.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005126/0.0325, allocations: 334.9 kB / 276.9 MB, free: 11.87 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008724/0.04122, allocations: 1.347 MB / 278.2 MB, free: 10.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.04134, allocations: 161.1 kB / 278.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002775/0.04162, allocations: 98.3 kB / 278.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000548/0.04216, allocations: 389 kB / 278.8 MB, free: 9.828 MB / 282.7 MB Notification: Performance of SimCode: time 1.183e-06/0.04216, allocations: 0 / 278.8 MB, free: 9.828 MB / 282.7 MB Notification: Performance of Templates: time 0.1054/0.1476, allocations: 22.42 MB / 301.3 MB, free: 37.88 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 -ignoreHideResult -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.1082161096856]