Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001112/0.001112, allocations: 105.2 kB / 17.73 MB, free: 5.238 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.001166/0.001166, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 51.94 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1066, allocations: 46.61 MB / 375.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004718/0.1114, allocations: 2.761 MB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.1131, allocations: 0.8653 MB / 378.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003338/0.1135, allocations: 3.938 kB / 378.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004025/0.114, allocations: 75.41 kB / 378.8 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004501/0.1144, allocations: 134.9 kB / 379 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003233/0.1148, allocations: 91.88 kB / 379 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006869/0.1155, allocations: 438.3 kB / 379.5 MB, free: 228 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.1157, allocations: 107.2 kB / 379.6 MB, free: 120 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2296/0.3453, allocations: 154.2 kB / 379.7 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004248/0.3458, allocations: 182.9 kB / 379.9 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.281e-05/0.3459, allocations: 33.28 kB / 379.9 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.886e-05/0.346, allocations: 36.22 kB / 380 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.35e-05/0.346, allocations: 76.02 kB / 380 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002116/0.3463, allocations: 190.2 kB / 380.2 MB, free: 9.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005925/0.3469, allocations: 445.9 kB / 380.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.3469, allocations: 0.9062 kB / 380.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3469, allocations: 2.25 kB / 380.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.3469, allocations: 0 / 380.7 MB, free: 9.754 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.001172/0.3481, allocations: 0.6767 MB / 381.3 MB, free: 9.258 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.083e-05/0.3481, allocations: 13.48 kB / 381.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.718e-05/0.3483, allocations: 38.59 kB / 381.4 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004061/0.3487, allocations: 307.9 kB / 381.7 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.3488, allocations: 52.31 kB / 381.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.966e-05/0.3488, allocations: 24.44 kB / 381.8 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005819/0.3494, allocations: 320.6 kB / 382.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/0.3495, allocations: 2.562 kB / 382.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.3495, allocations: 13.56 kB / 382.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3495, allocations: 4.797 kB / 382.1 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004772/0.35, allocations: 202.1 kB / 382.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.3515, allocations: 0.7901 MB / 383.1 MB, free: 8.551 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005919/0.3521, allocations: 277 kB / 383.4 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002232/0.3524, allocations: 120.2 kB / 383.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.327e-05/0.3524, allocations: 6.531 kB / 383.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3524, allocations: 44.67 kB / 383.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.044e-06/0.3525, allocations: 0 / 383.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001071/0.3535, allocations: 487.8 kB / 384 MB, free: 8.312 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.799e-05/0.3536, allocations: 314.8 kB / 384.3 MB, free: 7.938 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002892/0.3539, allocations: 282.7 kB / 384.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.354, allocations: 34.92 kB / 384.6 MB, free: 7.793 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.501e-05/0.3541, allocations: 168.5 kB / 384.8 MB, free: 7.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.932e-05/0.3541, allocations: 107.2 kB / 384.9 MB, free: 7.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.3543, allocations: 72.33 kB / 385 MB, free: 7.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.978e-05/0.3543, allocations: 346.9 kB / 385.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.3546, allocations: 91.98 kB / 385.4 MB, free: 7.285 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002813/0.3548, allocations: 203.8 kB / 385.6 MB, free: 7.137 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004472/0.3553, allocations: 266.9 kB / 385.9 MB, free: 6.984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.586e-06/0.3553, allocations: 3.938 kB / 385.9 MB, free: 6.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000641/0.356, allocations: 368 kB / 386.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.356, allocations: 33.59 kB / 386.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.356, allocations: 0 / 386.3 MB, free: 6.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001609/0.3562, allocations: 37.27 kB / 386.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009634/0.3572, allocations: 163.4 kB / 386.4 MB, free: 6.746 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/0.3602, allocations: 3.225 MB / 389.7 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.3605, allocations: 37.19 kB / 389.7 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.976e-05/0.3605, allocations: 9.109 kB / 389.7 MB, free: 3.738 MB / 318.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.000154/0.3607, allocations: 158.9 kB / 389.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.806e-05/0.3608, allocations: 34.34 kB / 389.9 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.791e-05/0.3608, allocations: 40.31 kB / 389.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3609, allocations: 3.984 kB / 390 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3609, allocations: 0 / 390 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005627/0.3614, allocations: 0.656 MB / 390.6 MB, free: 2.938 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004465/0.3619, allocations: 390.5 kB / 391 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3619, allocations: 4.516 kB / 391 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001296/0.3632, allocations: 202.5 kB / 391.2 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-05/0.3633, allocations: 26.22 kB / 391.2 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.3633, allocations: 7.453 kB / 391.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002707/0.366, allocations: 3.042 MB / 394.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.366, allocations: 0 / 394.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009336/0.367, allocations: 0.5144 MB / 394.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.3672, allocations: 141.4 kB / 394.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.013e-05/0.3673, allocations: 8.109 kB / 394.9 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.3675, allocations: 16.03 kB / 394.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.521e-05/0.3676, allocations: 23.84 kB / 395 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.041e-05/0.3677, allocations: 9.766 kB / 395 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002403/0.3679, allocations: 199.6 kB / 395.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.3679, allocations: 1.156 kB / 395.2 MB, free: 15.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004846/0.3684, allocations: 116.2 kB / 395.3 MB, free: 15.13 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.0001466/0.3686, allocations: 112.5 kB / 395.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001639/0.3702, allocations: 0.5316 MB / 395.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.3702, allocations: 0.9688 kB / 395.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.3716, allocations: 400.4 kB / 396.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.3722, allocations: 86.22 kB / 396.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.374, allocations: 0.8547 MB / 397.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.3744, allocations: 0.7738 MB / 398 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001785/0.3746, allocations: 39.53 kB / 398.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/0.3747, allocations: 28.09 kB / 398.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3747, allocations: 0 / 398.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of Templates: time 0.01328/0.388, allocations: 6.265 MB / 404.4 MB, free: 11.85 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches