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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00152/0.00152, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003078/0.003078, allocations: 55.92 kB / 347.2 MB, free: 10.15 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2999, allocations: 49.17 MB / 396.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003235/0.3031, allocations: 2.771 MB / 399.1 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.3043, allocations: 0.8777 MB / 400 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.3044, allocations: 2.781 kB / 400 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002397/0.3046, allocations: 76.91 kB / 400.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002384/0.3049, allocations: 137.3 kB / 400.2 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.3051, allocations: 92.77 kB / 400.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004276/0.3055, allocations: 434.1 kB / 400.7 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.3056, allocations: 76.36 kB / 400.8 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.3058, allocations: 162.3 kB / 400.9 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002193/0.306, allocations: 180.4 kB / 401.1 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.141e-05/0.3061, allocations: 35.16 kB / 401.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.419e-05/0.3061, allocations: 34.38 kB / 401.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.895e-05/0.3062, allocations: 83.58 kB / 401.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001536/0.3063, allocations: 192 kB / 401.5 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004343/0.3068, allocations: 443.2 kB / 401.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3068, allocations: 0.5156 kB / 401.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3068, allocations: 0 / 401.9 MB, free: 5.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.3068, allocations: 0 / 401.9 MB, free: 5.445 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.000932/0.3077, allocations: 0.6233 MB / 402.5 MB, free: 4.961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3078, allocations: 13.8 kB / 402.5 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.563e-05/0.3078, allocations: 59.14 kB / 402.6 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.309e-05/0.3079, allocations: 47.72 kB / 402.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.3082, allocations: 249.5 kB / 402.9 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.301e-05/0.3083, allocations: 102.5 kB / 403 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/0.3084, allocations: 24.09 kB / 403 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/0.3088, allocations: 338.9 kB / 403.3 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3088, allocations: 3.984 kB / 403.3 MB, free: 4.344 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.3089, allocations: 15.56 kB / 403.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.3089, allocations: 10.47 kB / 403.4 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003815/0.3093, allocations: 208.7 kB / 403.6 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.3105, allocations: 0.7884 MB / 404.4 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004853/0.311, allocations: 253.2 kB / 404.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.3112, allocations: 108.3 kB / 404.7 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.3112, allocations: 9.328 kB / 404.7 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.142e-05/0.3112, allocations: 41.61 kB / 404.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 1.312e-06/0.3112, allocations: 1.281 kB / 404.8 MB, free: 3.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.0008907/0.3121, allocations: 403.2 kB / 405.2 MB, free: 3.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.3122, allocations: 318.4 kB / 405.5 MB, free: 3.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.3124, allocations: 282.3 kB / 405.7 MB, free: 2.867 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.3124, allocations: 33.05 kB / 405.8 MB, free: 2.832 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.713e-05/0.3125, allocations: 176.7 kB / 405.9 MB, free: 2.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.186e-05/0.3126, allocations: 116.4 kB / 406.1 MB, free: 2.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-05/0.3127, allocations: 67 kB / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.733e-05/0.3127, allocations: 347.4 kB / 406.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001945/0.3129, allocations: 92.48 kB / 406.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.3132, allocations: 208.2 kB / 406.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003866/0.3136, allocations: 264.9 kB / 407 MB, free: 1.871 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3136, allocations: 0 / 407 MB, free: 1.871 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005394/0.3141, allocations: 366.8 kB / 407.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.3141, allocations: 33.38 kB / 407.4 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3141, allocations: 5.922 kB / 407.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001382/0.3143, allocations: 35.66 kB / 407.4 MB, free: 1.633 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009379/0.3152, allocations: 165.8 kB / 407.6 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/0.3184, allocations: 3.026 MB / 410.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.3187, allocations: 39.25 kB / 410.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.3187, allocations: 9.172 kB / 410.7 MB, free: 14.83 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.0001968/0.3189, allocations: 156.6 kB / 410.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.117e-05/0.319, allocations: 34.44 kB / 410.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.241e-05/0.3191, allocations: 38.22 kB / 410.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.3191, allocations: 2.812 kB / 410.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3191, allocations: 5.5 kB / 410.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007967/0.3199, allocations: 0.6553 MB / 411.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005394/0.3204, allocations: 361 kB / 411.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3204, allocations: 1.375 kB / 411.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.3217, allocations: 213.7 kB / 412.1 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.606e-05/0.3218, allocations: 22.56 kB / 412.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.3218, allocations: 7.828 kB / 412.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003231/0.325, allocations: 2.845 MB / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.325, allocations: 0 / 415 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008305/0.3258, allocations: 0.5064 MB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.326, allocations: 60.11 kB / 415.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.658e-05/0.326, allocations: 7.859 kB / 415.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002566/0.3263, allocations: 20.33 kB / 415.6 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.131e-05/0.3264, allocations: 27.52 kB / 415.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.3264, allocations: 7.078 kB / 415.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002277/0.3266, allocations: 205.3 kB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3266, allocations: 0 / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004395/0.3271, allocations: 104.7 kB / 415.9 MB, free: 10.57 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.001224/0.3283, allocations: 1.057 MB / 417 MB, free: 9.746 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.3298, allocations: 0.5259 MB / 417.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.3298, allocations: 5.406 kB / 417.5 MB, free: 9.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.3312, allocations: 389.2 kB / 417.9 MB, free: 9.215 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005216/0.3317, allocations: 92.72 kB / 418 MB, free: 9.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005068/0.3368, allocations: 3.4 MB / 421.4 MB, free: 6.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.3372, allocations: 0.7756 MB / 422.2 MB, free: 6.004 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.3374, allocations: 38.45 kB / 422.2 MB, free: 5.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001751/0.3376, allocations: 106.2 kB / 422.3 MB, free: 5.902 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3376, allocations: 5.156 kB / 422.3 MB, free: 5.898 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04409/0.3817, allocations: 9.91 MB / 432.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.06, allocations: 11.92 kB / 432.2 MB, free: 14.16 MB / 350.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.615946577163413]