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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001477, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001666/0.001666, allocations: 196 kB / 18 MB, free: 5.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009799/0.0009799, allocations: 43.92 kB / 351.3 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2436, allocations: 49.44 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.004417/0.2481, allocations: 2.857 MB / 403.6 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002098/0.2502, allocations: 1.25 MB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002561/0.2505, allocations: 7.938 kB / 404.8 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004779/0.251, allocations: 179.1 kB / 405 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004528/0.2514, allocations: 202.8 kB / 405.2 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.2519, allocations: 183.2 kB / 405.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004608/0.2524, allocations: 449.9 kB / 405.8 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.2526, allocations: 103.5 kB / 405.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.2528, allocations: 183.3 kB / 406.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.2531, allocations: 211.1 kB / 406.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.863e-05/0.2531, allocations: 32 kB / 406.3 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.2533, allocations: 67.98 kB / 406.4 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.736e-05/0.2534, allocations: 83.67 kB / 406.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001655/0.2536, allocations: 199 kB / 406.7 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004845/0.254, allocations: 491.4 kB / 407.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.2541, allocations: 0 / 407.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2541, allocations: 3.938 kB / 407.2 MB, free: 2.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2541, allocations: 0 / 407.2 MB, free: 2.434 MB / 318.1 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.0009413/0.255, allocations: 0.6931 MB / 407.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.2551, allocations: 11.97 kB / 407.9 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.515e-05/0.2552, allocations: 48.38 kB / 407.9 MB, free: 1.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004531/0.2556, allocations: 342.6 kB / 408.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.2556, allocations: 16.81 kB / 408.3 MB, free: 1.246 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.632e-05/0.2557, allocations: 24.12 kB / 408.3 MB, free: 1.223 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/0.2561, allocations: 285.5 kB / 408.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.2562, allocations: 4 kB / 408.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.2562, allocations: 12 kB / 408.6 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2562, allocations: 4 kB / 408.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/0.2565, allocations: 149.7 kB / 408.7 MB, free: 0.7344 MB / 318.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.001204/0.2577, allocations: 0.8242 MB / 409.5 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000384/0.2581, allocations: 188.6 kB / 409.7 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.2583, allocations: 84.81 kB / 409.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.2583, allocations: 0 / 409.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.2585, allocations: 142.9 kB / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.813e-06/0.2585, allocations: 0 / 410 MB, free: 15.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007779/0.2593, allocations: 403 kB / 410.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.2595, allocations: 316.4 kB / 410.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.2599, allocations: 429.7 kB / 411.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.456e-05/0.2599, allocations: 29.7 kB / 411.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.2601, allocations: 212.1 kB / 411.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.239e-05/0.2601, allocations: 74.91 kB / 411.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.543e-05/0.2602, allocations: 61.64 kB / 411.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2604, allocations: 350.8 kB / 411.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.2605, allocations: 59.98 kB / 411.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002101/0.2607, allocations: 180 kB / 412 MB, free: 13.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/0.261, allocations: 171.3 kB / 412.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.261, allocations: 7.938 kB / 412.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000438/0.2614, allocations: 269.9 kB / 412.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.2615, allocations: 4 kB / 412.5 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.2615, allocations: 7.938 kB / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000115/0.2616, allocations: 36.83 kB / 412.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.2618, allocations: 43.98 kB / 412.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.2632, allocations: 1.57 MB / 414.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.2634, allocations: 27.75 kB / 414.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.783e-05/0.2634, allocations: 12 kB / 414.2 MB, free: 10.85 MB / 334.1 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.0001647/0.2636, allocations: 169.7 kB / 414.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.503e-05/0.2637, allocations: 39.72 kB / 414.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.37e-05/0.2637, allocations: 47.52 kB / 414.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.2638, allocations: 8.172 kB / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.2638, allocations: 0 / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004752/0.2642, allocations: 0.5827 MB / 415 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008297/0.2651, allocations: 0.7144 MB / 415.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.2651, allocations: 0 / 415.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.2653, allocations: 43.97 kB / 415.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2653, allocations: 0 / 415.8 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.2653, allocations: 8 kB / 415.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.2654, allocations: 0 / 415.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2654, allocations: 0 / 415.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005363/0.2659, allocations: 406.7 kB / 416.2 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.266, allocations: 132.6 kB / 416.3 MB, free: 8.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.511e-05/0.2661, allocations: 8 kB / 416.3 MB, free: 8.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.2663, allocations: 15.98 kB / 416.3 MB, free: 8.484 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.2664, allocations: 11.98 kB / 416.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.2664, allocations: 8 kB / 416.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000288/0.2667, allocations: 311.1 kB / 416.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2667, allocations: 0 / 416.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003564/0.267, allocations: 92.06 kB / 416.7 MB, free: 8.074 MB / 334.1 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.0008693/0.2679, allocations: 437.5 kB / 417.2 MB, free: 7.797 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005288/0.2685, allocations: 316.6 kB / 417.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.2685, allocations: 0 / 417.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000149/0.2686, allocations: 83.91 kB / 417.5 MB, free: 7.395 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005289/0.2692, allocations: 109.5 kB / 417.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.2704, allocations: 0.7798 MB / 418.4 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.2708, allocations: 0.7921 MB / 419.2 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001378/0.2709, allocations: 46.94 kB / 419.3 MB, free: 5.617 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.117e-05/0.271, allocations: 39.42 kB / 419.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.271, allocations: 0 / 419.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of Templates: time 0.01032/0.2813, allocations: 6.297 MB / 425.6 MB, free: 15.39 MB / 350.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TestOpenTank/TestOpenTank.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches