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.001609/0.001609, allocations: 119.5 kB / 18.41 MB, free: 4.684 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.001716/0.001716, allocations: 192.3 kB / 21.35 MB, free: 1.75 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.472/1.472, allocations: 222.9 MB / 247 MB, free: 4.23 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.001618/0.001618, allocations: 52.06 kB / 358.6 MB, free: 8.398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1163, allocations: 49.44 MB / 408.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.004245/0.1206, allocations: 2.76 MB / 410.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.1221, allocations: 0.8178 MB / 411.7 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.1222, allocations: 7.938 kB / 411.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003046/0.1225, allocations: 79.39 kB / 411.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.1228, allocations: 138.9 kB / 411.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002112/0.1231, allocations: 83.81 kB / 412 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005253/0.1236, allocations: 434.4 kB / 412.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002036/0.1238, allocations: 99.3 kB / 412.5 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001975/0.124, allocations: 163.4 kB / 412.6 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.1243, allocations: 183.2 kB / 412.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.211e-05/0.1244, allocations: 32 kB / 412.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.394e-05/0.1244, allocations: 36 kB / 412.9 MB, free: 2.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.779e-05/0.1245, allocations: 75.75 kB / 413 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002186/0.1248, allocations: 203 kB / 413.2 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000578/0.1253, allocations: 434.3 kB / 413.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1254, allocations: 0 / 413.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1254, allocations: 0 / 413.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1254, allocations: 0 / 413.6 MB, free: 1.379 MB / 334.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.001236/0.1266, allocations: 0.6871 MB / 414.3 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1267, allocations: 11.89 kB / 414.3 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.1268, allocations: 44.7 kB / 414.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/0.1273, allocations: 307.6 kB / 414.6 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.1274, allocations: 50.69 kB / 414.7 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.1275, allocations: 24.31 kB / 414.7 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005893/0.1281, allocations: 321.6 kB / 415 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.1281, allocations: 4 kB / 415 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.111e-05/0.1282, allocations: 12 kB / 415 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.1282, allocations: 4 kB / 415 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.1286, allocations: 201.6 kB / 415.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.1302, allocations: 0.8065 MB / 416 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006114/0.1308, allocations: 271.7 kB / 416.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002512/0.1311, allocations: 124.8 kB / 416.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.115e-05/0.1311, allocations: 7.984 kB / 416.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.1311, allocations: 42.5 kB / 416.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.422e-06/0.1312, allocations: 0 / 416.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.001193/0.1324, allocations: 491.3 kB / 417 MB, free: 13.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002274/0.1326, allocations: 312.4 kB / 417.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003531/0.133, allocations: 283 kB / 417.5 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.039e-05/0.133, allocations: 33.7 kB / 417.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1332, allocations: 164.9 kB / 417.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.1333, allocations: 111 kB / 417.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/0.1334, allocations: 65.69 kB / 417.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.1336, allocations: 342.8 kB / 418.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.1339, allocations: 91.95 kB / 418.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003565/0.1343, allocations: 216.4 kB / 418.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005154/0.1348, allocations: 266.6 kB / 418.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.89e-06/0.1348, allocations: 4 kB / 418.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007381/0.1355, allocations: 373.8 kB / 419.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.974e-05/0.1356, allocations: 29.7 kB / 419.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1356, allocations: 0 / 419.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001955/0.1358, allocations: 36.84 kB / 419.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.1369, allocations: 163.8 kB / 419.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004348/0.1412, allocations: 3.229 MB / 422.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.1416, allocations: 43.81 kB / 422.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.02e-05/0.1416, allocations: 8 kB / 422.7 MB, free: 7.582 MB / 350.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.0002505/0.1419, allocations: 157.7 kB / 422.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.647e-05/0.142, allocations: 35.81 kB / 422.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.862e-05/0.1421, allocations: 39.08 kB / 422.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1421, allocations: 0 / 422.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.144e-06/0.1421, allocations: 4 kB / 422.9 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008361/0.1429, allocations: 0.6501 MB / 423.6 MB, free: 6.582 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005013/0.1434, allocations: 385.2 kB / 423.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1434, allocations: 0 / 423.9 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.1448, allocations: 215.7 kB / 424.1 MB, free: 5.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.418e-05/0.1449, allocations: 20.84 kB / 424.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.1449, allocations: 8 kB / 424.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003753/0.1487, allocations: 3.037 MB / 427.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1487, allocations: 0 / 427.2 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009675/0.1497, allocations: 0.5091 MB / 427.7 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.1499, allocations: 144.9 kB / 427.9 MB, free: 1.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.934e-05/0.15, allocations: 19.88 kB / 427.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.1502, allocations: 15.98 kB / 427.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.487e-05/0.1503, allocations: 19.97 kB / 427.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-05/0.1503, allocations: 12 kB / 427.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.1506, allocations: 198 kB / 428.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1506, allocations: 0 / 428.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004501/0.151, allocations: 103.9 kB / 428.2 MB, free: 1.547 MB / 350.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.0001801/0.1512, allocations: 119.1 kB / 428.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.1529, allocations: 0.5449 MB / 428.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.1529, allocations: 4 kB / 428.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001441/0.1544, allocations: 398.4 kB / 429.3 MB, free: 456 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.1549, allocations: 82.94 kB / 429.4 MB, free: 372 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1941/0.349, allocations: 0.8837 MB / 430.2 MB, free: 22.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.3493, allocations: 0.7761 MB / 431 MB, free: 21.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3494, allocations: 31.62 kB / 431 MB, free: 21.81 MB / 350.1 MB Notification: Performance of SimCode: time 1.122e-06/0.3494, allocations: 0 / 431 MB, free: 21.81 MB / 350.1 MB Notification: Performance of Templates: time 0.01094/0.3604, allocations: 6.808 MB / 437.9 MB, free: 21.49 MB / 350.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_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: 8.07375325798057]