Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|heatCapacitor1.T|heatCapacitor2.T|pipe1.T|pipe2.T|pipe3.T",fileNamePrefix="Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 104.1 kB / 17.16 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001796/0.001796, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.1 MB / 223.9 MB, free: 12.39 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 51.92 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1416, allocations: 46.62 MB / 326.6 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.008868/0.1506, allocations: 5.035 MB / 331.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002926/0.1535, allocations: 1.345 MB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008433/0.1544, allocations: 15.94 kB / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008017/0.1553, allocations: 127.1 kB / 333.1 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001098/0.1564, allocations: 277.8 kB / 333.4 MB, free: 14.06 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005459/0.157, allocations: 195.8 kB / 333.6 MB, free: 13.87 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0013/0.1583, allocations: 1.125 MB / 334.7 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.1587, allocations: 286 kB / 335 MB, free: 12.45 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005178/0.1593, allocations: 418.4 kB / 335.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004638/0.1597, allocations: 493.9 kB / 335.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.1599, allocations: 76 kB / 335.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.16, allocations: 72 kB / 336 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.1602, allocations: 207.2 kB / 336.2 MB, free: 11.2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004367/0.1606, allocations: 497.6 kB / 336.7 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009626/0.1616, allocations: 1.152 MB / 337.9 MB, free: 9.559 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1616, allocations: 0 / 337.9 MB, free: 9.559 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1616, allocations: 4 kB / 337.9 MB, free: 9.555 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/0.1617, allocations: 0 / 337.9 MB, free: 9.555 MB / 286.1 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.00273/0.1644, allocations: 1.341 MB / 339.2 MB, free: 8.141 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.1645, allocations: 8.031 kB / 339.2 MB, free: 8.133 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.1647, allocations: 111.8 kB / 339.3 MB, free: 8.023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008984/0.1656, allocations: 0.5715 MB / 339.9 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000297/0.1659, allocations: 174.9 kB / 340.1 MB, free: 7.227 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.994e-05/0.166, allocations: 60.12 kB / 340.1 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001499/0.1675, allocations: 0.8587 MB / 341 MB, free: 6.207 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1675, allocations: 0 / 341 MB, free: 6.207 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.9e-05/0.1676, allocations: 24 kB / 341 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.1676, allocations: 12 kB / 341 MB, free: 6.172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.1692, allocations: 0.6413 MB / 341.6 MB, free: 5.527 MB / 286.1 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.003512/0.1727, allocations: 2.061 MB / 343.7 MB, free: 3.359 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.1741, allocations: 0.8743 MB / 344.6 MB, free: 2.426 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008086/0.1749, allocations: 402.6 kB / 345 MB, free: 2.031 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.074e-05/0.175, allocations: 12.66 kB / 345 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.1751, allocations: 47.22 kB / 345 MB, free: 1.965 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.625e-06/0.1751, allocations: 3.938 kB / 345 MB, free: 1.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.005173/0.1802, allocations: 1.835 MB / 346.9 MB, free: 32 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003843/0.1806, allocations: 0.8272 MB / 347.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000813/0.1815, allocations: 0.6293 MB / 348.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.317e-05/0.1815, allocations: 45.7 kB / 348.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002791/0.1818, allocations: 337 kB / 348.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002922/0.1821, allocations: 248.2 kB / 348.9 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002758/0.1824, allocations: 146.7 kB / 349.1 MB, free: 13.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002329/0.1827, allocations: 386.8 kB / 349.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006857/0.1834, allocations: 289.8 kB / 349.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00092/0.1843, allocations: 0.5663 MB / 350.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.1857, allocations: 0.709 MB / 351 MB, free: 11.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.1857, allocations: 0 / 351 MB, free: 11.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002734/0.1885, allocations: 1.122 MB / 352.1 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.376e-05/0.1885, allocations: 85.11 kB / 352.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.1886, allocations: 0 / 352.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007044/0.1893, allocations: 243.2 kB / 352.5 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006441/0.1899, allocations: 143.8 kB / 352.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007576/0.1975, allocations: 6.367 MB / 359 MB, free: 2.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.1987, allocations: 119.3 kB / 359.1 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.482e-05/0.1988, allocations: 24 kB / 359.1 MB, free: 2.82 MB / 302.1 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.000385/0.1992, allocations: 213.7 kB / 359.3 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.1993, allocations: 90.91 kB / 359.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001667/0.1995, allocations: 95.33 kB / 359.5 MB, free: 2.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.1995, allocations: 4 kB / 359.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.1995, allocations: 192 / 359.5 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002568/0.2021, allocations: 1.264 MB / 360.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003926/0.206, allocations: 1.953 MB / 362.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.2061, allocations: 0 / 362.7 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007116/0.2068, allocations: 151.8 kB / 362.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005363/0.2073, allocations: 198.5 kB / 363.1 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.2074, allocations: 12 kB / 363.1 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006088/0.2135, allocations: 4.926 MB / 368 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2135, allocations: 0 / 368 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003606/0.2171, allocations: 1.417 MB / 369.4 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000379/0.2175, allocations: 247.8 kB / 369.7 MB, free: 7.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.2177, allocations: 20 kB / 369.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007009/0.2184, allocations: 63.94 kB / 369.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.2186, allocations: 64.5 kB / 369.8 MB, free: 7.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-05/0.2186, allocations: 16 kB / 369.8 MB, free: 7.453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005657/0.2192, allocations: 459 kB / 370.3 MB, free: 7.012 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2192, allocations: 4 kB / 370.3 MB, free: 7.008 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009397/0.2201, allocations: 283.6 kB / 370.6 MB, free: 6.73 MB / 318.1 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.0002294/0.2204, allocations: 115.2 kB / 370.7 MB, free: 6.609 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.2228, allocations: 1.367 MB / 372 MB, free: 5.156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.2228, allocations: 4 kB / 372 MB, free: 5.152 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001463/0.2243, allocations: 0.7809 MB / 372.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.2254, allocations: 221.9 kB / 373 MB, free: 4.113 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.2283, allocations: 1.888 MB / 374.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.2288, allocations: 0.9401 MB / 375.9 MB, free: 1.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004502/0.2293, allocations: 102.4 kB / 376 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.2295, allocations: 63.38 kB / 376 MB, free: 1.062 MB / 318.1 MB Notification: Performance of SimCode: time 1.303e-06/0.2295, allocations: 0 / 376 MB, free: 1.062 MB / 318.1 MB Notification: Performance of Templates: time 0.2021/0.4316, allocations: 17.03 MB / 393.1 MB, free: 46.93 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoMass/TwoMass.csv","../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches