Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001453/0.001453, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001592/0.001592, allocations: 207.4 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 230.5 MB / 258.2 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 59.91 kB / 378.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2222, allocations: 53.41 MB / 432 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003635/0.2259, allocations: 2.78 MB / 434.7 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.2271, allocations: 0.8645 MB / 435.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.2272, allocations: 3.938 kB / 435.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002368/0.2275, allocations: 87.39 kB / 435.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002524/0.2277, allocations: 134.9 kB / 435.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.2279, allocations: 83.84 kB / 435.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000493/0.2284, allocations: 453.9 kB / 436.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.2285, allocations: 59.95 kB / 436.4 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.2287, allocations: 159.4 kB / 436.6 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.229, allocations: 179.2 kB / 436.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-05/0.229, allocations: 36 kB / 436.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.977e-05/0.2291, allocations: 36 kB / 436.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.051e-05/0.2291, allocations: 79.69 kB / 436.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001803/0.2293, allocations: 191.1 kB / 437.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000452/0.2298, allocations: 443.1 kB / 437.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2298, allocations: 0 / 437.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2298, allocations: 0 / 437.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.2298, allocations: 4 kB / 437.5 MB, free: 1.105 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.001053/0.2308, allocations: 0.6118 MB / 438.1 MB, free: 468 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2309, allocations: 12.03 kB / 438.1 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.158e-05/0.2309, allocations: 16.58 kB / 438.1 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.131e-05/0.231, allocations: 71.16 kB / 438.2 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.005e-05/0.2311, allocations: 48.66 kB / 438.3 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.2315, allocations: 250.4 kB / 438.5 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001422/0.2317, allocations: 106.2 kB / 438.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.298e-05/0.2317, allocations: 32.12 kB / 438.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005644/0.2323, allocations: 342.4 kB / 439 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.2323, allocations: 4 kB / 439 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.2323, allocations: 12 kB / 439 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.2324, allocations: 11.94 kB / 439 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004484/0.2328, allocations: 225.8 kB / 439.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.2343, allocations: 0.8529 MB / 440.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005957/0.2349, allocations: 308.6 kB / 440.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.2352, allocations: 133.5 kB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.2352, allocations: 12.31 kB / 440.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/0.2352, allocations: 46.81 kB / 440.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.2352, allocations: 0 / 440.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.00369/0.2389, allocations: 1.438 MB / 442 MB, free: 12.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/0.2391, allocations: 316.9 kB / 442.3 MB, free: 12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002861/0.2394, allocations: 284.2 kB / 442.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.2394, allocations: 37.7 kB / 442.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.2395, allocations: 164.9 kB / 442.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.2397, allocations: 182.4 kB / 443 MB, free: 11.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.2398, allocations: 86.19 kB / 443.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.24, allocations: 350.8 kB / 443.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/0.2403, allocations: 152.9 kB / 443.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004199/0.2407, allocations: 277.4 kB / 443.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007113/0.2414, allocations: 390.8 kB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2414, allocations: 4 kB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009016/0.2423, allocations: 0.5115 MB / 444.7 MB, free: 9.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/0.2424, allocations: 33.64 kB / 444.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.2424, allocations: 4 kB / 444.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001265/0.2425, allocations: 36.78 kB / 444.8 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002357/0.2449, allocations: 355.6 kB / 445.1 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003586/0.2485, allocations: 3.026 MB / 448.2 MB, free: 5.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003719/0.2488, allocations: 28.02 kB / 448.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.2489, allocations: 16 kB / 448.2 MB, free: 5.766 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.0002086/0.2491, allocations: 164.8 kB / 448.4 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.298e-05/0.2492, allocations: 51.66 kB / 448.4 MB, free: 5.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.539e-05/0.2493, allocations: 43.73 kB / 448.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.77e-06/0.2493, allocations: 8 kB / 448.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.2493, allocations: 96 / 448.5 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009904/0.2503, allocations: 0.8008 MB / 449.3 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.2521, allocations: 1.013 MB / 450.3 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.2521, allocations: 4 kB / 450.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001824/0.2539, allocations: 263.7 kB / 450.5 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.677e-05/0.254, allocations: 24.84 kB / 450.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.844e-05/0.2541, allocations: 7.984 kB / 450.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001061/0.2551, allocations: 1.334 MB / 451.9 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2551, allocations: 0 / 451.9 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/0.2564, allocations: 0.7426 MB / 452.6 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.2565, allocations: 79.64 kB / 452.7 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/0.2566, allocations: 12 kB / 452.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/0.2569, allocations: 23.98 kB / 452.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.125e-05/0.257, allocations: 36.36 kB / 452.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.767e-05/0.257, allocations: 12 kB / 452.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000209/0.2572, allocations: 199.1 kB / 453 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2572, allocations: 4 kB / 453 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004253/0.2576, allocations: 120 kB / 453.1 MB, free: 0.5312 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.001629/0.2593, allocations: 1.298 MB / 454.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001903/0.2612, allocations: 0.6635 MB / 455.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.2612, allocations: 0 / 455.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00051/0.2617, allocations: 305.1 kB / 455.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006663/0.2623, allocations: 107 kB / 455.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006104/0.2685, allocations: 3.958 MB / 459.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.2689, allocations: 0.8009 MB / 460.2 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002097/0.2691, allocations: 47.25 kB / 460.3 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.2693, allocations: 123.4 kB / 460.4 MB, free: 9.043 MB / 366.1 MB Notification: Performance of SimCode: time 9.92e-07/0.2693, allocations: 7.938 kB / 460.4 MB, free: 9.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0376/0.3069, allocations: 11.46 MB / 471.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.45, allocations: 7.922 kB / 471.9 MB, free: 13.76 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.913595659018029]