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.001209/0.001209, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001334/0.001334, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.324/1.324, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.001432/0.001432, allocations: 43.92 kB / 378.5 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2073, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003793/0.2111, allocations: 2.792 MB / 434.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.2124, allocations: 0.8684 MB / 435.6 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.2125, allocations: 4 kB / 435.6 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002493/0.2127, allocations: 75.39 kB / 435.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.213, allocations: 142.9 kB / 435.8 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001947/0.2132, allocations: 79.83 kB / 435.9 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005067/0.2137, allocations: 453.6 kB / 436.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001456/0.2138, allocations: 63.95 kB / 436.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.214, allocations: 163.5 kB / 436.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002459/0.2143, allocations: 179.2 kB / 436.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.252e-05/0.2143, allocations: 32 kB / 436.7 MB, free: 2.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.895e-05/0.2144, allocations: 43.88 kB / 436.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.639e-05/0.2144, allocations: 75.73 kB / 436.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.2146, allocations: 199.1 kB / 437 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004517/0.2151, allocations: 435.1 kB / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.676e-06/0.2151, allocations: 0 / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2151, allocations: 0 / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.2151, allocations: 4 kB / 437.5 MB, free: 1.297 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.00104/0.2161, allocations: 0.6157 MB / 438.1 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2162, allocations: 8.031 kB / 438.1 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.485e-05/0.2162, allocations: 20.58 kB / 438.1 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.324e-05/0.2163, allocations: 71.22 kB / 438.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.501e-05/0.2164, allocations: 48.66 kB / 438.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.2168, allocations: 246.4 kB / 438.5 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001167/0.2169, allocations: 102.2 kB / 438.6 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.335e-05/0.2169, allocations: 28.12 kB / 438.6 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005551/0.2175, allocations: 350.3 kB / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.2175, allocations: 0 / 438.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.2175, allocations: 12 kB / 439 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.2176, allocations: 8 kB / 439 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004418/0.218, allocations: 225.8 kB / 439.2 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001501/0.2195, allocations: 0.8607 MB / 440 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006044/0.2201, allocations: 296.7 kB / 440.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002432/0.2203, allocations: 143.3 kB / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.2204, allocations: 4.328 kB / 440.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.2204, allocations: 50.88 kB / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.403e-06/0.2204, allocations: 0 / 440.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003721/0.2241, allocations: 1.431 MB / 442 MB, free: 12.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.2243, allocations: 316.9 kB / 442.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002956/0.2246, allocations: 280.2 kB / 442.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.527e-05/0.2246, allocations: 37.7 kB / 442.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001258/0.2248, allocations: 168.9 kB / 442.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.2249, allocations: 178.4 kB / 442.9 MB, free: 11.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.2251, allocations: 94.19 kB / 443 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2252, allocations: 346.8 kB / 443.3 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003416/0.2256, allocations: 152.9 kB / 443.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.226, allocations: 277.4 kB / 443.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/0.2267, allocations: 390.8 kB / 444.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2267, allocations: 0 / 444.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.000921/0.2276, allocations: 0.5115 MB / 444.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.2277, allocations: 37.64 kB / 444.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.2277, allocations: 3.938 kB / 444.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001247/0.2278, allocations: 44.88 kB / 444.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/0.2301, allocations: 347.6 kB / 445.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003653/0.2338, allocations: 3.026 MB / 448.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.2341, allocations: 28.02 kB / 448.1 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.563e-05/0.2341, allocations: 20 kB / 448.2 MB, free: 5.961 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.0002366/0.2344, allocations: 167.3 kB / 448.3 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.424e-05/0.2345, allocations: 47.66 kB / 448.4 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.885e-05/0.2346, allocations: 47.83 kB / 448.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.905e-06/0.2346, allocations: 7.984 kB / 448.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2346, allocations: 0 / 448.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001008/0.2356, allocations: 0.8009 MB / 449.2 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.2373, allocations: 1.01 MB / 450.2 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.2374, allocations: 8 kB / 450.2 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001786/0.2391, allocations: 263.7 kB / 450.5 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.841e-05/0.2392, allocations: 24.84 kB / 450.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.05e-05/0.2393, allocations: 15.98 kB / 450.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.2404, allocations: 1.326 MB / 451.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2404, allocations: 0 / 451.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.2417, allocations: 0.7386 MB / 452.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.2418, allocations: 75.94 kB / 452.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.628e-05/0.2419, allocations: 12 kB / 452.7 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003088/0.2422, allocations: 23.98 kB / 452.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.162e-05/0.2423, allocations: 40.34 kB / 452.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.804e-05/0.2423, allocations: 12 kB / 452.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.2425, allocations: 203.1 kB / 453 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2425, allocations: 0 / 453 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004379/0.243, allocations: 124 kB / 453.1 MB, free: 0.7227 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.001645/0.2446, allocations: 1.302 MB / 454.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001803/0.2464, allocations: 0.6596 MB / 455 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.2464, allocations: 4 kB / 455 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004703/0.2469, allocations: 305.1 kB / 455.3 MB, free: 14.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.2474, allocations: 96.52 kB / 455.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005888/0.2533, allocations: 3.958 MB / 459.4 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.2537, allocations: 0.797 MB / 460.2 MB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001913/0.2539, allocations: 47.27 kB / 460.2 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002216/0.2541, allocations: 127.4 kB / 460.4 MB, free: 9.242 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2541, allocations: 0 / 460.4 MB, free: 9.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03704/0.2912, allocations: 11.49 MB / 471.9 MB, free: 13.99 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.67, allocations: 8.797 kB / 471.9 MB, free: 13.98 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.10440179501893]