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.001484/0.001484, allocations: 106 kB / 18.4 MB, free: 4.648 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.002123/0.002123, allocations: 190.5 kB / 19.33 MB, free: 3.727 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.564/1.564, allocations: 205.1 MB / 225.2 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.001354/0.001354, allocations: 55.92 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.09175, allocations: 46.61 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.0046/0.0964, allocations: 2.761 MB / 378.6 MB, free: 1.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.09825, allocations: 0.8652 MB / 379.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003455/0.09862, allocations: 0 / 379.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003872/0.09907, allocations: 75.41 kB / 379.5 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004473/0.09953, allocations: 134.9 kB / 379.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004083/0.09995, allocations: 91.81 kB / 379.7 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007472/0.1007, allocations: 434.4 kB / 380.1 MB, free: 232 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002469/0.101, allocations: 107.2 kB / 380.2 MB, free: 124 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1926/0.2936, allocations: 158.7 kB / 380.4 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004688/0.2941, allocations: 178.1 kB / 380.6 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001799/0.2943, allocations: 34.16 kB / 380.6 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.2945, allocations: 35.41 kB / 380.6 MB, free: 9.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.2946, allocations: 79.52 kB / 380.7 MB, free: 9.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003438/0.295, allocations: 188.5 kB / 380.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007943/0.2958, allocations: 444.1 kB / 381.3 MB, free: 9.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.2958, allocations: 4.641 kB / 381.3 MB, free: 9.801 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2958, allocations: 0 / 381.3 MB, free: 9.801 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.165e-05/0.2958, allocations: 4.969 kB / 381.3 MB, free: 9.801 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.001533/0.2974, allocations: 0.6724 MB / 382 MB, free: 9.305 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.2974, allocations: 12.95 kB / 382 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.2976, allocations: 43.19 kB / 382.1 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.2981, allocations: 307.1 kB / 382.4 MB, free: 9.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.2983, allocations: 48.59 kB / 382.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.2983, allocations: 22.25 kB / 382.4 MB, free: 9.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005727/0.2989, allocations: 321.5 kB / 382.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.2989, allocations: 0 / 382.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.299, allocations: 14.84 kB / 382.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.299, allocations: 5.812 kB / 382.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005005/0.2995, allocations: 204.8 kB / 383 MB, free: 8.891 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.3012, allocations: 0.7913 MB / 383.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005892/0.3018, allocations: 273.8 kB / 384 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002198/0.302, allocations: 121.9 kB / 384.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.3021, allocations: 5.828 kB / 384.2 MB, free: 8.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.3021, allocations: 40.09 kB / 384.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 3.737e-06/0.3021, allocations: 2.672 kB / 384.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001077/0.3032, allocations: 487.6 kB / 384.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/0.3033, allocations: 315.9 kB / 385 MB, free: 7.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.3036, allocations: 283.2 kB / 385.3 MB, free: 7.875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.178e-05/0.3036, allocations: 32.58 kB / 385.3 MB, free: 7.844 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.3037, allocations: 169.8 kB / 385.5 MB, free: 7.742 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.273e-05/0.3038, allocations: 111.3 kB / 385.6 MB, free: 7.672 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.3039, allocations: 65.95 kB / 385.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.954e-05/0.304, allocations: 339.6 kB / 386 MB, free: 7.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001983/0.3042, allocations: 98.44 kB / 386.1 MB, free: 7.324 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002771/0.3045, allocations: 206.9 kB / 386.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004154/0.3049, allocations: 265.6 kB / 386.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3049, allocations: 5.906 kB / 386.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006348/0.3056, allocations: 370 kB / 386.9 MB, free: 6.828 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/0.3056, allocations: 33.53 kB / 386.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3056, allocations: 1.625 kB / 386.9 MB, free: 6.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001705/0.3058, allocations: 36.83 kB / 387 MB, free: 6.781 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/0.3069, allocations: 163.8 kB / 387.1 MB, free: 6.773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003247/0.3101, allocations: 3.219 MB / 390.3 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004387/0.3106, allocations: 40.34 kB / 390.4 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.3107, allocations: 9.547 kB / 390.4 MB, free: 3.766 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.0002497/0.3109, allocations: 158.7 kB / 390.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.3111, allocations: 38.69 kB / 390.6 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.936e-05/0.3112, allocations: 37.64 kB / 390.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.3112, allocations: 3.438 kB / 390.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3112, allocations: 0.7031 kB / 390.6 MB, free: 3.578 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006365/0.3118, allocations: 0.6486 MB / 391.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000555/0.3124, allocations: 387.2 kB / 391.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.3124, allocations: 2.078 kB / 391.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/0.3137, allocations: 210.2 kB / 391.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.639e-05/0.3138, allocations: 27.09 kB / 391.9 MB, free: 2.668 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.3138, allocations: 7.656 kB / 391.9 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002805/0.3166, allocations: 3.04 MB / 394.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/0.3167, allocations: 1.344 kB / 394.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009974/0.3177, allocations: 0.5126 MB / 395.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002427/0.3179, allocations: 138.4 kB / 395.6 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.088e-05/0.318, allocations: 13.39 kB / 395.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.3183, allocations: 14.52 kB / 395.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-05/0.3185, allocations: 26.75 kB / 395.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.3185, allocations: 10.81 kB / 395.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002654/0.3188, allocations: 200.3 kB / 395.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3188, allocations: 0 / 395.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005592/0.3193, allocations: 107.5 kB / 395.9 MB, free: 15.18 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.0001695/0.3195, allocations: 113.6 kB / 396.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.3213, allocations: 0.535 MB / 396.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.3213, allocations: 5.469 kB / 396.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.3227, allocations: 397.4 kB / 397 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006578/0.3234, allocations: 88.67 kB / 397.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002015/0.3254, allocations: 0.869 MB / 397.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004099/0.3259, allocations: 0.7751 MB / 398.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.326, allocations: 33.78 kB / 398.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of SimCode: time 7.72e-07/0.326, allocations: 0 / 398.7 MB, free: 13.38 MB / 334.1 MB Notification: Performance of Templates: time 0.014/0.34, allocations: 6.836 MB / 405.6 MB, free: 11.37 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/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