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.0009873/0.0009873, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.00111/0.00111, allocations: 146.8 kB / 24.89 MB, free: 8.781 MB / 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.95/0.95, allocations: 173.4 MB / 201.5 MB, free: 9.199 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.153e-06/1.153e-06, allocations: 0 / 268.5 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.69e-05/1.806e-05, allocations: 2.312 kB / 268.5 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004038/0.004056, allocations: 4.953 MB / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002222/0.006277, allocations: 1.343 MB / 274.8 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000298/0.006575, allocations: 11.94 kB / 274.8 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.006899, allocations: 158.6 kB / 274.9 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005619/0.007461, allocations: 356.8 kB / 275.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.007916, allocations: 231.6 kB / 275.5 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.008985, allocations: 1.23 MB / 276.7 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003233/0.009308, allocations: 224.5 kB / 276.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006875/0.009996, allocations: 0.6899 MB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005142/0.01051, allocations: 382.9 kB / 278 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.01063, allocations: 104 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.01076, allocations: 104 kB / 278.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.0109, allocations: 223.2 kB / 278.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000311/0.01121, allocations: 391.1 kB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007152/0.01193, allocations: 0.7824 MB / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.82e-06/0.01193, allocations: 0 / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.01193, allocations: 0 / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.01194, allocations: 4 kB / 279.6 MB, free: 10.99 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.001438/0.01338, allocations: 1.228 MB / 280.8 MB, free: 9.719 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.01341, allocations: 8.031 kB / 280.8 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.01357, allocations: 132.8 kB / 281 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.01408, allocations: 386.1 kB / 281.3 MB, free: 9.176 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.01427, allocations: 297.2 kB / 281.6 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.053e-05/0.01436, allocations: 68.38 kB / 281.7 MB, free: 8.766 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009111/0.01527, allocations: 1.41 MB / 283.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.01529, allocations: 3.938 kB / 283.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.921e-05/0.01534, allocations: 31.94 kB / 283.1 MB, free: 7.031 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.01535, allocations: 19.94 kB / 283.2 MB, free: 7.012 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003445/0.01569, allocations: 198.3 kB / 283.4 MB, free: 6.816 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.01747, allocations: 1.015 MB / 284.4 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005158/0.01799, allocations: 323.8 kB / 284.7 MB, free: 5.453 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.01821, allocations: 158.6 kB / 284.8 MB, free: 5.297 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.363e-05/0.01825, allocations: 12.66 kB / 284.9 MB, free: 5.285 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.01828, allocations: 51.16 kB / 284.9 MB, free: 5.227 MB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 2.885e-06/0.01829, allocations: 0 / 284.9 MB, free: 5.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001896/0.02018, allocations: 0.8208 MB / 285.7 MB, free: 4.387 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002342/0.02042, allocations: 0.8234 MB / 286.6 MB, free: 3.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003758/0.02079, allocations: 0.4961 MB / 287 MB, free: 2.863 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.02084, allocations: 45.7 kB / 287.1 MB, free: 2.812 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.02097, allocations: 251.2 kB / 287.3 MB, free: 2.562 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.02112, allocations: 273.6 kB / 287.6 MB, free: 2.293 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.02129, allocations: 138.6 kB / 287.7 MB, free: 2.152 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.02141, allocations: 390.6 kB / 288.1 MB, free: 1.762 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.02158, allocations: 163.1 kB / 288.3 MB, free: 1.582 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/0.0221, allocations: 1.176 MB / 289.5 MB, free: 104 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003983/0.0225, allocations: 370 kB / 289.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.0225, allocations: 0 / 289.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0009115/0.02341, allocations: 0.6687 MB / 290.5 MB, free: 14.99 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.951e-05/0.02346, allocations: 92.08 kB / 290.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.02347, allocations: 0 / 290.6 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004202/0.02389, allocations: 163.3 kB / 290.7 MB, free: 14.71 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003701/0.02426, allocations: 135.8 kB / 290.9 MB, free: 14.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003692/0.02795, allocations: 5.293 MB / 296.2 MB, free: 8.938 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004554/0.0284, allocations: 83.53 kB / 296.2 MB, free: 8.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.572e-05/0.02844, allocations: 24.06 kB / 296.3 MB, free: 8.832 MB / 282.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.0002059/0.02865, allocations: 165.7 kB / 296.4 MB, free: 8.66 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001146/0.02876, allocations: 87.84 kB / 296.5 MB, free: 8.574 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.82e-05/0.02886, allocations: 83.02 kB / 296.6 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.02886, allocations: 8 kB / 296.6 MB, free: 8.477 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.02887, allocations: 0 / 296.6 MB, free: 8.477 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008547/0.02972, allocations: 0.7879 MB / 297.4 MB, free: 7.574 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.03129, allocations: 0.9561 MB / 298.3 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.03129, allocations: 0 / 298.3 MB, free: 6.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.03174, allocations: 139.8 kB / 298.5 MB, free: 6.453 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003267/0.03206, allocations: 134.4 kB / 298.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.03209, allocations: 16.12 kB / 298.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002755/0.03485, allocations: 4.037 MB / 302.7 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.03485, allocations: 0 / 302.7 MB, free: 1.996 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.03587, allocations: 0.701 MB / 303.4 MB, free: 1.27 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.0361, allocations: 95.28 kB / 303.5 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-05/0.03617, allocations: 20 kB / 303.5 MB, free: 1.156 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003485/0.03652, allocations: 47.89 kB / 303.5 MB, free: 1.109 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.03665, allocations: 64.53 kB / 303.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.03668, allocations: 12 kB / 303.6 MB, free: 1.035 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002233/0.0369, allocations: 248.6 kB / 303.8 MB, free: 0.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0369, allocations: 0 / 303.8 MB, free: 0.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000731/0.03763, allocations: 283.7 kB / 304.1 MB, free: 0.5156 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.0001382/0.03777, allocations: 104.5 kB / 304.2 MB, free: 412 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.09663/0.1344, allocations: 1.069 MB / 305.3 MB, free: 39.52 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.581e-05/0.1344, allocations: 8.281 kB / 305.3 MB, free: 39.52 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005876/0.135, allocations: 0.5758 MB / 305.9 MB, free: 39.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006543/0.1357, allocations: 245.1 kB / 306.1 MB, free: 39.17 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00178/0.1374, allocations: 1.357 MB / 307.5 MB, free: 38.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001144/0.1376, allocations: 162.6 kB / 307.6 MB, free: 38.5 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002835/0.1378, allocations: 98.78 kB / 307.7 MB, free: 38.49 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005843/0.1384, allocations: 373.9 kB / 308.1 MB, free: 38.44 MB / 282.7 MB Notification: Performance of SimCode: time 2.004e-06/0.1384, allocations: 0 / 308.1 MB, free: 38.44 MB / 282.7 MB Notification: Performance of Templates: time 0.01991/0.1583, allocations: 20.45 MB / 328.5 MB, free: 27.35 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.215732456650585]