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.001292/0.001292, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001234/0.001234, allocations: 188.4 kB / 18.67 MB, free: 4.41 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.352/1.352, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 47.92 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.263, allocations: 49.43 MB / 401.4 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003808/0.2669, allocations: 2.749 MB / 404.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.2682, allocations: 0.8294 MB / 405 MB, free: 5.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.2683, allocations: 4 kB / 405 MB, free: 5.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002667/0.2686, allocations: 75.41 kB / 405.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000276/0.2689, allocations: 134.9 kB / 405.2 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.2691, allocations: 83.83 kB / 405.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004575/0.2696, allocations: 450.2 kB / 405.7 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.2698, allocations: 103.4 kB / 405.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001549/0.2699, allocations: 151.5 kB / 406 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.2702, allocations: 179.3 kB / 406.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.2703, allocations: 36 kB / 406.2 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.699e-05/0.2703, allocations: 32 kB / 406.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.532e-05/0.2704, allocations: 87.61 kB / 406.3 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001664/0.2706, allocations: 187.1 kB / 406.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004207/0.271, allocations: 435.7 kB / 406.9 MB, free: 3.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.271, allocations: 7.984 kB / 406.9 MB, free: 3.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.271, allocations: 4 kB / 406.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.271, allocations: 0 / 406.9 MB, free: 3.48 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.001063/0.2721, allocations: 0.6718 MB / 407.6 MB, free: 2.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.2722, allocations: 11.89 kB / 407.6 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.357e-05/0.2723, allocations: 48.47 kB / 407.6 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004278/0.2727, allocations: 303.4 kB / 407.9 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.539e-05/0.2728, allocations: 46.7 kB / 408 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.489e-05/0.2728, allocations: 24.38 kB / 408 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.2733, allocations: 321.6 kB / 408.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.2734, allocations: 4 kB / 408.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/0.2734, allocations: 12 kB / 408.3 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2734, allocations: 8 kB / 408.3 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003892/0.2738, allocations: 197.6 kB / 408.5 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.2752, allocations: 0.8025 MB / 409.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000544/0.2758, allocations: 277.7 kB / 409.6 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002083/0.276, allocations: 120.8 kB / 409.7 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.2761, allocations: 8 kB / 409.7 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.2761, allocations: 38.56 kB / 409.8 MB, free: 420 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.493e-06/0.2761, allocations: 4 kB / 409.8 MB, free: 416 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001033/0.2771, allocations: 479.2 kB / 410.2 MB, free: 15.91 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/0.2773, allocations: 320.4 kB / 410.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002754/0.2776, allocations: 282.9 kB / 410.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.2776, allocations: 33.7 kB / 410.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.2778, allocations: 168.8 kB / 411 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.767e-05/0.2779, allocations: 106.4 kB / 411.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.278, allocations: 69.69 kB / 411.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.2781, allocations: 338.8 kB / 411.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.2783, allocations: 95.89 kB / 411.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002978/0.2786, allocations: 224.9 kB / 411.8 MB, free: 14.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004487/0.2791, allocations: 275.4 kB / 412.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2791, allocations: 0 / 412.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006063/0.2797, allocations: 361.6 kB / 412.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.2797, allocations: 29.7 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.2798, allocations: 4 kB / 412.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/0.2799, allocations: 36.94 kB / 412.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.281, allocations: 159.8 kB / 412.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003701/0.2847, allocations: 3.229 MB / 415.9 MB, free: 9.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.285, allocations: 31.91 kB / 415.9 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.502e-05/0.285, allocations: 19.92 kB / 416 MB, free: 9.703 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.0001881/0.2852, allocations: 153.7 kB / 416.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.334e-05/0.2853, allocations: 31.62 kB / 416.1 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.724e-05/0.2853, allocations: 39.08 kB / 416.2 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.2854, allocations: 8 kB / 416.2 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.2854, allocations: 0 / 416.2 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006627/0.286, allocations: 0.651 MB / 416.8 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004107/0.2864, allocations: 389.2 kB / 417.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.2865, allocations: 4 kB / 417.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00135/0.2878, allocations: 199.8 kB / 417.4 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.579e-05/0.2879, allocations: 28.92 kB / 417.5 MB, free: 8.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.207e-05/0.2879, allocations: 4 kB / 417.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003079/0.291, allocations: 3.037 MB / 420.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.291, allocations: 4.125 kB / 420.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008107/0.2919, allocations: 0.5157 MB / 421 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001527/0.292, allocations: 128.9 kB / 421.1 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.2921, allocations: 15.97 kB / 421.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.2923, allocations: 16 kB / 421.2 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.685e-05/0.2924, allocations: 31.95 kB / 421.2 MB, free: 3.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.2924, allocations: 4 kB / 421.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001872/0.2926, allocations: 202 kB / 421.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2926, allocations: 0 / 421.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004242/0.2931, allocations: 111.8 kB / 421.5 MB, free: 3.668 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.000139/0.2932, allocations: 111.1 kB / 421.6 MB, free: 3.551 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001519/0.2947, allocations: 0.5488 MB / 422.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.2948, allocations: 0 / 422.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001316/0.2961, allocations: 394.3 kB / 422.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.2966, allocations: 88.53 kB / 422.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001617/0.2982, allocations: 0.8731 MB / 423.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.2985, allocations: 0.7762 MB / 424.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.452e-05/0.2986, allocations: 27.44 kB / 424.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2986, allocations: 0 / 424.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of Templates: time 0.008676/0.3073, allocations: 6.816 MB / 431.1 MB, free: 9.973 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/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