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.0008156/0.0008156, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008248/0.0008248, allocations: 174 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8742/0.8742, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.242e-06/1.242e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.234e-05/1.359e-05, allocations: 8.75 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002259/0.002272, allocations: 2.567 MB / 327.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009267/0.003199, allocations: 0.8217 MB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.003303, allocations: 4 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.003511, allocations: 79.3 kB / 328 MB, free: 12.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002041/0.003715, allocations: 138.9 kB / 328.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001494/0.003864, allocations: 91.81 kB / 328.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003297/0.004194, allocations: 457.5 kB / 328.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.004317, allocations: 67.94 kB / 328.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001709/0.004488, allocations: 243.5 kB / 329 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.00463, allocations: 131.7 kB / 329.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.004668, allocations: 32 kB / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.409e-05/0.004702, allocations: 36 kB / 329.2 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.573e-05/0.004748, allocations: 79.67 kB / 329.3 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.93e-05/0.004837, allocations: 135.8 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.005137, allocations: 458.6 kB / 329.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.623e-06/0.005138, allocations: 4 kB / 329.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.005139, allocations: 0 / 329.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.005144, allocations: 0 / 329.9 MB, free: 10.64 MB / 298.7 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.0006832/0.005827, allocations: 0.6118 MB / 330.5 MB, free: 9.992 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.005858, allocations: 12.03 kB / 330.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.963e-05/0.005928, allocations: 71.14 kB / 330.6 MB, free: 9.902 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.57e-05/0.005984, allocations: 48.69 kB / 330.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.006248, allocations: 245.7 kB / 330.8 MB, free: 9.586 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.721e-05/0.006325, allocations: 98.17 kB / 330.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.006354, allocations: 24.38 kB / 331 MB, free: 9.449 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004227/0.006777, allocations: 0.6785 MB / 331.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.006788, allocations: 192 / 331.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.006808, allocations: 15.94 kB / 331.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.006815, allocations: 8 kB / 331.7 MB, free: 8.621 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.007072, allocations: 213.8 kB / 331.9 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008332/0.007905, allocations: 0.7124 MB / 332.6 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.008227, allocations: 258.9 kB / 332.8 MB, free: 7.395 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.008346, allocations: 104.8 kB / 332.9 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.008368, allocations: 4 kB / 332.9 MB, free: 7.285 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.00839, allocations: 38.56 kB / 333 MB, free: 7.238 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.062e-06/0.008391, allocations: 3.938 kB / 333 MB, free: 7.234 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006035/0.008994, allocations: 402.2 kB / 333.4 MB, free: 6.832 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.009096, allocations: 328.5 kB / 333.7 MB, free: 6.438 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.009277, allocations: 276.2 kB / 334 MB, free: 6.156 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.009301, allocations: 33.7 kB / 334 MB, free: 6.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.913e-05/0.009381, allocations: 176.8 kB / 334.2 MB, free: 5.941 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.685e-05/0.009437, allocations: 115 kB / 334.3 MB, free: 5.828 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.874e-05/0.009506, allocations: 69.44 kB / 334.4 MB, free: 5.754 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.549e-05/0.009592, allocations: 342.8 kB / 334.7 MB, free: 5.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.009723, allocations: 121.7 kB / 334.8 MB, free: 5.285 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.009968, allocations: 499.3 kB / 335.3 MB, free: 4.684 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.01024, allocations: 263.5 kB / 335.6 MB, free: 4.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.01024, allocations: 4 kB / 335.6 MB, free: 4.406 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003799/0.01062, allocations: 399.5 kB / 335.9 MB, free: 3.996 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.47e-05/0.01065, allocations: 33.7 kB / 336 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.01065, allocations: 0 / 336 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001046/0.01076, allocations: 36.84 kB / 336 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004418/0.0112, allocations: 167.8 kB / 336.2 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001941/0.01314, allocations: 3.006 MB / 339.2 MB, free: 0.5195 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.01327, allocations: 35.86 kB / 339.2 MB, free: 496 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.01329, allocations: 11.94 kB / 339.2 MB, free: 484 kB / 298.7 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.0001146/0.0134, allocations: 156.2 kB / 339.4 MB, free: 320 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.945e-05/0.01344, allocations: 39.77 kB / 339.4 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.01348, allocations: 35.08 kB / 339.5 MB, free: 248 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.01348, allocations: 4 kB / 339.5 MB, free: 244 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-06/0.01349, allocations: 0 / 339.5 MB, free: 244 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004194/0.01391, allocations: 0.6579 MB / 340.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.01415, allocations: 312.4 kB / 340.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.01415, allocations: 0 / 340.4 MB, free: 15.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005819/0.01473, allocations: 207.7 kB / 340.6 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.586e-05/0.01478, allocations: 28.88 kB / 340.7 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.01479, allocations: 4.188 kB / 340.7 MB, free: 14.89 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/0.01653, allocations: 2.826 MB / 343.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01653, allocations: 0 / 343.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006134/0.01714, allocations: 0.5012 MB / 344 MB, free: 11.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.097e-05/0.01722, allocations: 59.98 kB / 344 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.295e-05/0.01725, allocations: 12.16 kB / 344.1 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.01737, allocations: 15.98 kB / 344.1 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.754e-05/0.01743, allocations: 31.88 kB / 344.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.182e-05/0.01744, allocations: 8 kB / 344.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001249/0.01757, allocations: 207 kB / 344.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01757, allocations: 96 / 344.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002758/0.01784, allocations: 111.8 kB / 344.4 MB, free: 10.87 MB / 314.7 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.0007536/0.0186, allocations: 1.069 MB / 345.5 MB, free: 9.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008172/0.01942, allocations: 0.5465 MB / 346 MB, free: 9.191 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.01942, allocations: 4 kB / 346 MB, free: 9.188 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006383/0.02006, allocations: 382.4 kB / 346.4 MB, free: 8.801 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.02039, allocations: 88.38 kB / 346.5 MB, free: 8.715 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003238/0.02363, allocations: 3.427 MB / 349.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001081/0.02374, allocations: 169.8 kB / 350.1 MB, free: 4.957 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.02385, allocations: 38.95 kB / 350.1 MB, free: 4.918 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.02396, allocations: 108.5 kB / 350.2 MB, free: 4.812 MB / 314.7 MB Notification: Performance of SimCode: time 4.8e-07/0.02396, allocations: 7.938 kB / 350.2 MB, free: 4.805 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.04822, allocations: 10.98 MB / 361.2 MB, free: 10.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.514/7.562, allocations: 3.984 kB / 361.2 MB, free: 10.09 MB / 330.7 MB " [Timeout remaining time 652] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/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: 9.227202004753053]