Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.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.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009295/0.0009295, allocations: 193.5 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.198/1.198, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007051/0.0007053, allocations: 97.16 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000188/0.000188, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1717, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.001928/0.1736, allocations: 2.454 MB / 409.9 MB, free: 25.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.1749, allocations: 1.254 MB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001029/0.175, allocations: 1.25 kB / 411.2 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.1753, allocations: 164.1 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.1756, allocations: 213.8 kB / 411.6 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.1759, allocations: 141.7 kB / 411.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002635/0.1762, allocations: 407.7 kB / 412.1 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001227/0.1763, allocations: 82.84 kB / 412.2 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.1764, allocations: 163.3 kB / 412.3 MB, free: 22.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.1766, allocations: 195.2 kB / 412.5 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.556e-05/0.1766, allocations: 20 kB / 412.6 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1767, allocations: 48 kB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.487e-05/0.1768, allocations: 79.67 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.361e-05/0.1769, allocations: 93.52 kB / 412.8 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.1771, allocations: 364 kB / 413.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1771, allocations: 0 / 413.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1771, allocations: 0 / 413.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.1771, allocations: 0 / 413.1 MB, free: 22.18 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0006433/0.1778, allocations: 0.6345 MB / 413.8 MB, free: 21.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.528e-05/0.1778, allocations: 12.03 kB / 413.8 MB, free: 21.49 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/0.1779, allocations: 47.44 kB / 413.8 MB, free: 21.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1782, allocations: 329.6 kB / 414.1 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.1782, allocations: 12.44 kB / 414.1 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.1782, allocations: 24 kB / 414.2 MB, free: 21.04 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003558/0.1786, allocations: 289.5 kB / 414.5 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.1786, allocations: 0 / 414.5 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.35e-05/0.1786, allocations: 15.88 kB / 414.5 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1786, allocations: 4 kB / 414.5 MB, free: 20.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.1789, allocations: 161.6 kB / 414.6 MB, free: 20.54 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.00093/0.1798, allocations: 0.8247 MB / 415.5 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.1801, allocations: 183.9 kB / 415.6 MB, free: 19.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.1802, allocations: 76.2 kB / 415.7 MB, free: 19.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.1803, allocations: 16.12 kB / 415.7 MB, free: 19.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.1805, allocations: 125.2 kB / 415.8 MB, free: 19.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.1805, allocations: 4 kB / 415.9 MB, free: 19.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006116/0.1811, allocations: 406.7 kB / 416.2 MB, free: 18.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.1812, allocations: 324.4 kB / 416.6 MB, free: 18.42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003078/0.1815, allocations: 433.7 kB / 417 MB, free: 17.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1815, allocations: 33.7 kB / 417 MB, free: 17.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.754e-05/0.1816, allocations: 208.2 kB / 417.2 MB, free: 17.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.772e-05/0.1817, allocations: 74.92 kB / 417.3 MB, free: 17.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.1817, allocations: 8 kB / 417.3 MB, free: 17.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5e-05/0.1817, allocations: 350.8 kB / 417.6 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.1818, allocations: 63.97 kB / 417.7 MB, free: 17.25 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.182, allocations: 172 kB / 417.9 MB, free: 17.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.1821, allocations: 83.86 kB / 418 MB, free: 16.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.1821, allocations: 4 kB / 418 MB, free: 16.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003583/0.1825, allocations: 261.8 kB / 418.2 MB, free: 16.68 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.1825, allocations: 8 kB / 418.2 MB, free: 16.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.1825, allocations: 3.938 kB / 418.2 MB, free: 16.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001014/0.1826, allocations: 36.83 kB / 418.3 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.1828, allocations: 52.08 kB / 418.3 MB, free: 16.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008799/0.1837, allocations: 1.452 MB / 419.8 MB, free: 14.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001936/0.1839, allocations: 35.73 kB / 419.8 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.1839, allocations: 4 kB / 419.8 MB, free: 14.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.1841, allocations: 168 kB / 420 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.197e-05/0.1841, allocations: 43.53 kB / 420 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.824e-05/0.1842, allocations: 43.61 kB / 420.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1842, allocations: 4 kB / 420.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-06/0.1842, allocations: 3.938 kB / 420.1 MB, free: 14.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000317/0.1845, allocations: 0.5827 MB / 420.7 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006233/0.1852, allocations: 0.6968 MB / 421.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.1852, allocations: 0 / 421.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001817/0.1854, allocations: 51.91 kB / 421.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.1854, allocations: 4 kB / 421.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.448e-05/0.1854, allocations: 4 kB / 421.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1854, allocations: 4.047 kB / 421.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1854, allocations: 7.938 kB / 421.4 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004085/0.1858, allocations: 399.9 kB / 421.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.64e-05/0.1859, allocations: 144.6 kB / 421.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.324e-05/0.186, allocations: 4 kB / 422 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.1862, allocations: 11.98 kB / 422 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.1862, allocations: 19.94 kB / 422 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.1863, allocations: 8.062 kB / 422 MB, free: 12.56 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002288/0.1865, allocations: 323.1 kB / 422.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.1865, allocations: 0 / 422.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000318/0.1869, allocations: 91.94 kB / 422.4 MB, free: 12.16 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007068/0.1876, allocations: 413.3 kB / 422.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004366/0.188, allocations: 322.3 kB / 423.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.188, allocations: 0 / 423.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.1882, allocations: 83.91 kB / 423.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.1887, allocations: 97.62 kB / 423.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.1897, allocations: 0.9691 MB / 424.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.1899, allocations: 0.8041 MB / 425.1 MB, free: 9.543 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.459e-05/0.19, allocations: 31.44 kB / 425.1 MB, free: 9.512 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.19, allocations: 0 / 425.1 MB, free: 9.512 MB / 298.7 MB Notification: Performance of Templates: time 0.005829/0.1958, allocations: 5.834 MB / 430.9 MB, free: 3.719 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_trunk_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches