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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001633/0.001633, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 189.9 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 43.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2251, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004232/0.2293, allocations: 2.775 MB / 425.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.2307, allocations: 0.8411 MB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.2309, allocations: 4 kB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002792/0.2312, allocations: 71.41 kB / 426.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00031/0.2315, allocations: 142.9 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.2317, allocations: 87.81 kB / 426.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005841/0.2323, allocations: 434.4 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.2324, allocations: 75.88 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.2327, allocations: 163.4 kB / 427.2 MB, free: 10 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002753/0.2329, allocations: 175.3 kB / 427.4 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.209e-05/0.233, allocations: 36 kB / 427.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.376e-05/0.2331, allocations: 32 kB / 427.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.806e-05/0.2331, allocations: 83.69 kB / 427.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.2333, allocations: 191.1 kB / 427.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005209/0.2339, allocations: 442.7 kB / 428.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.627e-06/0.2339, allocations: 7.922 kB / 428.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2339, allocations: 0 / 428.1 MB, free: 9.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.2339, allocations: 0 / 428.1 MB, free: 9.055 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.001173/0.2351, allocations: 0.6118 MB / 428.7 MB, free: 8.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.2351, allocations: 12.03 kB / 428.8 MB, free: 8.395 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.856e-05/0.2352, allocations: 67.17 kB / 428.8 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.44e-05/0.2353, allocations: 48.7 kB / 428.9 MB, free: 8.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004692/0.2358, allocations: 250.4 kB / 429.1 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.2359, allocations: 106.2 kB / 429.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.653e-05/0.236, allocations: 24.38 kB / 429.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005674/0.2365, allocations: 334.4 kB / 429.6 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.2365, allocations: 0 / 429.6 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.2366, allocations: 12 kB / 429.6 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.2366, allocations: 4 kB / 429.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004473/0.237, allocations: 205.9 kB / 429.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.2386, allocations: 0.7942 MB / 430.6 MB, free: 6.434 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005693/0.2392, allocations: 259 kB / 430.8 MB, free: 6.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.2394, allocations: 104.8 kB / 430.9 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.198e-05/0.2394, allocations: 8 kB / 430.9 MB, free: 6.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.2394, allocations: 38.59 kB / 431 MB, free: 6.012 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.673e-06/0.2394, allocations: 8 kB / 431 MB, free: 6.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001073/0.2405, allocations: 398.2 kB / 431.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001887/0.2407, allocations: 320.4 kB / 431.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003188/0.241, allocations: 280.2 kB / 432 MB, free: 4.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.2411, allocations: 33.7 kB / 432 MB, free: 4.898 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.2412, allocations: 176.8 kB / 432.2 MB, free: 4.723 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.2413, allocations: 114.9 kB / 432.3 MB, free: 4.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.2414, allocations: 73.62 kB / 432.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.2416, allocations: 342.8 kB / 432.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.2418, allocations: 95.89 kB / 432.8 MB, free: 4.094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.2421, allocations: 212.6 kB / 433 MB, free: 3.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004744/0.2426, allocations: 267.5 kB / 433.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.2426, allocations: 0 / 433.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006986/0.2433, allocations: 365.8 kB / 433.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.812e-05/0.2434, allocations: 29.7 kB / 433.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2434, allocations: 0 / 433.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001656/0.2435, allocations: 40.94 kB / 433.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.2446, allocations: 163.8 kB / 433.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003881/0.2485, allocations: 3.023 MB / 436.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.2488, allocations: 31.86 kB / 436.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.2488, allocations: 15.98 kB / 436.9 MB, free: 15.65 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.0002027/0.249, allocations: 149.8 kB / 437.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.731e-05/0.2491, allocations: 39.84 kB / 437.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.135e-05/0.2492, allocations: 39.08 kB / 437.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.2492, allocations: 4 kB / 437.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2492, allocations: 7.938 kB / 437.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007598/0.25, allocations: 0.651 MB / 437.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.2504, allocations: 360.3 kB / 438.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2504, allocations: 0 / 438.1 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.2517, allocations: 211.7 kB / 438.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.633e-05/0.2518, allocations: 20.84 kB / 438.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.2518, allocations: 11.98 kB / 438.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003352/0.2552, allocations: 2.838 MB / 441.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2552, allocations: 4.125 kB / 441.2 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009268/0.2561, allocations: 0.512 MB / 441.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.2563, allocations: 59.75 kB / 441.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.714e-05/0.2563, allocations: 8 kB / 441.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.2566, allocations: 19.92 kB / 441.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.2e-05/0.2567, allocations: 27.95 kB / 441.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.2567, allocations: 12 kB / 441.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.2569, allocations: 199.1 kB / 442.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2569, allocations: 0 / 442.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004657/0.2574, allocations: 111.9 kB / 442.2 MB, free: 9.98 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.001291/0.2587, allocations: 1.061 MB / 443.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.2604, allocations: 0.5253 MB / 443.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2604, allocations: 96 / 443.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00157/0.262, allocations: 398.8 kB / 444.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005946/0.2625, allocations: 92.47 kB / 444.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005239/0.2678, allocations: 3.407 MB / 447.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.2682, allocations: 0.7762 MB / 448.4 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.2684, allocations: 38.95 kB / 448.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001636/0.2686, allocations: 103.4 kB / 448.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2686, allocations: 0 / 448.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04492/0.3135, allocations: 9.916 MB / 458.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.87/13.18, allocations: 7.359 kB / 458.5 MB, free: 9.691 MB / 366.1 MB " [Timeout remaining time 647] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00029988 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv","/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) [Timeout 660] "Error: Could not read variable openTank1.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank1.m in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank1.m from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! Error: Could not read variable openTank2.m in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv. Warning: Get data of variable openTank2.m from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.830911129000015]