Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 108.6 kB / 18.49 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 197 kB / 21.43 MB, free: 1.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00145/0.00145, allocations: 48.02 kB / 366.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.09598, allocations: 52.14 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003936/0.09991, allocations: 2.764 MB / 421.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.1012, allocations: 0.8255 MB / 422.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001187/0.1013, allocations: 4 kB / 422.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002691/0.1016, allocations: 79.39 kB / 422.1 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002888/0.1019, allocations: 138.9 kB / 422.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002045/0.1021, allocations: 87.81 kB / 422.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005117/0.1026, allocations: 441.9 kB / 422.8 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.1028, allocations: 68.03 kB / 422.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001823/0.1029, allocations: 167.4 kB / 423 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002856/0.1032, allocations: 179.2 kB / 423.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.574e-05/0.1033, allocations: 36 kB / 423.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.229e-05/0.1034, allocations: 36 kB / 423.3 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.75e-05/0.1034, allocations: 79.69 kB / 423.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001873/0.1036, allocations: 191.1 kB / 423.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004699/0.1041, allocations: 442.2 kB / 424 MB, free: 7.105 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1041, allocations: 0 / 424 MB, free: 7.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1041, allocations: 0 / 424 MB, free: 7.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1041, allocations: 0 / 424 MB, free: 7.105 MB / 350.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.001189/0.1053, allocations: 0.6871 MB / 424.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.1053, allocations: 12.03 kB / 424.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.97e-05/0.1054, allocations: 8.734 kB / 424.7 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.1055, allocations: 87.11 kB / 424.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.627e-05/0.1056, allocations: 48.66 kB / 424.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.106, allocations: 303.7 kB / 425.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.1061, allocations: 46.83 kB / 425.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/0.1062, allocations: 40.06 kB / 425.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005725/0.1067, allocations: 347.3 kB / 425.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.1068, allocations: 3.984 kB / 425.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.19e-05/0.1068, allocations: 15.94 kB / 425.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.611e-05/0.1068, allocations: 8 kB / 425.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004503/0.1073, allocations: 226.1 kB / 425.8 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.1088, allocations: 0.8815 MB / 426.7 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006292/0.1094, allocations: 309.2 kB / 427 MB, free: 3.902 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002535/0.1097, allocations: 133.4 kB / 427.1 MB, free: 3.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.1097, allocations: 8.312 kB / 427.1 MB, free: 3.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.1098, allocations: 46.83 kB / 427.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 2.194e-06/0.1098, allocations: 0 / 427.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003975/0.1138, allocations: 1.578 MB / 428.7 MB, free: 2.059 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002057/0.114, allocations: 320.9 kB / 429 MB, free: 1.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003021/0.1143, allocations: 279 kB / 429.3 MB, free: 1.391 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.549e-05/0.1143, allocations: 41.64 kB / 429.3 MB, free: 1.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.1144, allocations: 164.9 kB / 429.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.1146, allocations: 186.4 kB / 429.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.1147, allocations: 86.25 kB / 429.8 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1149, allocations: 346.8 kB / 430.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/0.1152, allocations: 157 kB / 430.3 MB, free: 412 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004464/0.1157, allocations: 278 kB / 430.5 MB, free: 96 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008158/0.1165, allocations: 395.8 kB / 430.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1165, allocations: 0 / 430.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0009679/0.1175, allocations: 0.5091 MB / 431.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.1175, allocations: 33.64 kB / 431.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1175, allocations: 7.984 kB / 431.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.1177, allocations: 36.78 kB / 431.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002418/0.1201, allocations: 351.7 kB / 431.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003913/0.124, allocations: 3.217 MB / 435.1 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003656/0.1244, allocations: 28.03 kB / 435.1 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.1244, allocations: 15.98 kB / 435.1 MB, free: 11.2 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.0002223/0.1246, allocations: 165.8 kB / 435.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-05/0.1247, allocations: 43.7 kB / 435.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001106/0.1248, allocations: 51.83 kB / 435.4 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.1248, allocations: 7.984 kB / 435.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1248, allocations: 0 / 435.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001066/0.1259, allocations: 0.7971 MB / 436.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001847/0.1277, allocations: 1.061 MB / 437.2 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1277, allocations: 0 / 437.2 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001855/0.1296, allocations: 259.7 kB / 437.5 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-05/0.1297, allocations: 28.86 kB / 437.5 MB, free: 8.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.1297, allocations: 11.98 kB / 437.5 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.1309, allocations: 1.434 MB / 439 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1309, allocations: 4.031 kB / 439 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001346/0.1322, allocations: 0.7346 MB / 439.7 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002362/0.1324, allocations: 165 kB / 439.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.1325, allocations: 8 kB / 439.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003162/0.1328, allocations: 27.97 kB / 439.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-05/0.1329, allocations: 36.38 kB / 439.9 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.1329, allocations: 12 kB / 439.9 MB, free: 6.004 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002065/0.1331, allocations: 198 kB / 440.1 MB, free: 5.805 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1331, allocations: 4 kB / 440.1 MB, free: 5.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004368/0.1336, allocations: 116 kB / 440.2 MB, free: 5.688 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.001653/0.1352, allocations: 1.303 MB / 441.6 MB, free: 4.352 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001781/0.137, allocations: 0.6561 MB / 442.2 MB, free: 3.676 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.137, allocations: 4 kB / 442.2 MB, free: 3.672 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.1375, allocations: 313 kB / 442.5 MB, free: 3.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005067/0.138, allocations: 92.83 kB / 442.6 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1643/0.3023, allocations: 3.945 MB / 446.6 MB, free: 28.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001894/0.3025, allocations: 0.7988 MB / 447.4 MB, free: 28.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000251/0.3027, allocations: 45.45 kB / 447.4 MB, free: 28.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.3029, allocations: 128.4 kB / 447.5 MB, free: 28.23 MB / 366.1 MB Notification: Performance of SimCode: time 9.42e-07/0.3029, allocations: 1.406 kB / 447.5 MB, free: 28.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03579/0.3387, allocations: 11.17 MB / 458.7 MB, free: 26.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.83, allocations: 28.73 kB / 458.7 MB, free: 26.62 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --stepSize=0.00029988 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank1.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! Error: Could not read variable openTank2.H in file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat. Warning: Get data of variable openTank2.H from file Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.278522226959467]