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.001582/0.001582, allocations: 119.6 kB / 18.45 MB, free: 4.562 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.001712/0.001712, allocations: 194.6 kB / 21.39 MB, free: 1.629 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.46/1.46, allocations: 225.6 MB / 249.8 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: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 55.91 kB / 366.8 MB, free: 376 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1134, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004411/0.1178, allocations: 2.756 MB / 421.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.1196, allocations: 0.8372 MB / 422.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002844/0.1199, allocations: 0 / 422.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003561/0.1202, allocations: 79.41 kB / 422.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004231/0.1206, allocations: 138.9 kB / 422.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002827/0.1209, allocations: 83.83 kB / 422.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006372/0.1216, allocations: 442.4 kB / 423.3 MB, free: 7.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1217, allocations: 71.31 kB / 423.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002334/0.122, allocations: 155.5 kB / 423.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002839/0.1223, allocations: 183.2 kB / 423.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.522e-05/0.1223, allocations: 36 kB / 423.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.972e-05/0.1224, allocations: 36 kB / 423.7 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.312e-05/0.1225, allocations: 79.67 kB / 423.8 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000215/0.1227, allocations: 191.1 kB / 424 MB, free: 7.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005302/0.1232, allocations: 442.2 kB / 424.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1232, allocations: 0 / 424.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1232, allocations: 0 / 424.4 MB, free: 6.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.1233, allocations: 4 kB / 424.4 MB, free: 6.605 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.001329/0.1246, allocations: 0.6793 MB / 425.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.1246, allocations: 15.89 kB / 425.1 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.1247, allocations: 40.7 kB / 425.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005557/0.1253, allocations: 319.6 kB / 425.5 MB, free: 5.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.1254, allocations: 50.69 kB / 425.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.1255, allocations: 20.38 kB / 425.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005727/0.126, allocations: 321.6 kB / 425.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.126, allocations: 0 / 425.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.456e-05/0.1261, allocations: 15.94 kB / 425.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.1261, allocations: 4 kB / 425.9 MB, free: 5.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004426/0.1265, allocations: 201.6 kB / 426.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001556/0.1281, allocations: 0.8027 MB / 426.9 MB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005741/0.1287, allocations: 257.8 kB / 427.1 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.1289, allocations: 112.8 kB / 427.2 MB, free: 3.598 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.1289, allocations: 4 kB / 427.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.799e-05/0.129, allocations: 38.56 kB / 427.3 MB, free: 3.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.004e-06/0.129, allocations: 4 kB / 427.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001107/0.1301, allocations: 479.4 kB / 427.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001776/0.1302, allocations: 320.4 kB / 428.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003133/0.1306, allocations: 275 kB / 428.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.1306, allocations: 41.7 kB / 428.4 MB, free: 2.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.1307, allocations: 168.8 kB / 428.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.726e-05/0.1308, allocations: 111 kB / 428.6 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001117/0.1309, allocations: 69.69 kB / 428.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1311, allocations: 342.8 kB / 429 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002151/0.1313, allocations: 87.95 kB / 429.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003542/0.1317, allocations: 220.3 kB / 429.3 MB, free: 1.297 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004872/0.1322, allocations: 270.6 kB / 429.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1322, allocations: 0 / 429.6 MB, free: 1.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006845/0.1329, allocations: 361.8 kB / 430 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.223e-05/0.1329, allocations: 29.7 kB / 430 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.1329, allocations: 96 / 430 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001709/0.1331, allocations: 48.88 kB / 430 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009619/0.134, allocations: 159.8 kB / 430.2 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004037/0.1381, allocations: 3.229 MB / 433.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003469/0.1384, allocations: 35.77 kB / 433.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.334e-05/0.1384, allocations: 12 kB / 433.5 MB, free: 12.85 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.0002405/0.1387, allocations: 149.7 kB / 433.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.366e-05/0.1388, allocations: 35.91 kB / 433.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.682e-05/0.1389, allocations: 43.06 kB / 433.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.1389, allocations: 0 / 433.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1389, allocations: 11.94 kB / 433.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00082/0.1397, allocations: 0.6501 MB / 434.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005513/0.1403, allocations: 397.2 kB / 434.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1403, allocations: 0 / 434.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001244/0.1415, allocations: 203.8 kB / 434.9 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.826e-05/0.1416, allocations: 24.84 kB / 435 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.218e-05/0.1416, allocations: 4 kB / 435 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003451/0.1451, allocations: 3.037 MB / 438 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1451, allocations: 4.156 kB / 438 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.1461, allocations: 0.509 MB / 438.5 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.1463, allocations: 144.8 kB / 438.7 MB, free: 7.168 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.085e-05/0.1464, allocations: 4 kB / 438.7 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.1467, allocations: 23.98 kB / 438.7 MB, free: 7.141 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.814e-05/0.1467, allocations: 23.97 kB / 438.7 MB, free: 7.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.1468, allocations: 8 kB / 438.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002417/0.147, allocations: 198 kB / 438.9 MB, free: 6.914 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.147, allocations: 0 / 438.9 MB, free: 6.914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004982/0.1475, allocations: 107.9 kB / 439 MB, free: 6.809 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.000167/0.1477, allocations: 111.1 kB / 439.1 MB, free: 6.691 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.1494, allocations: 0.5254 MB / 439.7 MB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.1494, allocations: 8 kB / 439.7 MB, free: 6.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001483/0.1509, allocations: 394.3 kB / 440 MB, free: 5.734 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006006/0.1515, allocations: 88.47 kB / 440.1 MB, free: 5.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.1536, allocations: 0.8904 MB / 441 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004875/0.1541, allocations: 0.7762 MB / 441.8 MB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.1543, allocations: 31.42 kB / 441.8 MB, free: 3.887 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1543, allocations: 0 / 441.8 MB, free: 3.887 MB / 366.1 MB Notification: Performance of Templates: time 0.2152/0.3695, allocations: 6.839 MB / 448.7 MB, free: 29.75 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 480] 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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.141323087009368]