Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00183/0.00183, allocations: 119.6 kB / 20.44 MB, free: 1.301 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.002289/0.002289, allocations: 202.9 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.401/1.401, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002335/0.002335, allocations: 47.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2614, allocations: 53.37 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004487/0.2659, allocations: 2.788 MB / 433.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.2676, allocations: 0.8684 MB / 434.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002365/0.2679, allocations: 0 / 434.8 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003262/0.2682, allocations: 79.39 kB / 434.9 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000396/0.2686, allocations: 146.8 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000267/0.2688, allocations: 79.89 kB / 435.1 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006384/0.2695, allocations: 446.3 kB / 435.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002652/0.2697, allocations: 57.52 kB / 435.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.27, allocations: 163.5 kB / 435.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003154/0.2703, allocations: 183.2 kB / 435.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.223e-05/0.2704, allocations: 36 kB / 435.9 MB, free: 2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.636e-05/0.2705, allocations: 36 kB / 436 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-05/0.2705, allocations: 79.73 kB / 436.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.2707, allocations: 187.1 kB / 436.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005017/0.2712, allocations: 446.2 kB / 436.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2712, allocations: 0 / 436.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2712, allocations: 0 / 436.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.2713, allocations: 0 / 436.7 MB, free: 1.266 MB / 334.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.001162/0.2724, allocations: 0.6118 MB / 437.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.158e-05/0.2725, allocations: 12.03 kB / 437.3 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001262/0.2726, allocations: 67.12 kB / 437.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.968e-05/0.2727, allocations: 48.66 kB / 437.4 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004642/0.2732, allocations: 250.5 kB / 437.7 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001322/0.2733, allocations: 102.2 kB / 437.8 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.524e-05/0.2733, allocations: 28.38 kB / 437.8 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.2739, allocations: 330.4 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.2739, allocations: 4 kB / 438.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.2739, allocations: 12 kB / 438.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.2739, allocations: 4 kB / 438.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004346/0.2744, allocations: 213.8 kB / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.2759, allocations: 0.8019 MB / 439.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005537/0.2764, allocations: 251.8 kB / 439.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.2766, allocations: 108.8 kB / 439.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.2767, allocations: 4 kB / 439.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.2767, allocations: 38.56 kB / 439.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.272e-06/0.2767, allocations: 0 / 439.5 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001019/0.2777, allocations: 410.2 kB / 439.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000171/0.2779, allocations: 316.4 kB / 440.2 MB, free: 13.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/0.2782, allocations: 280.2 kB / 440.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.2783, allocations: 33.7 kB / 440.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.2784, allocations: 180.7 kB / 440.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.246e-05/0.2785, allocations: 107 kB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.2786, allocations: 77.64 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.2788, allocations: 342.8 kB / 441.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002155/0.279, allocations: 91.95 kB / 441.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.2793, allocations: 217.2 kB / 441.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004567/0.2797, allocations: 263.5 kB / 441.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2798, allocations: 0 / 441.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006621/0.2804, allocations: 369.8 kB / 442.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.485e-05/0.2804, allocations: 33.69 kB / 442.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2805, allocations: 0 / 442.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001462/0.2806, allocations: 40.84 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009618/0.2816, allocations: 163.9 kB / 442.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004096/0.2857, allocations: 3.029 MB / 445.4 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.286, allocations: 35.81 kB / 445.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.286, allocations: 12 kB / 445.5 MB, free: 7.848 MB / 350.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.0002087/0.2862, allocations: 153.8 kB / 445.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.128e-05/0.2863, allocations: 31.81 kB / 445.7 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.357e-05/0.2863, allocations: 39.08 kB / 445.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2864, allocations: 4 kB / 445.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.2864, allocations: 4.125 kB / 445.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000736/0.2871, allocations: 0.654 MB / 446.4 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004701/0.2876, allocations: 364.3 kB / 446.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2876, allocations: 4 kB / 446.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001265/0.2888, allocations: 211.7 kB / 446.9 MB, free: 6.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.225e-05/0.2889, allocations: 24.84 kB / 446.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.2889, allocations: 4 kB / 446.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003197/0.2921, allocations: 2.838 MB / 449.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2921, allocations: 0 / 449.8 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008502/0.293, allocations: 0.5053 MB / 450.3 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.2931, allocations: 67.75 kB / 450.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.712e-05/0.2932, allocations: 4 kB / 450.4 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.2934, allocations: 23.86 kB / 450.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.863e-05/0.2935, allocations: 23.95 kB / 450.4 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/0.2935, allocations: 12 kB / 450.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000212/0.2937, allocations: 199.1 kB / 450.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2937, allocations: 0 / 450.6 MB, free: 2.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.2941, allocations: 115.9 kB / 450.7 MB, free: 2.18 MB / 350.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.001157/0.2953, allocations: 1.057 MB / 451.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.2968, allocations: 0.5214 MB / 452.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.2968, allocations: 0 / 452.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.2982, allocations: 390.3 kB / 452.7 MB, free: 156 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005111/0.2987, allocations: 104.8 kB / 452.8 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00542/0.3042, allocations: 3.411 MB / 456.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.3046, allocations: 0.7799 MB / 457 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001624/0.3048, allocations: 34.95 kB / 457 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.305, allocations: 111.4 kB / 457.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.305, allocations: 0 / 457.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04841/0.3534, allocations: 9.91 MB / 467 MB, free: 1.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.17, allocations: 3.984 kB / 467 MB, free: 1.895 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.63965943083167]