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.001417/0.001417, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.001461/0.001461, allocations: 149.4 kB / 24.26 MB, free: 184 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 1.467/1.467, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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.503e-06/1.503e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.519e-05/2.669e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.006552/0.006579, allocations: 4.509 MB / 271.8 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.008967, allocations: 1.258 MB / 273.1 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002746/0.009241, allocations: 19.88 kB / 273.1 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004295/0.009671, allocations: 162.6 kB / 273.3 MB, free: 0.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006948/0.01037, allocations: 349 kB / 273.6 MB, free: 416 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004914/0.01086, allocations: 239.5 kB / 273.8 MB, free: 176 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001673/0.01253, allocations: 1.218 MB / 275.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003958/0.01293, allocations: 218.5 kB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008736/0.0138, allocations: 0.6783 MB / 275.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000579/0.01438, allocations: 378.9 kB / 276.3 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001652/0.01454, allocations: 104 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.01475, allocations: 108 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002313/0.01498, allocations: 227.2 kB / 276.7 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004677/0.01545, allocations: 383.2 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001529/0.01697, allocations: 1.254 MB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.01698, allocations: 0 / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.01698, allocations: 0 / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.01699, allocations: 0 / 278.4 MB, free: 11.61 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.002788/0.01978, allocations: 1.284 MB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.01982, allocations: 12.03 kB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002982/0.02012, allocations: 160.2 kB / 279.8 MB, free: 10.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.02123, allocations: 0.5422 MB / 280.4 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003458/0.02158, allocations: 293.2 kB / 280.7 MB, free: 9.188 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.02172, allocations: 76.33 kB / 280.7 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002471/0.0242, allocations: 1.601 MB / 282.3 MB, free: 7.227 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.02422, allocations: 3.938 kB / 282.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.317e-05/0.0243, allocations: 32 kB / 282.4 MB, free: 7.191 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.02432, allocations: 12 kB / 282.4 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001561/0.02588, allocations: 0.5946 MB / 283 MB, free: 6.586 MB / 266.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003331/0.02921, allocations: 1.53 MB / 284.5 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.03064, allocations: 0.5795 MB / 285.1 MB, free: 4.434 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008924/0.03153, allocations: 358.4 kB / 285.4 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.682e-05/0.0316, allocations: 20.66 kB / 285.5 MB, free: 4.059 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.056e-05/0.03165, allocations: 51.22 kB / 285.5 MB, free: 4 MB / 266.7 MB Notification: Performance of pre-optimization done (n=73): time 2.314e-06/0.03165, allocations: 0 / 285.5 MB, free: 4 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005588/0.03724, allocations: 1.511 MB / 287 MB, free: 2.473 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006783/0.03791, allocations: 0.8195 MB / 287.8 MB, free: 1.453 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009082/0.03882, allocations: 0.6096 MB / 288.4 MB, free: 0.8359 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.221e-05/0.0389, allocations: 41.7 kB / 288.5 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004088/0.03931, allocations: 345.2 kB / 288.8 MB, free: 460 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002675/0.03958, allocations: 261.7 kB / 289.1 MB, free: 196 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002781/0.03986, allocations: 146.6 kB / 289.2 MB, free: 44 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.08987/0.1297, allocations: 385.9 kB / 289.6 MB, free: 32.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009247/0.1307, allocations: 353.1 kB / 289.9 MB, free: 32.63 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.1317, allocations: 1.387 MB / 291.3 MB, free: 31.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001319/0.1331, allocations: 0.6777 MB / 292 MB, free: 31.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1331, allocations: 1.031 kB / 292 MB, free: 31.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002719/0.1358, allocations: 1.196 MB / 293.2 MB, free: 30.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.324e-05/0.1358, allocations: 86.08 kB / 293.3 MB, free: 30.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.1358, allocations: 0 / 293.3 MB, free: 30.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/0.1369, allocations: 279.6 kB / 293.6 MB, free: 30.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006563/0.1375, allocations: 137.2 kB / 293.7 MB, free: 30.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.144, allocations: 6.407 MB / 300.1 MB, free: 24.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008942/0.1449, allocations: 99.02 kB / 300.2 MB, free: 24.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/0.145, allocations: 22.59 kB / 300.2 MB, free: 24.96 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.0003171/0.1453, allocations: 217.1 kB / 300.4 MB, free: 24.79 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.1455, allocations: 114.2 kB / 300.5 MB, free: 24.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.1456, allocations: 88.14 kB / 300.6 MB, free: 24.69 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.1456, allocations: 7.938 kB / 300.6 MB, free: 24.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.1456, allocations: 0.7031 kB / 300.6 MB, free: 24.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002372/0.148, allocations: 1.236 MB / 301.9 MB, free: 23.89 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003532/0.1515, allocations: 1.661 MB / 303.5 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1515, allocations: 1 kB / 303.5 MB, free: 23.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007112/0.1523, allocations: 137.5 kB / 303.7 MB, free: 23.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008538/0.1531, allocations: 239 kB / 303.9 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.349e-05/0.1532, allocations: 14.12 kB / 303.9 MB, free: 23.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005348/0.1585, allocations: 4.952 MB / 308.9 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1585, allocations: 0 / 308.9 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003088/0.1616, allocations: 1.416 MB / 310.3 MB, free: 18.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003172/0.1619, allocations: 165.7 kB / 310.4 MB, free: 18.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001054/0.162, allocations: 19.06 kB / 310.5 MB, free: 18.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006659/0.1627, allocations: 52.09 kB / 310.5 MB, free: 18.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.1629, allocations: 71.81 kB / 310.6 MB, free: 18.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.892e-05/0.1629, allocations: 18.08 kB / 310.6 MB, free: 18.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004317/0.1633, allocations: 434.9 kB / 311 MB, free: 17.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1633, allocations: 0 / 311 MB, free: 17.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008187/0.1641, allocations: 286.4 kB / 311.3 MB, free: 17.8 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.0001392/0.1643, allocations: 122 kB / 311.4 MB, free: 17.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001884/0.1662, allocations: 1.391 MB / 312.8 MB, free: 16.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.1662, allocations: 8.125 kB / 312.8 MB, free: 16.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.1675, allocations: 0.7375 MB / 313.6 MB, free: 15.87 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008821/0.1684, allocations: 246.6 kB / 313.8 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002057/0.1705, allocations: 1.515 MB / 315.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.1707, allocations: 349.7 kB / 315.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003619/0.1711, allocations: 94.17 kB / 315.8 MB, free: 13.64 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.1712, allocations: 68.5 kB / 315.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of SimCode: time 4.21e-07/0.1712, allocations: 0 / 315.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Templates: time 0.02636/0.1976, allocations: 19.1 MB / 334.9 MB, free: 10.87 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.174088901025243]