Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001549/0.001549, allocations: 194.9 kB / 18 MB, free: 5.172 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.395/1.395, allocations: 222.9 MB / 241.7 MB, free: 15.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000905/0.000905, allocations: 51.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2546, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003678/0.2583, allocations: 2.758 MB / 403.5 MB, free: 6.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.2595, allocations: 0.8294 MB / 404.3 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2597, allocations: 4 kB / 404.3 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002639/0.2599, allocations: 79.39 kB / 404.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002721/0.2602, allocations: 130.9 kB / 404.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.2605, allocations: 91.81 kB / 404.6 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.261, allocations: 438.3 kB / 405 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.2613, allocations: 99.3 kB / 405.1 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001804/0.2614, allocations: 155.5 kB / 405.3 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.2617, allocations: 175.3 kB / 405.4 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.434e-05/0.2618, allocations: 36 kB / 405.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.969e-05/0.2619, allocations: 36 kB / 405.5 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.351e-05/0.262, allocations: 87.61 kB / 405.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001988/0.2622, allocations: 191.2 kB / 405.8 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004848/0.2626, allocations: 438.1 kB / 406.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/0.2627, allocations: 4 kB / 406.2 MB, free: 3.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.2627, allocations: 3.938 kB / 406.2 MB, free: 3.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.2627, allocations: 0 / 406.2 MB, free: 3.34 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001207/0.2639, allocations: 0.6832 MB / 406.9 MB, free: 2.602 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.264, allocations: 11.89 kB / 406.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.2641, allocations: 44.7 kB / 407 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004885/0.2646, allocations: 315.5 kB / 407.3 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/0.2647, allocations: 50.69 kB / 407.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.2647, allocations: 24.38 kB / 407.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.2652, allocations: 321.6 kB / 407.7 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.2653, allocations: 8 kB / 407.7 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.2653, allocations: 4 kB / 407.7 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2653, allocations: 8 kB / 407.7 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003922/0.2657, allocations: 197.6 kB / 407.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.267, allocations: 0.8027 MB / 408.7 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.2676, allocations: 271 kB / 408.9 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002308/0.2679, allocations: 120.8 kB / 409.1 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.527e-05/0.2679, allocations: 8 kB / 409.1 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.922e-05/0.268, allocations: 38.56 kB / 409.1 MB, free: 260 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.663e-06/0.268, allocations: 0 / 409.1 MB, free: 260 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001161/0.2691, allocations: 491.3 kB / 409.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.2693, allocations: 312.4 kB / 409.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002741/0.2696, allocations: 279 kB / 410.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.309e-05/0.2696, allocations: 33.7 kB / 410.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.2698, allocations: 172.8 kB / 410.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.549e-05/0.2698, allocations: 107.1 kB / 410.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.27, allocations: 73.69 kB / 410.5 MB, free: 14.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2701, allocations: 338.8 kB / 410.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002405/0.2703, allocations: 91.95 kB / 411 MB, free: 14.26 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003047/0.2706, allocations: 216.9 kB / 411.2 MB, free: 14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004448/0.2711, allocations: 275.4 kB / 411.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2711, allocations: 0 / 411.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006551/0.2718, allocations: 373.8 kB / 411.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.2718, allocations: 29.7 kB / 411.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.2718, allocations: 4 kB / 411.8 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001559/0.272, allocations: 32.84 kB / 411.9 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009776/0.273, allocations: 167.8 kB / 412 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003749/0.2767, allocations: 3.225 MB / 415.3 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003162/0.2771, allocations: 35.88 kB / 415.3 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.69e-05/0.2771, allocations: 8 kB / 415.3 MB, free: 9.551 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002071/0.2773, allocations: 161.7 kB / 415.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.019e-05/0.2774, allocations: 31.81 kB / 415.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.544e-05/0.2775, allocations: 39.08 kB / 415.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.2775, allocations: 4 kB / 415.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2775, allocations: 0 / 415.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007416/0.2783, allocations: 0.6549 MB / 416.2 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.2787, allocations: 385.3 kB / 416.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2787, allocations: 12.12 kB / 416.6 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001236/0.2799, allocations: 207.8 kB / 416.8 MB, free: 7.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.783e-05/0.28, allocations: 24.94 kB / 416.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.2801, allocations: 4 kB / 416.8 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003099/0.2832, allocations: 3.041 MB / 419.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2832, allocations: 0 / 419.8 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008036/0.284, allocations: 0.5159 MB / 420.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.2841, allocations: 141 kB / 420.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/0.2842, allocations: 8 kB / 420.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002706/0.2845, allocations: 15.98 kB / 420.5 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.294e-05/0.2846, allocations: 27.95 kB / 420.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.955e-05/0.2846, allocations: 8 kB / 420.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001905/0.2848, allocations: 202 kB / 420.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2848, allocations: 0 / 420.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.2852, allocations: 107.9 kB / 420.9 MB, free: 3.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001435/0.2854, allocations: 111.1 kB / 421 MB, free: 3.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.2869, allocations: 0.5488 MB / 421.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2869, allocations: 0 / 421.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001352/0.2882, allocations: 406.3 kB / 421.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.2888, allocations: 88.53 kB / 422 MB, free: 2.309 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.2904, allocations: 0.855 MB / 422.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002917/0.2907, allocations: 0.7723 MB / 423.6 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.2908, allocations: 38.95 kB / 423.7 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.035e-05/0.2909, allocations: 31.42 kB / 423.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2909, allocations: 0 / 423.7 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of Templates: time 0.01021/0.3011, allocations: 6.256 MB / 429.9 MB, free: 10.4 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches