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.0009371/0.0009371, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 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.003445/0.003445, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 18.57 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 0.8385/0.8385, allocations: 173.4 MB / 201.2 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] 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 1.072e-06/1.072e-06, allocations: 7.875 kB / 319.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.445e-05/1.552e-05, allocations: 5.656 kB / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002292/0.002308, allocations: 2.539 MB / 322.2 MB, free: 3.316 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009258/0.003234, allocations: 0.7788 MB / 323 MB, free: 2.531 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.003339, allocations: 4 kB / 323 MB, free: 2.527 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.003533, allocations: 79.36 kB / 323.1 MB, free: 2.449 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001925/0.003726, allocations: 142.8 kB / 323.2 MB, free: 2.309 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001561/0.003882, allocations: 87.81 kB / 323.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003356/0.004217, allocations: 458.1 kB / 323.7 MB, free: 1.773 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.004336, allocations: 71.92 kB / 323.8 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.00451, allocations: 243.5 kB / 324.1 MB, free: 1.465 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001418/0.004651, allocations: 135.6 kB / 324.2 MB, free: 1.332 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.004689, allocations: 32 kB / 324.2 MB, free: 1.301 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.527e-05/0.004725, allocations: 36 kB / 324.3 MB, free: 1.266 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.311e-05/0.004768, allocations: 75.69 kB / 324.3 MB, free: 1.191 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.968e-05/0.004857, allocations: 139.7 kB / 324.5 MB, free: 1.055 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.005167, allocations: 454.6 kB / 324.9 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.00517, allocations: 3.984 kB / 324.9 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.005171, allocations: 0 / 324.9 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.005175, allocations: 4 kB / 324.9 MB, free: 0.6016 MB / 282.7 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.0006812/0.005856, allocations: 0.6041 MB / 325.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.005886, allocations: 8.031 kB / 325.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.055e-05/0.005947, allocations: 48.7 kB / 325.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.00621, allocations: 253.5 kB / 325.8 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.796e-05/0.006288, allocations: 102.2 kB / 325.9 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.055e-05/0.006318, allocations: 28.31 kB / 325.9 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004074/0.006726, allocations: 0.6629 MB / 326.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.006737, allocations: 192 / 326.6 MB, free: 14.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.223e-05/0.006759, allocations: 16.12 kB / 326.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.006764, allocations: 4 kB / 326.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002415/0.007006, allocations: 197.9 kB / 326.8 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007913/0.007797, allocations: 0.67 MB / 327.5 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.008122, allocations: 255 kB / 327.7 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.008242, allocations: 104.8 kB / 327.8 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.008265, allocations: 8 kB / 327.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.195e-05/0.008286, allocations: 42.5 kB / 327.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.082e-06/0.008288, allocations: 4 kB / 327.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005984/0.008886, allocations: 398.2 kB / 328.3 MB, free: 12.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.718e-05/0.008983, allocations: 316.4 kB / 328.6 MB, free: 12.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.009165, allocations: 288.2 kB / 328.9 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.009189, allocations: 33.7 kB / 328.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.858e-05/0.009268, allocations: 168.9 kB / 329.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.359e-05/0.009322, allocations: 107 kB / 329.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.903e-05/0.009391, allocations: 69.69 kB / 329.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.407e-05/0.009475, allocations: 338.8 kB / 329.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.009608, allocations: 117.7 kB / 329.7 MB, free: 11.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.009852, allocations: 499 kB / 330.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.01012, allocations: 271.5 kB / 330.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01012, allocations: 0 / 330.4 MB, free: 10.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003747/0.01049, allocations: 395.5 kB / 330.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.01052, allocations: 29.7 kB / 330.9 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.044e-06/0.01052, allocations: 4 kB / 330.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000234/0.01076, allocations: 40.92 kB / 330.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008024/0.01156, allocations: 159.8 kB / 331.1 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001989/0.01355, allocations: 2.972 MB / 334 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.01368, allocations: 35.81 kB / 334.1 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.01369, allocations: 12.09 kB / 334.1 MB, free: 6.688 MB / 298.7 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.0001028/0.01379, allocations: 154.4 kB / 334.2 MB, free: 6.527 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.027e-05/0.01386, allocations: 35.81 kB / 334.3 MB, free: 6.492 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.311e-05/0.01391, allocations: 43.02 kB / 334.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.01391, allocations: 0 / 334.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.01391, allocations: 0 / 334.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003963/0.01431, allocations: 0.6539 MB / 335 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000285/0.01459, allocations: 265 kB / 335.2 MB, free: 5.402 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.01459, allocations: 7.938 kB / 335.2 MB, free: 5.395 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005513/0.01514, allocations: 203.9 kB / 335.4 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.504e-05/0.01519, allocations: 28.78 kB / 335.5 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.0152, allocations: 8 kB / 335.5 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001642/0.01685, allocations: 2.796 MB / 338.3 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.01685, allocations: 3.938 kB / 338.3 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004617/0.01731, allocations: 0.5055 MB / 338.8 MB, free: 1.625 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.58e-05/0.01739, allocations: 63.72 kB / 338.8 MB, free: 1.562 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.01742, allocations: 7.984 kB / 338.8 MB, free: 1.555 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.01754, allocations: 12 kB / 338.9 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.01759, allocations: 27.89 kB / 338.9 MB, free: 1.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.0176, allocations: 20.05 kB / 338.9 MB, free: 1.496 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001164/0.01772, allocations: 199.1 kB / 339.1 MB, free: 1.305 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01772, allocations: 0 / 339.1 MB, free: 1.305 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002329/0.01795, allocations: 103.9 kB / 339.2 MB, free: 1.203 MB / 298.7 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 7.976e-05/0.01803, allocations: 107.2 kB / 339.3 MB, free: 1.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007658/0.0188, allocations: 0.5502 MB / 339.8 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.0188, allocations: 0 / 339.8 MB, free: 0.5039 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005922/0.01939, allocations: 386.3 kB / 340.2 MB, free: 116 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002935/0.01968, allocations: 88.55 kB / 340.3 MB, free: 28 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.02086, allocations: 0.7769 MB / 341.1 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.463e-05/0.02095, allocations: 169.8 kB / 341.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/0.02101, allocations: 36.44 kB / 341.3 MB, free: 15 MB / 314.7 MB Notification: Performance of SimCode: time 8.71e-07/0.02101, allocations: 0 / 341.3 MB, free: 15 MB / 314.7 MB Notification: Performance of Templates: time 0.00545/0.02646, allocations: 7.002 MB / 348.3 MB, free: 8.035 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","/var/lib/jenkins/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: 4.99636072665453]