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.001237/0.001237, allocations: 113 kB / 18.49 MB, free: 4.539 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.001254/0.001254, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.377/1.377, allocations: 230.6 MB / 254.8 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] 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.001573/0.001573, allocations: 51.92 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.09874, allocations: 53.33 MB / 427 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004914/0.1037, allocations: 2.776 MB / 429.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.1055, allocations: 0.8568 MB / 430.6 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002989/0.1058, allocations: 7.938 kB / 430.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000342/0.1061, allocations: 71.41 kB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005039/0.1066, allocations: 142.9 kB / 430.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002813/0.1069, allocations: 83.83 kB / 430.9 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006595/0.1076, allocations: 438.4 kB / 431.4 MB, free: 440 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.1077, allocations: 63.38 kB / 431.4 MB, free: 372 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002607/0.108, allocations: 167.4 kB / 431.6 MB, free: 204 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003065/0.1083, allocations: 183.3 kB / 431.8 MB, free: 20 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.084e-05/0.1084, allocations: 32.05 kB / 431.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.899e-05/0.1085, allocations: 36 kB / 431.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.497e-05/0.1086, allocations: 71.66 kB / 431.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.1088, allocations: 195.2 kB / 432.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000539/0.1093, allocations: 438.2 kB / 432.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.1093, allocations: 7.938 kB / 432.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1093, allocations: 3.938 kB / 432.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.1093, allocations: 0 / 432.5 MB, free: 15.25 MB / 366.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.001286/0.1106, allocations: 0.691 MB / 433.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.1107, allocations: 8.031 kB / 433.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.825e-05/0.1107, allocations: 16.7 kB / 433.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.1108, allocations: 71.23 kB / 433.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.1109, allocations: 44.7 kB / 433.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005331/0.1114, allocations: 311.6 kB / 433.7 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.1116, allocations: 54.81 kB / 433.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.964e-05/0.1116, allocations: 28.12 kB / 433.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006001/0.1122, allocations: 347.3 kB / 434.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.1122, allocations: 11.98 kB / 434.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.267e-05/0.1123, allocations: 12 kB / 434.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1123, allocations: 4 kB / 434.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004734/0.1128, allocations: 226.1 kB / 434.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.1144, allocations: 0.8892 MB / 435.2 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006579/0.1151, allocations: 300.6 kB / 435.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002654/0.1153, allocations: 137.5 kB / 435.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.711e-05/0.1154, allocations: 12.31 kB / 435.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.1154, allocations: 42.89 kB / 435.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of pre-optimization done (n=39): time 1.512e-06/0.1154, allocations: 0 / 435.7 MB, free: 11.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.004154/0.1196, allocations: 1.581 MB / 437.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001919/0.1197, allocations: 320.9 kB / 437.6 MB, free: 9.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.1201, allocations: 279 kB / 437.9 MB, free: 9.539 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.426e-05/0.1201, allocations: 33.7 kB / 437.9 MB, free: 9.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001466/0.1203, allocations: 172.8 kB / 438.1 MB, free: 9.328 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.1204, allocations: 178.4 kB / 438.3 MB, free: 9.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/0.1206, allocations: 94.2 kB / 438.3 MB, free: 9.055 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.1208, allocations: 346.8 kB / 438.7 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003522/0.1211, allocations: 149 kB / 438.8 MB, free: 8.562 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004563/0.1216, allocations: 274.1 kB / 439.1 MB, free: 8.254 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007332/0.1223, allocations: 399.8 kB / 439.5 MB, free: 7.844 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1223, allocations: 0 / 439.5 MB, free: 7.844 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009777/0.1233, allocations: 0.509 MB / 440 MB, free: 7.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.1233, allocations: 37.64 kB / 440 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.1233, allocations: 0 / 440 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000139/0.1235, allocations: 40.84 kB / 440.1 MB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/0.1259, allocations: 347.7 kB / 440.4 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004011/0.1299, allocations: 3.229 MB / 443.6 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000367/0.1303, allocations: 28.02 kB / 443.7 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.1303, allocations: 16.09 kB / 443.7 MB, free: 3.344 MB / 366.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.0002234/0.1305, allocations: 169.7 kB / 443.8 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.1306, allocations: 47.7 kB / 443.9 MB, free: 3.121 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.1308, allocations: 43.73 kB / 443.9 MB, free: 3.078 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.555e-06/0.1308, allocations: 8 kB / 443.9 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1308, allocations: 0 / 443.9 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001046/0.1318, allocations: 0.7892 MB / 444.7 MB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.1337, allocations: 1.057 MB / 445.8 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1338, allocations: 0 / 445.8 MB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/0.1356, allocations: 263.7 kB / 446 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.913e-05/0.1357, allocations: 28.84 kB / 446.1 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.1357, allocations: 8 kB / 446.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1732/0.3089, allocations: 1.425 MB / 447.5 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.3089, allocations: 0.625 kB / 447.5 MB, free: 23.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.3102, allocations: 0.7429 MB / 448.3 MB, free: 23.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001447/0.3104, allocations: 151.3 kB / 448.4 MB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5e-05/0.3104, allocations: 12.72 kB / 448.4 MB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003284/0.3108, allocations: 22.55 kB / 448.4 MB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.71e-05/0.3108, allocations: 35.47 kB / 448.5 MB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.3109, allocations: 14.36 kB / 448.5 MB, free: 23.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001776/0.311, allocations: 198.7 kB / 448.7 MB, free: 23.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.311, allocations: 0 / 448.7 MB, free: 23.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004288/0.3115, allocations: 121.7 kB / 448.8 MB, free: 23.12 MB / 366.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.001217/0.3127, allocations: 1.302 MB / 450.1 MB, free: 22.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001624/0.3143, allocations: 0.658 MB / 450.8 MB, free: 22.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3143, allocations: 3.406 kB / 450.8 MB, free: 22.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.3147, allocations: 310.3 kB / 451.1 MB, free: 22.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004974/0.3152, allocations: 96.45 kB / 451.2 MB, free: 22.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004814/0.32, allocations: 3.973 MB / 455.1 MB, free: 20.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002132/0.3203, allocations: 0.7953 MB / 455.9 MB, free: 19.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001984/0.3205, allocations: 50.81 kB / 456 MB, free: 19.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/0.3206, allocations: 125.5 kB / 456.1 MB, free: 19.32 MB / 366.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3206, allocations: 0 / 456.1 MB, free: 19.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03531/0.3559, allocations: 11.18 MB / 467.3 MB, free: 16.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.97, allocations: 11.27 kB / 467.3 MB, free: 16.91 MB / 366.1 MB " [Timeout remaining time 648] (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: 14.472086717025377]