Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.005118/0.005118, allocations: 114.4 kB / 21.97 MB, free: 5.227 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.001345/0.001345, allocations: 216.2 kB / 25.28 MB, free: 3.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 207.6 MB / 236 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 51.92 kB / 348 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2313, allocations: 49.17 MB / 397.1 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003495/0.2348, allocations: 2.77 MB / 399.9 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.236, allocations: 0.874 MB / 400.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.2362, allocations: 3.844 kB / 400.8 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002505/0.2364, allocations: 74.91 kB / 400.8 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002367/0.2367, allocations: 141.1 kB / 401 MB, free: 6.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.2369, allocations: 90.7 kB / 401.1 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.2373, allocations: 437.6 kB / 401.5 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.2374, allocations: 68.66 kB / 401.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.2376, allocations: 162 kB / 401.7 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002193/0.2378, allocations: 180.8 kB / 401.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.342e-05/0.2379, allocations: 33.5 kB / 401.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.943e-05/0.2379, allocations: 36.28 kB / 402 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.229e-05/0.238, allocations: 82 kB / 402 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.2382, allocations: 188.5 kB / 402.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005197/0.2387, allocations: 447.1 kB / 402.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2387, allocations: 0 / 402.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2387, allocations: 4 kB / 402.7 MB, free: 5.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.323e-05/0.2387, allocations: 1.062 kB / 402.7 MB, free: 5.668 MB / 318.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.0009947/0.2397, allocations: 0.6143 MB / 403.3 MB, free: 5.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.2397, allocations: 14.61 kB / 403.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.107e-05/0.2398, allocations: 20.48 kB / 403.3 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.037e-05/0.2399, allocations: 73.61 kB / 403.4 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.994e-05/0.2399, allocations: 45.39 kB / 403.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00036/0.2403, allocations: 250.1 kB / 403.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.116e-05/0.2404, allocations: 108.3 kB / 403.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.797e-05/0.2404, allocations: 29.84 kB / 403.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004563/0.2409, allocations: 351.3 kB / 404.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.2409, allocations: 1.125 kB / 404.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.2409, allocations: 15.41 kB / 404.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.241, allocations: 11.06 kB / 404.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.2414, allocations: 219.1 kB / 404.4 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001285/0.2426, allocations: 0.8624 MB / 405.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000565/0.2432, allocations: 300.8 kB / 405.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.2434, allocations: 137.9 kB / 405.7 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.2435, allocations: 10.75 kB / 405.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.2435, allocations: 38.22 kB / 405.7 MB, free: 3.727 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 1.563e-06/0.2435, allocations: 1.312 kB / 405.7 MB, free: 3.727 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003487/0.247, allocations: 1.435 MB / 407.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.291e-05/0.247, allocations: 320.8 kB / 407.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.2473, allocations: 277.3 kB / 407.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/0.2473, allocations: 38.08 kB / 407.8 MB, free: 2.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.306e-05/0.2474, allocations: 167.2 kB / 408 MB, free: 2.363 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.743e-05/0.2475, allocations: 181.6 kB / 408.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.2477, allocations: 90.36 kB / 408.2 MB, free: 2.168 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.814e-05/0.2477, allocations: 352.1 kB / 408.6 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003071/0.248, allocations: 150.6 kB / 408.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000356/0.2484, allocations: 281.6 kB / 409 MB, free: 1.594 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006043/0.249, allocations: 392.8 kB / 409.4 MB, free: 1.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.249, allocations: 4 kB / 409.4 MB, free: 1.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0008086/0.2498, allocations: 0.5026 MB / 409.9 MB, free: 1.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.2498, allocations: 36.11 kB / 409.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.2498, allocations: 1.969 kB / 409.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001204/0.2499, allocations: 42.06 kB / 410 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00226/0.2522, allocations: 348.9 kB / 410.3 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/0.2556, allocations: 3.025 MB / 413.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.2559, allocations: 29.77 kB / 413.4 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.2559, allocations: 12.62 kB / 413.4 MB, free: 14.29 MB / 334.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.0002149/0.2561, allocations: 165.2 kB / 413.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.2562, allocations: 44.42 kB / 413.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.911e-05/0.2563, allocations: 46.77 kB / 413.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2563, allocations: 5.203 kB / 413.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2563, allocations: 96 / 413.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001025/0.2574, allocations: 0.8004 MB / 414.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/0.2592, allocations: 1.03 MB / 415.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2592, allocations: 0 / 415.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001731/0.2609, allocations: 263.3 kB / 415.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.881e-05/0.261, allocations: 24.31 kB / 415.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.654e-05/0.261, allocations: 6.094 kB / 415.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.2621, allocations: 1.326 MB / 417.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2621, allocations: 0 / 417.1 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.2633, allocations: 0.7525 MB / 417.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001648/0.2635, allocations: 67.73 kB / 417.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.681e-05/0.2635, allocations: 12.38 kB / 417.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000316/0.2639, allocations: 31.12 kB / 417.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.2639, allocations: 32.25 kB / 418 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.719e-05/0.264, allocations: 13.25 kB / 418 MB, free: 10.78 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000197/0.2642, allocations: 200.6 kB / 418.2 MB, free: 10.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2642, allocations: 7.938 kB / 418.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004572/0.2646, allocations: 120.6 kB / 418.3 MB, free: 10.62 MB / 334.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.001636/0.2663, allocations: 1.296 MB / 419.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001784/0.268, allocations: 0.6575 MB / 420.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.268, allocations: 1.094 kB / 420.2 MB, free: 9.242 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004681/0.2685, allocations: 315.2 kB / 420.6 MB, free: 9.039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.269, allocations: 106.5 kB / 420.7 MB, free: 8.973 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005804/0.2749, allocations: 3.945 MB / 424.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.2753, allocations: 0.801 MB / 425.4 MB, free: 5.539 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002175/0.2755, allocations: 47.84 kB / 425.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002189/0.2757, allocations: 126.6 kB / 425.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.2757, allocations: 0 / 425.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.3131, allocations: 11.49 MB / 437.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/12.8, allocations: 11.86 kB / 437.1 MB, free: 10.3 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.25384918099735]