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.00126/0.00126, allocations: 112 kB / 20.43 MB, free: 1.309 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.001297/0.001297, allocations: 189.3 kB / 23.72 MB, free: 4.559 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.369/1.369, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.001583/0.001583, allocations: 47.92 kB / 370.4 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2425, allocations: 52.2 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003972/0.2465, allocations: 2.776 MB / 425.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.2479, allocations: 0.8373 MB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.2481, allocations: 3.938 kB / 426.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.2484, allocations: 79.39 kB / 426.3 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002754/0.2486, allocations: 138.9 kB / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002031/0.2488, allocations: 83.84 kB / 426.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005209/0.2494, allocations: 442.3 kB / 427 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.2495, allocations: 67.94 kB / 427 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000183/0.2497, allocations: 163.4 kB / 427.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.25, allocations: 179.2 kB / 427.4 MB, free: 9.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.724e-05/0.25, allocations: 36 kB / 427.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.269e-05/0.2501, allocations: 36 kB / 427.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.824e-05/0.2502, allocations: 71.75 kB / 427.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001915/0.2503, allocations: 199.1 kB / 427.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004817/0.2508, allocations: 442.6 kB / 428.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2508, allocations: 0 / 428.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2508, allocations: 0 / 428.1 MB, free: 9.078 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.2508, allocations: 0 / 428.1 MB, free: 9.078 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.001101/0.2519, allocations: 0.6196 MB / 428.7 MB, free: 8.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.252, allocations: 12.03 kB / 428.8 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.921e-05/0.2521, allocations: 63.19 kB / 428.8 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.356e-05/0.2522, allocations: 48.69 kB / 428.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004197/0.2526, allocations: 242.5 kB / 429.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.2527, allocations: 102.2 kB / 429.2 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.2528, allocations: 24.38 kB / 429.2 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005472/0.2533, allocations: 338.3 kB / 429.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2533, allocations: 0 / 429.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.2534, allocations: 16 kB / 429.6 MB, free: 7.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2534, allocations: 4 kB / 429.6 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004308/0.2538, allocations: 213.9 kB / 429.8 MB, free: 7.289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.2553, allocations: 0.7903 MB / 430.6 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000552/0.2558, allocations: 251 kB / 430.8 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.256, allocations: 108.8 kB / 430.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.2561, allocations: 8 kB / 430.9 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.2561, allocations: 38.56 kB / 431 MB, free: 6.035 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.463e-06/0.2561, allocations: 0 / 431 MB, free: 6.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001028/0.2571, allocations: 414.2 kB / 431.4 MB, free: 5.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001757/0.2573, allocations: 320.3 kB / 431.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.2576, allocations: 284.2 kB / 432 MB, free: 4.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.49e-05/0.2576, allocations: 33.7 kB / 432 MB, free: 4.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.2578, allocations: 172.8 kB / 432.2 MB, free: 4.738 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.952e-05/0.2579, allocations: 111 kB / 432.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.258, allocations: 69.69 kB / 432.3 MB, free: 4.555 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.2582, allocations: 346.8 kB / 432.7 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.2584, allocations: 95.95 kB / 432.8 MB, free: 4.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000325/0.2587, allocations: 212.5 kB / 433 MB, free: 3.859 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004705/0.2592, allocations: 259.5 kB / 433.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2592, allocations: 0 / 433.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006502/0.2598, allocations: 369.8 kB / 433.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.2599, allocations: 33.69 kB / 433.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2599, allocations: 0 / 433.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.26, allocations: 36.84 kB / 433.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009602/0.261, allocations: 159.9 kB / 433.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003826/0.2648, allocations: 3.027 MB / 436.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002976/0.2651, allocations: 35.95 kB / 436.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.2651, allocations: 8 kB / 436.9 MB, free: 15.68 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.0002121/0.2653, allocations: 161.8 kB / 437.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.502e-05/0.2654, allocations: 39.75 kB / 437.1 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.972e-05/0.2655, allocations: 39.08 kB / 437.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2655, allocations: 4 kB / 437.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2655, allocations: 3.938 kB / 437.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007594/0.2663, allocations: 0.651 MB / 437.8 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/0.2667, allocations: 360.3 kB / 438.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.2667, allocations: 0 / 438.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.268, allocations: 207.8 kB / 438.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.69e-05/0.2681, allocations: 24.84 kB / 438.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.2681, allocations: 4 kB / 438.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003196/0.2713, allocations: 2.842 MB / 441.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2713, allocations: 4 kB / 441.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008634/0.2721, allocations: 0.516 MB / 441.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.2723, allocations: 59.72 kB / 441.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.792e-05/0.2723, allocations: 11.94 kB / 441.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002534/0.2726, allocations: 19.92 kB / 441.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.251e-05/0.2727, allocations: 23.95 kB / 441.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.2727, allocations: 8 kB / 441.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.2729, allocations: 203.1 kB / 442.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2729, allocations: 0 / 442.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004188/0.2733, allocations: 111.9 kB / 442.2 MB, free: 10 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.001177/0.2745, allocations: 1.065 MB / 443.2 MB, free: 8.906 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.276, allocations: 0.5214 MB / 443.8 MB, free: 8.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.276, allocations: 4 kB / 443.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.2774, allocations: 390.9 kB / 444.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004953/0.2779, allocations: 91.81 kB / 444.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005248/0.2831, allocations: 3.401 MB / 447.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.2836, allocations: 0.7917 MB / 448.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000163/0.2838, allocations: 30.97 kB / 448.4 MB, free: 3.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001639/0.2839, allocations: 107.4 kB / 448.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2839, allocations: 4 kB / 448.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04316/0.3271, allocations: 9.907 MB / 458.5 MB, free: 9.723 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.89, allocations: 3.375 kB / 458.5 MB, free: 9.723 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 & /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 --stepSize=0.00029988 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.248096365947276]