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.001398/0.001398, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001538/0.001538, allocations: 161 kB / 24.56 MB, free: 16 kB / 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.9992/0.9992, allocations: 177.1 MB / 205 MB, free: 5.629 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 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.806e-05/1.972e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.00409/0.00411, allocations: 5.043 MB / 278 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.006005, allocations: 1.32 MB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002456/0.00625, allocations: 11.94 kB / 279.3 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.006581, allocations: 162.5 kB / 279.5 MB, free: 10.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004548/0.007036, allocations: 357 kB / 279.9 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.007348, allocations: 227.5 kB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008271/0.008175, allocations: 1.226 MB / 281.3 MB, free: 9.184 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.00844, allocations: 210.5 kB / 281.5 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005063/0.008946, allocations: 0.6783 MB / 282.2 MB, free: 8.289 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.009284, allocations: 390.9 kB / 282.6 MB, free: 7.906 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.009386, allocations: 100 kB / 282.7 MB, free: 7.809 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.009498, allocations: 112 kB / 282.8 MB, free: 7.699 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.009612, allocations: 223.2 kB / 283 MB, free: 7.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002601/0.009872, allocations: 387.2 kB / 283.4 MB, free: 7.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000566/0.01044, allocations: 0.7941 MB / 284.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.01044, allocations: 0 / 284.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.81e-07/0.01044, allocations: 0 / 284.2 MB, free: 6.305 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.01045, allocations: 0 / 284.2 MB, free: 6.305 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.00136/0.01181, allocations: 1.38 MB / 285.5 MB, free: 4.867 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.01184, allocations: 8.031 kB / 285.6 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.012, allocations: 164.3 kB / 285.7 MB, free: 4.699 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.01255, allocations: 0.502 MB / 286.2 MB, free: 4.168 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.0127, allocations: 297.1 kB / 286.5 MB, free: 3.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.982e-05/0.01278, allocations: 72.38 kB / 286.6 MB, free: 3.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009402/0.01372, allocations: 1.519 MB / 288.1 MB, free: 1.906 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.01374, allocations: 3.938 kB / 288.1 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.01378, allocations: 28 kB / 288.1 MB, free: 1.875 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.01379, allocations: 12 kB / 288.1 MB, free: 1.863 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.01425, allocations: 295.6 kB / 288.4 MB, free: 1.574 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001772/0.01602, allocations: 1.487 MB / 289.9 MB, free: 52 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.103/0.1191, allocations: 382.4 kB / 290.3 MB, free: 25.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003578/0.1194, allocations: 213.5 kB / 290.5 MB, free: 25.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.87e-05/0.1195, allocations: 16.52 kB / 290.5 MB, free: 25.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.1195, allocations: 57.19 kB / 290.6 MB, free: 25.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 2.264e-06/0.1195, allocations: 0 / 290.6 MB, free: 25.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002238/0.1218, allocations: 1.029 MB / 291.6 MB, free: 25.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.974e-05/0.1219, allocations: 0.8231 MB / 292.4 MB, free: 24.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.1224, allocations: 0.6139 MB / 293 MB, free: 24.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.1224, allocations: 45.3 kB / 293.1 MB, free: 24.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/0.1226, allocations: 397.2 kB / 293.5 MB, free: 24.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.1227, allocations: 263.8 kB / 293.7 MB, free: 23.96 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.1229, allocations: 152.3 kB / 293.9 MB, free: 23.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.123, allocations: 0.563 MB / 294.4 MB, free: 23.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.1232, allocations: 206.4 kB / 294.6 MB, free: 23.35 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000442/0.1237, allocations: 1.297 MB / 295.9 MB, free: 21.92 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004737/0.1241, allocations: 435.4 kB / 296.4 MB, free: 21.78 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1241, allocations: 4.875 kB / 296.4 MB, free: 21.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001201/0.1254, allocations: 0.8689 MB / 297.2 MB, free: 21.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.1254, allocations: 86.25 kB / 297.3 MB, free: 21.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1254, allocations: 1.406 kB / 297.3 MB, free: 21.34 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004819/0.1259, allocations: 191.2 kB / 297.5 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003351/0.1262, allocations: 135.1 kB / 297.6 MB, free: 21.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003258/0.1295, allocations: 7.803 MB / 305.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003834/0.1299, allocations: 84.2 kB / 305.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.903e-05/0.1299, allocations: 29.16 kB / 305.6 MB, free: 14.13 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.0001529/0.13, allocations: 204.2 kB / 305.8 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.1301, allocations: 116.1 kB / 305.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.687e-05/0.1302, allocations: 85.05 kB / 305.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.1302, allocations: 11.53 kB / 306 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1302, allocations: 1.344 kB / 306 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008899/0.1311, allocations: 0.9327 MB / 306.9 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001709/0.1328, allocations: 1.394 MB / 308.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1328, allocations: 0 / 308.3 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003475/0.1332, allocations: 134.9 kB / 308.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003364/0.1335, allocations: 159 kB / 308.6 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.454e-05/0.1336, allocations: 15.22 kB / 308.6 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002424/0.136, allocations: 5.938 MB / 314.5 MB, free: 6.859 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.136, allocations: 3.984 kB / 314.5 MB, free: 6.855 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.1372, allocations: 0.949 MB / 315.5 MB, free: 6.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/0.1373, allocations: 163.4 kB / 315.6 MB, free: 6.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.694e-05/0.1374, allocations: 18.88 kB / 315.7 MB, free: 6.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002878/0.1377, allocations: 41.28 kB / 315.7 MB, free: 6.316 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.1378, allocations: 72.38 kB / 315.8 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.1378, allocations: 17 kB / 315.8 MB, free: 6.289 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002919/0.1381, allocations: 412.4 kB / 316.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1381, allocations: 0 / 316.2 MB, free: 6.098 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005816/0.1387, allocations: 281.8 kB / 316.5 MB, free: 6.062 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.0001184/0.1388, allocations: 119.6 kB / 316.6 MB, free: 5.957 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008617/0.1397, allocations: 1.381 MB / 318 MB, free: 4.863 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.1397, allocations: 4.531 kB / 318 MB, free: 4.863 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004759/0.1402, allocations: 0.7875 MB / 318.8 MB, free: 4.266 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005707/0.1408, allocations: 250.4 kB / 319 MB, free: 4.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.1425, allocations: 1.449 MB / 320.4 MB, free: 3.363 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.674e-05/0.1426, allocations: 159.8 kB / 320.6 MB, free: 3.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002188/0.1428, allocations: 99.48 kB / 320.7 MB, free: 3.152 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001148/0.1429, allocations: 68.5 kB / 320.8 MB, free: 3.086 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.1429, allocations: 0 / 320.8 MB, free: 3.086 MB / 266.7 MB Notification: Performance of Templates: time 0.01976/0.1627, allocations: 19.35 MB / 340.1 MB, free: 168 kB / 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.5132973697036505]