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.001158/0.001158, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001261/0.001261, allocations: 189.5 kB / 24.49 MB, free: 3.941 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.317/1.317, allocations: 225.7 MB / 253.3 MB, free: 12.83 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 52.06 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.2109, allocations: 52.18 MB / 423.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003687/0.2146, allocations: 2.561 MB / 425.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.2158, allocations: 0.7848 MB / 426.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.2159, allocations: 4 kB / 426.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002403/0.2161, allocations: 71.41 kB / 426.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.2164, allocations: 146.9 kB / 426.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.2166, allocations: 79.83 kB / 427 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004727/0.217, allocations: 434.4 kB / 427.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001495/0.2172, allocations: 67.94 kB / 427.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.2174, allocations: 167.4 kB / 427.6 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.2176, allocations: 179.3 kB / 427.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.882e-05/0.2177, allocations: 36 kB / 427.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-05/0.2177, allocations: 36 kB / 427.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.2178, allocations: 71.77 kB / 427.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.218, allocations: 171.2 kB / 428.1 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.2184, allocations: 442.2 kB / 428.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2184, allocations: 0 / 428.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2184, allocations: 0 / 428.5 MB, free: 9.309 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.2184, allocations: 0 / 428.5 MB, free: 9.309 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.00105/0.2195, allocations: 0.6196 MB / 429.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.2195, allocations: 8.031 kB / 429.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.521e-05/0.2196, allocations: 16.67 kB / 429.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.571e-05/0.2197, allocations: 71.17 kB / 429.3 MB, free: 8.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.075e-05/0.2197, allocations: 44.7 kB / 429.3 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003902/0.2201, allocations: 250.4 kB / 429.6 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.2203, allocations: 106.2 kB / 429.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.2203, allocations: 32.08 kB / 429.7 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007321/0.221, allocations: 0.6974 MB / 430.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.221, allocations: 0 / 430.4 MB, free: 7.258 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.121e-05/0.2211, allocations: 12 kB / 430.4 MB, free: 7.246 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2211, allocations: 4 kB / 430.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004626/0.2216, allocations: 225.8 kB / 430.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.223, allocations: 0.7906 MB / 431.4 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006015/0.2236, allocations: 298.1 kB / 431.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.2239, allocations: 133.5 kB / 431.8 MB, free: 5.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.2239, allocations: 8.328 kB / 431.8 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.224, allocations: 46.83 kB / 431.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.224, allocations: 0 / 431.9 MB, free: 5.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003802/0.2278, allocations: 1.432 MB / 433.3 MB, free: 4.223 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001789/0.2279, allocations: 312.9 kB / 433.6 MB, free: 3.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.2282, allocations: 284.2 kB / 433.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.977e-05/0.2283, allocations: 45.58 kB / 433.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.2284, allocations: 168.9 kB / 434.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.2286, allocations: 182.4 kB / 434.3 MB, free: 3.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/0.2287, allocations: 90.19 kB / 434.4 MB, free: 3.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.2289, allocations: 346.8 kB / 434.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003474/0.2292, allocations: 174.6 kB / 434.9 MB, free: 2.539 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005965/0.2298, allocations: 0.5509 MB / 435.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006887/0.2305, allocations: 398.8 kB / 435.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.2305, allocations: 0 / 435.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000932/0.2314, allocations: 0.5327 MB / 436.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.2315, allocations: 37.64 kB / 436.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2315, allocations: 0 / 436.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001259/0.2316, allocations: 36.84 kB / 436.4 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002416/0.234, allocations: 351.6 kB / 436.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003617/0.2376, allocations: 3.006 MB / 439.8 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/0.238, allocations: 31.95 kB / 439.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.659e-05/0.238, allocations: 16 kB / 439.8 MB, free: 13.21 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 (54): * Single equations (assignments): 51 * 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.0002038/0.2382, allocations: 157.8 kB / 440 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.954e-05/0.2383, allocations: 43.7 kB / 440 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001048/0.2384, allocations: 51.73 kB / 440.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.2384, allocations: 8 kB / 440.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.2384, allocations: 0 / 440.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000971/0.2394, allocations: 0.7931 MB / 440.9 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.2411, allocations: 0.9472 MB / 441.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.2411, allocations: 4 kB / 441.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001834/0.243, allocations: 271.6 kB / 442.1 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.037e-05/0.243, allocations: 20.84 kB / 442.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.2431, allocations: 12 kB / 442.1 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/0.2441, allocations: 1.334 MB / 443.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2441, allocations: 0 / 443.5 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001271/0.2454, allocations: 0.7426 MB / 444.2 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.2455, allocations: 75.69 kB / 444.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.769e-05/0.2456, allocations: 12 kB / 444.3 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003125/0.2459, allocations: 19.98 kB / 444.3 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.596e-05/0.246, allocations: 40.3 kB / 444.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.94e-05/0.246, allocations: 16 kB / 444.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002047/0.2462, allocations: 199.1 kB / 444.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2462, allocations: 0 / 444.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004251/0.2467, allocations: 120 kB / 444.7 MB, free: 8.051 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 ($outputAlias_V_flow,$outputAlias_T1,$outputAlias_level2,$outputAlias_T2) * 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 (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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.001572/0.2482, allocations: 1.306 MB / 446 MB, free: 6.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001774/0.25, allocations: 0.6847 MB / 446.7 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.25, allocations: 4 kB / 446.7 MB, free: 5.996 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004671/0.2505, allocations: 309.1 kB / 447 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.251, allocations: 92.59 kB / 447.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005792/0.2568, allocations: 4.061 MB / 451.1 MB, free: 1.395 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.257, allocations: 195.1 kB / 451.3 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.2572, allocations: 47.25 kB / 451.4 MB, free: 1.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000226/0.2574, allocations: 127.4 kB / 451.5 MB, free: 1.016 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.2574, allocations: 4 kB / 451.5 MB, free: 1.012 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03854/0.2959, allocations: 12.08 MB / 463.6 MB, free: 5.246 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/12.89, allocations: 8.047 kB / 463.6 MB, free: 5.238 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] "Error: Could not read variable openTank1.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.302845965023153]