Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank.H|openTank.m",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 240.9 MB, free: 10.97 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009798/0.0009798, allocations: 123.3 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007857/0.0007857, allocations: 31.95 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.217, allocations: 49.45 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.00302/0.22, allocations: 2.896 MB / 402.4 MB, free: 30.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.2214, allocations: 1.244 MB / 403.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.2216, allocations: 3.938 kB / 403.6 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004383/0.2221, allocations: 163.4 kB / 403.8 MB, free: 29.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003175/0.2224, allocations: 187 kB / 404 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003246/0.2227, allocations: 143.8 kB / 404.1 MB, free: 28.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.2231, allocations: 441.9 kB / 404.5 MB, free: 28.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.2233, allocations: 99.7 kB / 404.6 MB, free: 28.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.2234, allocations: 171.3 kB / 404.8 MB, free: 28.02 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001789/0.2236, allocations: 199.2 kB / 405 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.975e-05/0.2237, allocations: 24 kB / 405 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.2238, allocations: 59.97 kB / 405.1 MB, free: 27.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.32e-05/0.2239, allocations: 71.69 kB / 405.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.224, allocations: 190.9 kB / 405.3 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000322/0.2243, allocations: 471.9 kB / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.2243, allocations: 0 / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2243, allocations: 0 / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.2244, allocations: 0 / 405.8 MB, free: 27.02 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.0008285/0.2252, allocations: 0.693 MB / 406.5 MB, free: 26.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.2252, allocations: 12.03 kB / 406.5 MB, free: 26.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.117e-05/0.2253, allocations: 44.47 kB / 406.5 MB, free: 26.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.2256, allocations: 350.5 kB / 406.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.2256, allocations: 12.81 kB / 406.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.2257, allocations: 24.12 kB / 406.9 MB, free: 25.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003472/0.226, allocations: 289.5 kB / 407.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.2261, allocations: 0 / 407.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.268e-05/0.2261, allocations: 8 kB / 407.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.2261, allocations: 11.94 kB / 407.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.2263, allocations: 145.7 kB / 407.4 MB, free: 25.32 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.001005/0.2274, allocations: 0.8244 MB / 408.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.2277, allocations: 195.8 kB / 408.4 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.2278, allocations: 76.83 kB / 408.4 MB, free: 24.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/0.2279, allocations: 7.984 kB / 408.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.2281, allocations: 139.3 kB / 408.6 MB, free: 24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.2281, allocations: 0 / 408.6 MB, free: 24 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006666/0.2288, allocations: 405 kB / 409 MB, free: 23.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.924e-05/0.2289, allocations: 320.4 kB / 409.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003174/0.2292, allocations: 429.7 kB / 409.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.2292, allocations: 37.7 kB / 409.8 MB, free: 22.72 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.787e-05/0.2294, allocations: 204.2 kB / 410 MB, free: 22.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.159e-05/0.2294, allocations: 70.92 kB / 410 MB, free: 22.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.5e-05/0.2295, allocations: 57.69 kB / 410.1 MB, free: 22.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.351e-05/0.2295, allocations: 350.8 kB / 410.4 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.2297, allocations: 59.98 kB / 410.5 MB, free: 21.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001608/0.2298, allocations: 183.9 kB / 410.7 MB, free: 21.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002236/0.2301, allocations: 172 kB / 410.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2301, allocations: 3.938 kB / 410.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003641/0.2304, allocations: 270.8 kB / 411.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2305, allocations: 7.984 kB / 411.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.2305, allocations: 0 / 411.1 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001234/0.2306, allocations: 32.84 kB / 411.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/0.2308, allocations: 47.92 kB / 411.2 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001047/0.2319, allocations: 1.452 MB / 412.6 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.2321, allocations: 35.72 kB / 412.7 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.2321, allocations: 16 kB / 412.7 MB, free: 19.56 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 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.2322, allocations: 169.9 kB / 412.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.489e-05/0.2323, allocations: 39.53 kB / 412.9 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.339e-05/0.2324, allocations: 43.83 kB / 412.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.2324, allocations: 0 / 412.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.2324, allocations: 3.984 kB / 412.9 MB, free: 19.29 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003336/0.2327, allocations: 0.5896 MB / 413.5 MB, free: 18.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006586/0.2334, allocations: 0.7001 MB / 414.2 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2334, allocations: 0 / 414.2 MB, free: 17.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.2336, allocations: 47.86 kB / 414.3 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.2336, allocations: 0 / 414.3 MB, free: 17.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.2336, allocations: 11.98 kB / 414.3 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.2336, allocations: 0 / 414.3 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2336, allocations: 96 / 414.3 MB, free: 17.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/0.2354, allocations: 1.931 MB / 416.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.733e-05/0.2355, allocations: 152.6 kB / 416.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.2355, allocations: 8 kB / 416.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000212/0.2357, allocations: 8 kB / 416.4 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.554e-05/0.2358, allocations: 15.97 kB / 416.4 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.2358, allocations: 8 kB / 416.4 MB, free: 15.48 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002241/0.236, allocations: 315.1 kB / 416.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2361, allocations: 0 / 416.7 MB, free: 15.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004398/0.2365, allocations: 119.8 kB / 416.8 MB, free: 15.05 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008344/0.2373, allocations: 421.3 kB / 417.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004606/0.2378, allocations: 302.4 kB / 417.5 MB, free: 14.49 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2378, allocations: 4 kB / 417.5 MB, free: 14.48 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.238, allocations: 79.91 kB / 417.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.2385, allocations: 101.6 kB / 417.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001239/0.2397, allocations: 1.074 MB / 418.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00017/0.2399, allocations: 0.804 MB / 419.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001518/0.2401, allocations: 46.95 kB / 419.6 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.346e-05/0.2401, allocations: 31.44 kB / 419.7 MB, free: 12.3 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2402, allocations: 4 kB / 419.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of Templates: time 0.008612/0.2488, allocations: 6.109 MB / 425.8 MB, free: 6.293 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches