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.001474/0.001474, allocations: 112.5 kB / 17.69 MB, free: 5.438 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.001641/0.001641, allocations: 191 kB / 18.63 MB, free: 4.508 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.308/1.308, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009849/0.0009851, allocations: 48.56 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08322/0.08422, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003469/0.08773, allocations: 2.753 MB / 354.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.08887, allocations: 0.8256 MB / 355.1 MB, free: 104 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.089, allocations: 7.938 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.08923, allocations: 75.41 kB / 355.2 MB, free: 20 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002533/0.0895, allocations: 134.9 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.08969, allocations: 87.81 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004254/0.09013, allocations: 440.3 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.09031, allocations: 103.3 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001486/0.09046, allocations: 159.5 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.09068, allocations: 183.2 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.111e-05/0.09073, allocations: 36 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.961e-05/0.0908, allocations: 36 kB / 356.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.33e-05/0.09087, allocations: 67.77 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.09104, allocations: 195.1 kB / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.09141, allocations: 442.5 kB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.09142, allocations: 0 / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.09144, allocations: 4 kB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.311e-06/0.09145, allocations: 3.938 kB / 357 MB, free: 14.16 MB / 302.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.000999/0.09245, allocations: 0.6794 MB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.09249, allocations: 15.89 kB / 357.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.67e-05/0.09257, allocations: 40.56 kB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003778/0.09296, allocations: 299.4 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.837e-05/0.09306, allocations: 54.69 kB / 358.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.312e-05/0.09311, allocations: 20.28 kB / 358.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.09362, allocations: 321.6 kB / 358.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.09364, allocations: 0 / 358.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.172e-05/0.09368, allocations: 15.98 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.09369, allocations: 4 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004123/0.09411, allocations: 205.6 kB / 358.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.09542, allocations: 0.7948 MB / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005265/0.09596, allocations: 271.5 kB / 359.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002136/0.09619, allocations: 120.8 kB / 359.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.09623, allocations: 11.97 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.09626, allocations: 38.56 kB / 359.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.603e-06/0.09627, allocations: 4 kB / 359.9 MB, free: 11.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.001011/0.09729, allocations: 487.2 kB / 360.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001897/0.09749, allocations: 312.4 kB / 360.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.09777, allocations: 283 kB / 360.9 MB, free: 9.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.829e-05/0.09782, allocations: 37.7 kB / 361 MB, free: 9.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001126/0.09794, allocations: 168.6 kB / 361.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.74e-05/0.09801, allocations: 98.56 kB / 361.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.09813, allocations: 61.7 kB / 361.3 MB, free: 9.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.09826, allocations: 346.8 kB / 361.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/0.09851, allocations: 87.95 kB / 361.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002905/0.0988, allocations: 216.6 kB / 361.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004288/0.09924, allocations: 271.4 kB / 362.2 MB, free: 8.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.09925, allocations: 0 / 362.2 MB, free: 8.566 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005911/0.09985, allocations: 365.7 kB / 362.5 MB, free: 8.195 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.0999, allocations: 37.64 kB / 362.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.09991, allocations: 0 / 362.6 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001482/0.1001, allocations: 48.86 kB / 362.6 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009399/0.101, allocations: 155.8 kB / 362.8 MB, free: 7.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003606/0.1046, allocations: 3.232 MB / 366 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.1049, allocations: 31.78 kB / 366 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.1049, allocations: 12 kB / 366.1 MB, free: 4.398 MB / 302.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.000166/0.1051, allocations: 157.7 kB / 366.2 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.586e-05/0.1052, allocations: 35.62 kB / 366.2 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.427e-05/0.1053, allocations: 35.08 kB / 366.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.1053, allocations: 8 kB / 366.3 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1053, allocations: 192 / 366.3 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006324/0.1059, allocations: 0.65 MB / 366.9 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003966/0.1063, allocations: 389.2 kB / 367.3 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1064, allocations: 0 / 367.3 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/0.1076, allocations: 207.8 kB / 367.5 MB, free: 2.766 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.002e-05/0.1077, allocations: 24.8 kB / 367.5 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.1077, allocations: 11.98 kB / 367.6 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1531/0.2608, allocations: 3.027 MB / 370.6 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2608, allocations: 1.375 kB / 370.6 MB, free: 24.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000896/0.2618, allocations: 0.5144 MB / 371.1 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.2619, allocations: 134.6 kB / 371.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.2619, allocations: 9.875 kB / 371.2 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.2622, allocations: 16.25 kB / 371.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.992e-05/0.2623, allocations: 22.72 kB / 371.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.2623, allocations: 10.08 kB / 371.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.2625, allocations: 203.4 kB / 371.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2625, allocations: 0 / 371.5 MB, free: 24.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004349/0.263, allocations: 101.8 kB / 371.6 MB, free: 24.25 MB / 302.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.0001087/0.2631, allocations: 111.3 kB / 371.7 MB, free: 24.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001459/0.2646, allocations: 0.5399 MB / 372.2 MB, free: 23.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2646, allocations: 1.875 kB / 372.2 MB, free: 23.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.266, allocations: 401.2 kB / 372.6 MB, free: 23.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004819/0.2665, allocations: 89.53 kB / 372.7 MB, free: 23.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.268, allocations: 0.8559 MB / 373.6 MB, free: 23.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001802/0.2682, allocations: 0.7807 MB / 374.3 MB, free: 22.81 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.2684, allocations: 37.39 kB / 374.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.997e-05/0.2684, allocations: 27.8 kB / 374.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of SimCode: time 1.112e-06/0.2684, allocations: 0 / 374.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of Templates: time 0.01059/0.279, allocations: 6.196 MB / 380.6 MB, free: 21.91 MB / 302.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 -s cvode -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