Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009173/0.0009173, allocations: 196.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.191/1.191, allocations: 226.6 MB / 244.3 MB, free: 6.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007539/0.0007539, allocations: 100.8 kB / 296.4 MB, free: 6.773 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000191/0.0001911, allocations: 7.938 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1677/0.1679, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.003001/0.1709, allocations: 4.399 MB / 411.9 MB, free: 23.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.1726, allocations: 1.217 MB / 413.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000347/0.1729, allocations: 11.94 kB / 413.1 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.1732, allocations: 107.1 kB / 413.2 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005186/0.1737, allocations: 281.8 kB / 413.5 MB, free: 21.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003148/0.1741, allocations: 167.8 kB / 413.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006887/0.1748, allocations: 1.04 MB / 414.7 MB, free: 20.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002724/0.175, allocations: 266.7 kB / 415 MB, free: 20.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.1753, allocations: 398.6 kB / 415.4 MB, free: 19.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003143/0.1756, allocations: 462.1 kB / 415.8 MB, free: 19.45 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.303e-05/0.1757, allocations: 68 kB / 415.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001222/0.1758, allocations: 68 kB / 415.9 MB, free: 19.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.86e-05/0.1759, allocations: 175.3 kB / 416.1 MB, free: 19.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.1761, allocations: 205.2 kB / 416.3 MB, free: 18.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.1765, allocations: 0.8812 MB / 417.2 MB, free: 18.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.1765, allocations: 7.875 kB / 417.2 MB, free: 18.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1765, allocations: 0 / 417.2 MB, free: 18.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.208e-06/0.1765, allocations: 0 / 417.2 MB, free: 18.04 MB / 298.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.001616/0.1781, allocations: 1.204 MB / 418.4 MB, free: 16.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.936e-05/0.1782, allocations: 12.03 kB / 418.4 MB, free: 16.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001268/0.1783, allocations: 102.9 kB / 418.5 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006456/0.179, allocations: 0.563 MB / 419.1 MB, free: 16.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.1792, allocations: 178.3 kB / 419.3 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.029e-05/0.1793, allocations: 59.91 kB / 419.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.1804, allocations: 0.8705 MB / 420.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1804, allocations: 8 kB / 420.2 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.493e-05/0.1805, allocations: 24 kB / 420.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.475e-06/0.1805, allocations: 12 kB / 420.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.1817, allocations: 0.6648 MB / 420.9 MB, free: 14.12 MB / 298.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.002339/0.1841, allocations: 2.061 MB / 422.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.1852, allocations: 0.8958 MB / 423.8 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006746/0.1859, allocations: 430.5 kB / 424.3 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.356e-05/0.1859, allocations: 12.64 kB / 424.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.1859, allocations: 51.22 kB / 424.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=73): time 1.733e-06/0.1859, allocations: 0 / 424.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.004429/0.1904, allocations: 1.984 MB / 426.3 MB, free: 8.426 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.1905, allocations: 0.8233 MB / 427.1 MB, free: 7.406 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004928/0.191, allocations: 0.637 MB / 427.8 MB, free: 6.758 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.876e-05/0.1911, allocations: 45.7 kB / 427.8 MB, free: 6.707 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1912, allocations: 325.1 kB / 428.1 MB, free: 6.383 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.1913, allocations: 256.2 kB / 428.4 MB, free: 6.129 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/0.1914, allocations: 16 kB / 428.4 MB, free: 6.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.157e-05/0.1914, allocations: 382.8 kB / 428.8 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.192, allocations: 301.8 kB / 429.1 MB, free: 5.438 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007124/0.1928, allocations: 0.5828 MB / 429.7 MB, free: 4.758 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006244/0.1934, allocations: 432 kB / 430.1 MB, free: 4.316 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1934, allocations: 0 / 430.1 MB, free: 4.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002283/0.1957, allocations: 1.196 MB / 431.3 MB, free: 3.082 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.1957, allocations: 81.11 kB / 431.3 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1957, allocations: 11.98 kB / 431.4 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005694/0.1963, allocations: 255.2 kB / 431.6 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005641/0.1969, allocations: 147.8 kB / 431.8 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006241/0.2031, allocations: 6.489 MB / 438.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007415/0.2039, allocations: 119.4 kB / 438.4 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-05/0.204, allocations: 27.95 kB / 438.4 MB, free: 11.39 MB / 314.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002826/0.2043, allocations: 221.7 kB / 438.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001218/0.2044, allocations: 87.06 kB / 438.7 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001371/0.2045, allocations: 87.33 kB / 438.8 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.2045, allocations: 8 kB / 438.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2045, allocations: 0 / 438.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00246/0.207, allocations: 1.342 MB / 440.1 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003583/0.2106, allocations: 2.019 MB / 442.1 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.2106, allocations: 0 / 442.1 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006751/0.2113, allocations: 155.8 kB / 442.3 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005051/0.2118, allocations: 214.7 kB / 442.5 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.2119, allocations: 23.98 kB / 442.5 MB, free: 7.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005719/0.2176, allocations: 5.06 MB / 447.6 MB, free: 1.586 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.2176, allocations: 0 / 447.6 MB, free: 1.586 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003143/0.2208, allocations: 1.527 MB / 449.1 MB, free: 32 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.2211, allocations: 236.1 kB / 449.3 MB, free: 15.78 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.728e-05/0.2212, allocations: 27.98 kB / 449.4 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006277/0.2218, allocations: 71.95 kB / 449.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.2219, allocations: 56.56 kB / 449.5 MB, free: 15.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.222, allocations: 19.98 kB / 449.5 MB, free: 15.61 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004712/0.2225, allocations: 455 kB / 450 MB, free: 15.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2225, allocations: 4 kB / 450 MB, free: 15.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006781/0.2231, allocations: 275.7 kB / 450.2 MB, free: 14.9 MB / 330.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001478/0.2233, allocations: 131.2 kB / 450.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.2253, allocations: 1.399 MB / 451.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2253, allocations: 4 kB / 451.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001324/0.2267, allocations: 0.816 MB / 452.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000885/0.2276, allocations: 226.5 kB / 452.8 MB, free: 12.2 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.23, allocations: 1.952 MB / 454.8 MB, free: 10.21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.2305, allocations: 0.9401 MB / 455.7 MB, free: 9.242 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/0.2307, allocations: 71.42 kB / 455.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2307, allocations: 0 / 455.8 MB, free: 9.172 MB / 330.7 MB Notification: Performance of Templates: time 0.02137/0.2521, allocations: 22.46 MB / 478.2 MB, free: 2.797 MB / 346.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches