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.001281/0.001281, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001347/0.001347, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.35/1.35, allocations: 225.6 MB / 249.1 MB, free: 3.621 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 43.92 kB / 365.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09115/0.09267, allocations: 52.15 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00395/0.09662, allocations: 2.772 MB / 420.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.09802, allocations: 0.8256 MB / 421.4 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.09819, allocations: 3.938 kB / 421.4 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.09848, allocations: 83.39 kB / 421.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003069/0.09878, allocations: 138.9 kB / 421.6 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002212/0.09901, allocations: 83.83 kB / 421.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005351/0.09954, allocations: 438.4 kB / 422.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.09971, allocations: 68.03 kB / 422.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001862/0.09989, allocations: 155.5 kB / 422.3 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002408/0.1001, allocations: 187.2 kB / 422.5 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-05/0.1002, allocations: 32 kB / 422.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.1002, allocations: 36 kB / 422.6 MB, free: 7.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.215e-05/0.1003, allocations: 75.75 kB / 422.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001893/0.1005, allocations: 195.1 kB / 422.8 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004843/0.101, allocations: 438.2 kB / 423.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.101, allocations: 0 / 423.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.101, allocations: 0 / 423.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.101, allocations: 0 / 423.3 MB, free: 7.133 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.001155/0.1022, allocations: 0.6948 MB / 423.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1022, allocations: 8.031 kB / 424 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.1023, allocations: 67.23 kB / 424 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.56e-05/0.1024, allocations: 44.7 kB / 424.1 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.1029, allocations: 307.6 kB / 424.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.103, allocations: 50.81 kB / 424.4 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.581e-05/0.103, allocations: 28.38 kB / 424.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.1036, allocations: 335.2 kB / 424.8 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1036, allocations: 8 kB / 424.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.926e-05/0.1036, allocations: 15.94 kB / 424.8 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-06/0.1036, allocations: 4 kB / 424.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.104, allocations: 210.1 kB / 425 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001505/0.1055, allocations: 0.8305 MB / 425.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005474/0.1061, allocations: 249.3 kB / 426.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002131/0.1063, allocations: 116.8 kB / 426.2 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.373e-05/0.1063, allocations: 4 kB / 426.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.1064, allocations: 38.56 kB / 426.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.165e-06/0.1064, allocations: 0 / 426.2 MB, free: 3.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001066/0.1074, allocations: 483.4 kB / 426.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001678/0.1076, allocations: 320.4 kB / 427 MB, free: 3.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003123/0.1079, allocations: 279 kB / 427.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.108, allocations: 33.7 kB / 427.3 MB, free: 2.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001262/0.1081, allocations: 176.7 kB / 427.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.787e-05/0.1082, allocations: 115 kB / 427.6 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.1083, allocations: 69.7 kB / 427.7 MB, free: 2.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1085, allocations: 342.7 kB / 428 MB, free: 2.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.1087, allocations: 95.95 kB / 428.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003128/0.109, allocations: 212.4 kB / 428.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/0.1095, allocations: 262.7 kB / 428.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1095, allocations: 0 / 428.6 MB, free: 1.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000677/0.1101, allocations: 369.7 kB / 428.9 MB, free: 1.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.04e-05/0.1102, allocations: 33.7 kB / 429 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1102, allocations: 0 / 429 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001582/0.1103, allocations: 40.84 kB / 429 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/0.1114, allocations: 163.8 kB / 429.2 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004055/0.1154, allocations: 3.232 MB / 432.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.1157, allocations: 35.81 kB / 432.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.851e-05/0.1158, allocations: 12 kB / 432.4 MB, free: 13.23 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 (33): * Single equations (assignments): 30 * 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.0002046/0.116, allocations: 157.7 kB / 432.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.081e-05/0.116, allocations: 39.75 kB / 432.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.94e-05/0.1161, allocations: 35.08 kB / 432.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.1161, allocations: 4 kB / 432.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1161, allocations: 3.938 kB / 432.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007997/0.1169, allocations: 0.654 MB / 433.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004721/0.1174, allocations: 389.3 kB / 433.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1174, allocations: 4 kB / 433.7 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.1187, allocations: 211.7 kB / 433.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.295e-05/0.1187, allocations: 24.84 kB / 433.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.1188, allocations: 4 kB / 433.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003305/0.1221, allocations: 3.037 MB / 437 MB, free: 8.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1221, allocations: 3.984 kB / 437 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008694/0.1229, allocations: 0.5092 MB / 437.5 MB, free: 7.695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001771/0.1231, allocations: 140.8 kB / 437.6 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/0.1232, allocations: 8 kB / 437.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002567/0.1234, allocations: 19.92 kB / 437.7 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.126e-05/0.1235, allocations: 19.97 kB / 437.7 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.1235, allocations: 11.98 kB / 437.7 MB, free: 7.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002209/0.1237, allocations: 202 kB / 437.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1237, allocations: 0 / 437.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004388/0.1242, allocations: 111.9 kB / 438 MB, free: 7.176 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * 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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00121/0.1254, allocations: 1.065 MB / 439.1 MB, free: 6.082 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.1269, allocations: 0.5176 MB / 439.6 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.1269, allocations: 7.938 kB / 439.6 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001385/0.1283, allocations: 390.8 kB / 440 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005533/0.1289, allocations: 88.81 kB / 440.1 MB, free: 5.047 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004975/0.1338, allocations: 3.405 MB / 443.5 MB, free: 1.527 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004101/0.1343, allocations: 0.7801 MB / 444.2 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.1344, allocations: 38.97 kB / 444.3 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001608/0.1346, allocations: 111.3 kB / 444.4 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1346, allocations: 0 / 444.4 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2102/0.3448, allocations: 9.69 MB / 454.1 MB, free: 30.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.04, allocations: 9.672 kB / 454.1 MB, free: 30.08 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.412481223698705]