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.001817/0.001817, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001392/0.001392, allocations: 209.7 kB / 23.73 MB, free: 4.523 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.385/1.385, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.00149/0.00149, allocations: 51.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2099, allocations: 53.36 MB / 431.1 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00365/0.2136, allocations: 2.563 MB / 433.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2149, allocations: 0.8178 MB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.215, allocations: 4 kB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002359/0.2152, allocations: 71.41 kB / 434.5 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002725/0.2155, allocations: 142.9 kB / 434.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.2157, allocations: 83.83 kB / 434.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004989/0.2162, allocations: 442.4 kB / 435.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.2164, allocations: 61.64 kB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001745/0.2165, allocations: 163.4 kB / 435.4 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002508/0.2168, allocations: 187.2 kB / 435.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.2168, allocations: 32 kB / 435.6 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.85e-05/0.2169, allocations: 36 kB / 435.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.322e-05/0.217, allocations: 67.77 kB / 435.7 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.2171, allocations: 171.2 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004535/0.2176, allocations: 438.3 kB / 436.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2176, allocations: 4 kB / 436.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2176, allocations: 0 / 436.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2176, allocations: 0 / 436.3 MB, free: 1.41 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.001058/0.2187, allocations: 0.6157 MB / 436.9 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.2187, allocations: 8.031 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.411e-05/0.2188, allocations: 75.17 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.813e-05/0.2189, allocations: 40.7 kB / 437 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004048/0.2193, allocations: 250.4 kB / 437.3 MB, free: 368 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.2194, allocations: 102.2 kB / 437.4 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.987e-05/0.2195, allocations: 24.38 kB / 437.4 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007225/0.2202, allocations: 0.6818 MB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.2202, allocations: 0 / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.2202, allocations: 12 kB / 438.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.2202, allocations: 12 kB / 438.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004238/0.2207, allocations: 201.9 kB / 438.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.222, allocations: 0.724 MB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005487/0.2226, allocations: 259.6 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002119/0.2228, allocations: 104.9 kB / 439.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.2228, allocations: 4 kB / 439.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.863e-05/0.2228, allocations: 46.58 kB / 439.4 MB, free: 14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.393e-06/0.2229, allocations: 0 / 439.4 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001015/0.2239, allocations: 414.2 kB / 439.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.224, allocations: 316.4 kB / 440.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.2243, allocations: 284.2 kB / 440.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.2244, allocations: 33.7 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.2245, allocations: 172.8 kB / 440.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.555e-05/0.2246, allocations: 115 kB / 440.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.2247, allocations: 69.66 kB / 440.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2248, allocations: 346.7 kB / 441.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.2251, allocations: 125.6 kB / 441.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/0.2255, allocations: 492 kB / 441.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004532/0.226, allocations: 263.5 kB / 442 MB, free: 11.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.226, allocations: 0 / 442 MB, free: 11.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000654/0.2266, allocations: 391.5 kB / 442.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.855e-05/0.2267, allocations: 33.69 kB / 442.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2267, allocations: 0 / 442.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001479/0.2268, allocations: 44.78 kB / 442.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.2279, allocations: 155.9 kB / 442.6 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003731/0.2316, allocations: 3.022 MB / 445.6 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.2319, allocations: 35.81 kB / 445.7 MB, free: 7.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.2319, allocations: 8 kB / 445.7 MB, free: 7.234 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.000181/0.2321, allocations: 161.1 kB / 445.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.229e-05/0.2321, allocations: 35.81 kB / 445.9 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.088e-05/0.2322, allocations: 39.08 kB / 445.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2322, allocations: 0 / 445.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.2322, allocations: 3.938 kB / 445.9 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007076/0.2329, allocations: 0.6541 MB / 446.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004121/0.2334, allocations: 320.4 kB / 446.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.2334, allocations: 0 / 446.9 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.2347, allocations: 207.7 kB / 447.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.168e-05/0.2348, allocations: 24.84 kB / 447.1 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.036e-05/0.2348, allocations: 4 kB / 447.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003308/0.2381, allocations: 2.826 MB / 449.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2381, allocations: 0 / 449.9 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008394/0.2389, allocations: 0.5091 MB / 450.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.2391, allocations: 67.75 kB / 450.5 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.921e-05/0.2392, allocations: 8.156 kB / 450.5 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002631/0.2394, allocations: 20.02 kB / 450.6 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.678e-05/0.2395, allocations: 32.12 kB / 450.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.2395, allocations: 8 kB / 450.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002052/0.2397, allocations: 199.1 kB / 450.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2397, allocations: 4 kB / 450.8 MB, free: 1.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004164/0.2401, allocations: 107.9 kB / 450.9 MB, free: 1.621 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.001169/0.2413, allocations: 1.061 MB / 452 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001538/0.2428, allocations: 0.5504 MB / 452.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2428, allocations: 0 / 452.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.2443, allocations: 394.3 kB / 452.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005456/0.2448, allocations: 84.53 kB / 453 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.2498, allocations: 3.534 MB / 456.5 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.25, allocations: 169.8 kB / 456.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000152/0.2502, allocations: 38.95 kB / 456.7 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.2503, allocations: 107.4 kB / 456.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2503, allocations: 0 / 456.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04345/0.2938, allocations: 10.97 MB / 467.8 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.35, allocations: 3.938 kB / 467.8 MB, free: 0.7852 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.740946650999831]