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: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 109.6 kB / 17.06 MB, free: 5.793 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.001272/0.001272, allocations: 200 kB / 18.01 MB, free: 4.918 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.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 47.91 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2643, allocations: 49.42 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003926/0.2683, allocations: 2.762 MB / 403 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2696, allocations: 0.8256 MB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.2697, allocations: 7.938 kB / 403.8 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.27, allocations: 71.45 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002783/0.2703, allocations: 138.9 kB / 404 MB, free: 5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.2705, allocations: 83.88 kB / 404.1 MB, free: 4.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005659/0.2711, allocations: 442.3 kB / 404.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.2714, allocations: 95.36 kB / 404.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002472/0.2716, allocations: 159.5 kB / 404.8 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00032/0.272, allocations: 179.2 kB / 405 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.279e-05/0.2721, allocations: 36 kB / 405 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.353e-05/0.2722, allocations: 39.94 kB / 405 MB, free: 3.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.2723, allocations: 75.75 kB / 405.1 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002646/0.2726, allocations: 191.1 kB / 405.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005/0.2731, allocations: 445.3 kB / 405.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2731, allocations: 0 / 405.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2731, allocations: 0 / 405.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.2731, allocations: 0 / 405.7 MB, free: 3.285 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.001093/0.2742, allocations: 0.6901 MB / 406.4 MB, free: 2.543 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2742, allocations: 12.03 kB / 406.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.745e-05/0.2743, allocations: 71.17 kB / 406.5 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.2744, allocations: 44.7 kB / 406.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.2748, allocations: 307.6 kB / 406.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.511e-05/0.2749, allocations: 50.83 kB / 406.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.275, allocations: 24.38 kB / 406.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005415/0.2755, allocations: 339.2 kB / 407.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2756, allocations: 0 / 407.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.026e-05/0.2756, allocations: 12 kB / 407.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2756, allocations: 8 kB / 407.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004337/0.2761, allocations: 214 kB / 407.5 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.2774, allocations: 0.8188 MB / 408.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005639/0.278, allocations: 278.9 kB / 408.6 MB, free: 248 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.2783, allocations: 116.8 kB / 408.7 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.2783, allocations: 15.98 kB / 408.7 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.2784, allocations: 38.56 kB / 408.7 MB, free: 64 kB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.492e-06/0.2784, allocations: 0 / 408.7 MB, free: 64 kB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.001076/0.2794, allocations: 479.5 kB / 409.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.2796, allocations: 324.4 kB / 409.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.2799, allocations: 279 kB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.986e-05/0.28, allocations: 37.64 kB / 409.8 MB, free: 14.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.2801, allocations: 172.8 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.364e-05/0.2802, allocations: 111 kB / 410.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.2803, allocations: 65.7 kB / 410.2 MB, free: 14.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.2805, allocations: 354.7 kB / 410.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002114/0.2807, allocations: 87.95 kB / 410.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.281, allocations: 209 kB / 410.8 MB, free: 13.8 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004684/0.2815, allocations: 271.5 kB / 411.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2815, allocations: 0 / 411.1 MB, free: 13.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006778/0.2822, allocations: 373.7 kB / 411.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.843e-05/0.2823, allocations: 33.7 kB / 411.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.2823, allocations: 4 kB / 411.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.2824, allocations: 32.84 kB / 411.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009811/0.2834, allocations: 167.8 kB / 411.7 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003904/0.2873, allocations: 3.232 MB / 414.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.2876, allocations: 31.88 kB / 414.9 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.83e-05/0.2877, allocations: 12 kB / 414.9 MB, free: 9.348 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.0001995/0.2879, allocations: 157.7 kB / 415.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.566e-05/0.288, allocations: 31.91 kB / 415.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.629e-05/0.288, allocations: 43.16 kB / 415.2 MB, free: 9.109 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2881, allocations: 8.125 kB / 415.2 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.2881, allocations: 7.938 kB / 415.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007279/0.2888, allocations: 0.6511 MB / 415.8 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004478/0.2893, allocations: 385.3 kB / 416.2 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2893, allocations: 0 / 416.2 MB, free: 7.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/0.2906, allocations: 211.7 kB / 416.4 MB, free: 7.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.897e-05/0.2906, allocations: 24.84 kB / 416.4 MB, free: 7.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.2907, allocations: 8 kB / 416.4 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003345/0.294, allocations: 3.041 MB / 419.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.294, allocations: 3.984 kB / 419.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008731/0.2949, allocations: 0.5042 MB / 420 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.2951, allocations: 140.9 kB / 420.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.2952, allocations: 8 kB / 420.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00026/0.2954, allocations: 19.92 kB / 420.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.735e-05/0.2955, allocations: 27.84 kB / 420.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.2955, allocations: 15.98 kB / 420.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002137/0.2957, allocations: 198 kB / 420.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2957, allocations: 0 / 420.4 MB, free: 3.398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004156/0.2962, allocations: 111.9 kB / 420.5 MB, free: 3.289 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.001232/0.2974, allocations: 1.06 MB / 421.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.299, allocations: 0.5449 MB / 422.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.299, allocations: 4.188 kB / 422.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.3004, allocations: 398.8 kB / 422.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.3009, allocations: 96.47 kB / 422.6 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00485/0.3058, allocations: 3.398 MB / 426 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.3063, allocations: 0.784 MB / 426.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001677/0.3064, allocations: 34.97 kB / 426.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.3066, allocations: 107.4 kB / 426.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3066, allocations: 4 kB / 426.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03848/0.3451, allocations: 9.607 MB / 436.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.13, allocations: 11 kB / 436.5 MB, free: 3.281 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > 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