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.001623/0.001623, allocations: 114.3 kB / 17.28 MB, free: 6.219 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.001775/0.001775, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.45/1.45, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001831/0.001831, allocations: 47.92 kB / 280.2 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1398, allocations: 46.62 MB / 326.8 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.007526/0.1474, allocations: 5.039 MB / 331.8 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002867/0.1503, allocations: 1.333 MB / 333.1 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003735/0.1507, allocations: 11.94 kB / 333.2 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005358/0.1513, allocations: 123.1 kB / 333.3 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007055/0.152, allocations: 293.7 kB / 333.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005393/0.1525, allocations: 187.8 kB / 333.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001549/0.1541, allocations: 1.183 MB / 334.9 MB, free: 12.6 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005565/0.1547, allocations: 322 kB / 335.2 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005983/0.1553, allocations: 450.4 kB / 335.7 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006533/0.1559, allocations: 0.5018 MB / 336.2 MB, free: 11.33 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001494/0.1561, allocations: 104 kB / 336.3 MB, free: 11.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.1563, allocations: 108 kB / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.1565, allocations: 219.2 kB / 336.6 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004819/0.157, allocations: 0.5211 MB / 337.1 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001063/0.1581, allocations: 1.184 MB / 338.3 MB, free: 9.195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1581, allocations: 0 / 338.3 MB, free: 9.195 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1581, allocations: 0 / 338.3 MB, free: 9.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.1581, allocations: 4 kB / 338.3 MB, free: 9.191 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.003249/0.1614, allocations: 1.345 MB / 339.7 MB, free: 7.773 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.381e-05/0.1614, allocations: 15.89 kB / 339.7 MB, free: 7.758 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002802/0.1617, allocations: 115.8 kB / 339.8 MB, free: 7.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.163, allocations: 0.5793 MB / 340.4 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002974/0.1633, allocations: 162.9 kB / 340.5 MB, free: 6.852 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.1634, allocations: 60.12 kB / 340.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/0.165, allocations: 0.8587 MB / 341.4 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.16e-05/0.165, allocations: 0 / 341.4 MB, free: 5.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.032e-05/0.1651, allocations: 32 kB / 341.5 MB, free: 5.801 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1651, allocations: 16 kB / 341.5 MB, free: 5.785 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/0.1665, allocations: 0.6257 MB / 342.1 MB, free: 5.156 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.003617/0.1702, allocations: 2.069 MB / 344.2 MB, free: 2.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.1716, allocations: 0.8587 MB / 345 MB, free: 2.062 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007976/0.1725, allocations: 410.6 kB / 345.4 MB, free: 1.66 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.864e-05/0.1725, allocations: 12.64 kB / 345.5 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.1726, allocations: 51.22 kB / 345.5 MB, free: 1.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=73): time 2.585e-06/0.1726, allocations: 0 / 345.5 MB, free: 1.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=73): time 0.00514/0.1777, allocations: 1.836 MB / 347.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003351/0.1781, allocations: 0.8272 MB / 348.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007561/0.1789, allocations: 0.6293 MB / 348.8 MB, free: 14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.277e-05/0.179, allocations: 41.7 kB / 348.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002449/0.1792, allocations: 337 kB / 349.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000249/0.1795, allocations: 264.2 kB / 349.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002299/0.1797, allocations: 138.6 kB / 349.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001627/0.1799, allocations: 386.8 kB / 349.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.1805, allocations: 285.8 kB / 350.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008594/0.1814, allocations: 0.5624 MB / 350.8 MB, free: 11.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.1827, allocations: 0.7168 MB / 351.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.1828, allocations: 0 / 351.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002725/0.1855, allocations: 1.118 MB / 352.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.725e-05/0.1856, allocations: 85.09 kB / 352.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.1856, allocations: 4 kB / 352.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006936/0.1863, allocations: 239.2 kB / 352.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006179/0.1869, allocations: 143.8 kB / 353.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007361/0.1943, allocations: 6.928 MB / 360 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009268/0.1953, allocations: 111.3 kB / 360.1 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.239e-05/0.1953, allocations: 20 kB / 360.1 MB, free: 1.871 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.0003693/0.1957, allocations: 221.7 kB / 360.4 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/0.1958, allocations: 83.06 kB / 360.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001515/0.196, allocations: 95.56 kB / 360.5 MB, free: 1.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.196, allocations: 8 kB / 360.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.196, allocations: 3.984 kB / 360.5 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002379/0.1984, allocations: 1.268 MB / 361.8 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003641/0.2021, allocations: 1.949 MB / 363.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2021, allocations: 4 kB / 363.8 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006796/0.2028, allocations: 139.8 kB / 363.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005175/0.2033, allocations: 202.4 kB / 364.1 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.567e-05/0.2034, allocations: 12 kB / 364.1 MB, free: 13.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006295/0.2097, allocations: 5.341 MB / 369.4 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2097, allocations: 32 / 369.4 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00337/0.2131, allocations: 1.448 MB / 370.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005018/0.2136, allocations: 235.9 kB / 371.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.2137, allocations: 20 kB / 371.1 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006527/0.2144, allocations: 67.84 kB / 371.2 MB, free: 6.125 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.2146, allocations: 60.56 kB / 371.3 MB, free: 6.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.2146, allocations: 20 kB / 371.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005171/0.2151, allocations: 459 kB / 371.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2152, allocations: 0 / 371.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008898/0.2161, allocations: 279.7 kB / 372 MB, free: 5.332 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.0001898/0.2163, allocations: 123.1 kB / 372.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002682/0.2189, allocations: 1.399 MB / 373.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.219, allocations: 4 kB / 373.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.2203, allocations: 0.7808 MB / 374.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001014/0.2214, allocations: 254.1 kB / 374.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.2243, allocations: 1.891 MB / 376.5 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1771/0.4014, allocations: 0.9333 MB / 377.4 MB, free: 52.46 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007387/0.4022, allocations: 105.8 kB / 377.5 MB, free: 52.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/0.4024, allocations: 66 kB / 377.6 MB, free: 52.44 MB / 318.1 MB Notification: Performance of SimCode: time 2.034e-06/0.4024, allocations: 0 / 377.6 MB, free: 52.44 MB / 318.1 MB Notification: Performance of Templates: time 0.03179/0.4342, allocations: 18.04 MB / 395.6 MB, free: 45.47 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