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.001198/0.001198, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001358/0.001358, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.334/1.334, allocations: 230.6 MB / 258.3 MB, free: 7.773 MB / 206.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 39.94 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2354, allocations: 53.37 MB / 431.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003986/0.2394, allocations: 2.558 MB / 434.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.2409, allocations: 0.812 MB / 435.2 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002209/0.2411, allocations: 11.94 kB / 435.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000278/0.2414, allocations: 63.48 kB / 435.3 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003833/0.2418, allocations: 146.9 kB / 435.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.242, allocations: 83.89 kB / 435.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006117/0.2426, allocations: 449.9 kB / 436 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001642/0.2428, allocations: 67.89 kB / 436 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002418/0.243, allocations: 159.5 kB / 436.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003036/0.2433, allocations: 179.2 kB / 436.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.345e-05/0.2434, allocations: 32 kB / 436.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.037e-05/0.2435, allocations: 36 kB / 436.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.871e-05/0.2436, allocations: 83.67 kB / 436.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.2438, allocations: 155.4 kB / 436.7 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005134/0.2443, allocations: 442.2 kB / 437.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.2443, allocations: 0 / 437.1 MB, free: 1.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2443, allocations: 4 kB / 437.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.2443, allocations: 0 / 437.1 MB, free: 1.395 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.001177/0.2455, allocations: 0.6118 MB / 437.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.2455, allocations: 15.91 kB / 437.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.357e-05/0.2456, allocations: 20.64 kB / 437.7 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.2457, allocations: 71.2 kB / 437.8 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.2458, allocations: 48.66 kB / 437.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004817/0.2463, allocations: 250.4 kB / 438.1 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.2464, allocations: 102.2 kB / 438.2 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.926e-05/0.2465, allocations: 28.12 kB / 438.2 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008051/0.2473, allocations: 0.7013 MB / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.2473, allocations: 0 / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.2473, allocations: 16 kB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/0.2473, allocations: 8 kB / 439 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004557/0.2478, allocations: 217.9 kB / 439.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/0.2493, allocations: 0.7944 MB / 440 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006487/0.25, allocations: 301.2 kB / 440.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002584/0.2502, allocations: 133.5 kB / 440.4 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.2503, allocations: 8.328 kB / 440.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.267e-05/0.2503, allocations: 42.88 kB / 440.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.834e-06/0.2503, allocations: 0 / 440.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003827/0.2541, allocations: 1.439 MB / 441.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001676/0.2543, allocations: 312.9 kB / 442.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.2546, allocations: 284.2 kB / 442.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.086e-05/0.2546, allocations: 37.64 kB / 442.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.2548, allocations: 172.8 kB / 442.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001471/0.2549, allocations: 178.4 kB / 442.8 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2551, allocations: 90.12 kB / 442.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.2552, allocations: 350.8 kB / 443.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.2556, allocations: 174.6 kB / 443.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005797/0.2562, allocations: 0.5509 MB / 444 MB, free: 9.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006989/0.2568, allocations: 394.8 kB / 444.4 MB, free: 9.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2569, allocations: 4 kB / 444.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009383/0.2578, allocations: 0.5326 MB / 444.9 MB, free: 8.996 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.2578, allocations: 37.64 kB / 444.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2578, allocations: 0 / 444.9 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001303/0.258, allocations: 40.83 kB / 445 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002366/0.2603, allocations: 351.7 kB / 445.3 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00356/0.2639, allocations: 3.002 MB / 448.3 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003281/0.2642, allocations: 24.03 kB / 448.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.076e-05/0.2643, allocations: 19.98 kB / 448.4 MB, free: 5.293 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.0002024/0.2645, allocations: 161.8 kB / 448.5 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.2645, allocations: 51.66 kB / 448.6 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.2646, allocations: 47.73 kB / 448.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.2647, allocations: 8 kB / 448.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2647, allocations: 0 / 448.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009622/0.2656, allocations: 0.7931 MB / 449.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.2674, allocations: 0.951 MB / 450.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2674, allocations: 0 / 450.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001787/0.2692, allocations: 267.6 kB / 450.6 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.78e-05/0.2692, allocations: 28.84 kB / 450.7 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.2693, allocations: 4 kB / 450.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/0.2703, allocations: 1.326 MB / 452 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2703, allocations: 0 / 452 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.2716, allocations: 0.7463 MB / 452.7 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.2717, allocations: 67.77 kB / 452.8 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.181e-05/0.2718, allocations: 15.98 kB / 452.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003165/0.2721, allocations: 27.98 kB / 452.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.171e-05/0.2722, allocations: 36.44 kB / 452.9 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.2722, allocations: 16.22 kB / 452.9 MB, free: 456 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002093/0.2724, allocations: 199.1 kB / 453.1 MB, free: 256 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2724, allocations: 0 / 453.1 MB, free: 256 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004176/0.2729, allocations: 120 kB / 453.2 MB, free: 136 kB / 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.001594/0.2744, allocations: 1.306 MB / 454.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.2762, allocations: 0.6886 MB / 455.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.2762, allocations: 4 kB / 455.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004583/0.2767, allocations: 305.1 kB / 455.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005128/0.2772, allocations: 88.59 kB / 455.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005898/0.2831, allocations: 4.076 MB / 459.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001904/0.2833, allocations: 195.1 kB / 459.9 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002075/0.2835, allocations: 43.27 kB / 459.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002312/0.2837, allocations: 127.4 kB / 460 MB, free: 9.09 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2837, allocations: 0 / 460 MB, free: 9.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03954/0.3232, allocations: 12.09 MB / 472.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.42/12.74, allocations: 3.562 kB / 472.1 MB, free: 13.32 MB / 382.1 MB " [Timeout remaining time 647] (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] "Error: Could not read variable openTank1.H in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.169044903013855]