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.001121/0.001122, allocations: 110 kB / 17.06 MB, free: 6.023 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.001095/0.001095, allocations: 191 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.328/1.328, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 47.92 kB / 351.3 MB, free: 3.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2547, allocations: 49.43 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank): time 0.00432/0.2591, allocations: 2.866 MB / 403.6 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00218/0.2613, allocations: 1.258 MB / 404.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002718/0.2616, allocations: 7.938 kB / 404.8 MB, free: 4.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005244/0.2621, allocations: 179.1 kB / 405 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005225/0.2627, allocations: 210.8 kB / 405.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004479/0.2632, allocations: 167.5 kB / 405.4 MB, free: 4.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005296/0.2637, allocations: 453.9 kB / 405.8 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.2639, allocations: 107.5 kB / 405.9 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002401/0.2641, allocations: 175.3 kB / 406.1 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002713/0.2644, allocations: 215.1 kB / 406.3 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.137e-05/0.2645, allocations: 32 kB / 406.3 MB, free: 3.246 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.2646, allocations: 71.97 kB / 406.4 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001014/0.2647, allocations: 83.69 kB / 406.5 MB, free: 3.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.2649, allocations: 198.9 kB / 406.7 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005106/0.2655, allocations: 483.4 kB / 407.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2655, allocations: 0 / 407.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2655, allocations: 0 / 407.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.2655, allocations: 4 kB / 407.2 MB, free: 2.426 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.0009974/0.2665, allocations: 0.693 MB / 407.9 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2665, allocations: 8.031 kB / 407.9 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.2667, allocations: 48.38 kB / 407.9 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004781/0.2671, allocations: 342.6 kB / 408.2 MB, free: 1.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.2672, allocations: 20.75 kB / 408.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.2672, allocations: 20.12 kB / 408.3 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004585/0.2677, allocations: 293.5 kB / 408.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.668e-05/0.2677, allocations: 0 / 408.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.847e-05/0.2678, allocations: 12 kB / 408.6 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.2678, allocations: 8 kB / 408.6 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002955/0.2681, allocations: 145.6 kB / 408.7 MB, free: 0.7266 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.001314/0.2694, allocations: 0.8243 MB / 409.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/0.2698, allocations: 194.2 kB / 409.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.2699, allocations: 80.83 kB / 409.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.918e-05/0.27, allocations: 4 kB / 409.8 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.2702, allocations: 142.9 kB / 410 MB, free: 15.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 3.156e-06/0.2702, allocations: 4 kB / 410 MB, free: 15.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008167/0.2711, allocations: 399 kB / 410.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/0.2712, allocations: 312.4 kB / 410.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.2717, allocations: 433.7 kB / 411.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.2717, allocations: 33.7 kB / 411.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.2719, allocations: 204.1 kB / 411.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.562e-05/0.2719, allocations: 78.91 kB / 411.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.844e-05/0.272, allocations: 57.7 kB / 411.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.2722, allocations: 346.8 kB / 411.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.2723, allocations: 63.97 kB / 411.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002333/0.2726, allocations: 180 kB / 412 MB, free: 13.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002908/0.2729, allocations: 171.3 kB / 412.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2729, allocations: 3.938 kB / 412.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004706/0.2734, allocations: 277.8 kB / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.2734, allocations: 8 kB / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.2734, allocations: 0 / 412.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001376/0.2735, allocations: 28.84 kB / 412.5 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/0.2738, allocations: 51.97 kB / 412.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/0.2752, allocations: 1.574 MB / 414.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001956/0.2754, allocations: 27.78 kB / 414.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.2755, allocations: 12 kB / 414.2 MB, free: 10.84 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.000178/0.2757, allocations: 172.2 kB / 414.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.449e-05/0.2757, allocations: 35.62 kB / 414.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.516e-05/0.2758, allocations: 43.59 kB / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.2758, allocations: 3.938 kB / 414.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2758, allocations: 3.984 kB / 414.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000467/0.2763, allocations: 0.5788 MB / 415 MB, free: 9.891 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008213/0.2771, allocations: 0.7144 MB / 415.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2771, allocations: 96 / 415.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002052/0.2773, allocations: 47.91 kB / 415.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2774, allocations: 0 / 415.8 MB, free: 9.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.2774, allocations: 12 kB / 415.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2774, allocations: 0 / 415.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2774, allocations: 0 / 415.8 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005251/0.2779, allocations: 402.8 kB / 416.2 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.2781, allocations: 140.6 kB / 416.3 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.301e-05/0.2781, allocations: 4 kB / 416.3 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.2783, allocations: 15.98 kB / 416.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.967e-05/0.2784, allocations: 16.22 kB / 416.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.2784, allocations: 4 kB / 416.4 MB, free: 8.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003023/0.2787, allocations: 311.1 kB / 416.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2787, allocations: 0 / 416.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003966/0.2791, allocations: 92 kB / 416.7 MB, free: 8.062 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.0009294/0.2801, allocations: 428.8 kB / 417.2 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000563/0.2806, allocations: 324.6 kB / 417.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2807, allocations: 0 / 417.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.2808, allocations: 87.91 kB / 417.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005296/0.2813, allocations: 101.6 kB / 417.7 MB, free: 7.281 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.2826, allocations: 0.7837 MB / 418.5 MB, free: 6.469 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.2829, allocations: 0.7921 MB / 419.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001418/0.2831, allocations: 42.95 kB / 419.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.011e-05/0.2832, allocations: 31.44 kB / 419.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2832, allocations: 0 / 419.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of Templates: time 0.01028/0.2935, allocations: 6.147 MB / 425.5 MB, free: 15.54 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