Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 162.9 kB / 24.99 MB, free: 8.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9724/0.9724, allocations: 177 MB / 205.2 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 273 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.677e-05/1.813e-05, allocations: 2.312 kB / 273 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.006498/0.006516, allocations: 2.772 MB / 275.7 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.008017, allocations: 0.8567 MB / 276.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001593/0.008176, allocations: 4 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002894/0.008466, allocations: 67.41 kB / 276.7 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003115/0.008777, allocations: 146.9 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.009015, allocations: 95.67 kB / 276.9 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005396/0.009554, allocations: 454.1 kB / 277.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.009732, allocations: 63.95 kB / 277.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003142/0.01005, allocations: 243.5 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.01028, allocations: 131.7 kB / 277.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.028e-05/0.01034, allocations: 32 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.027e-05/0.0104, allocations: 36 kB / 277.8 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.47e-05/0.01048, allocations: 79.67 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001644/0.01064, allocations: 143.7 kB / 278.1 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003879/0.01103, allocations: 294.9 kB / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.01103, allocations: 0 / 278.3 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01103, allocations: 4 kB / 278.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.01104, allocations: 0 / 278.4 MB, free: 12.38 MB / 266.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.001044/0.01208, allocations: 0.7157 MB / 279.1 MB, free: 11.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.01212, allocations: 11.98 kB / 279.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.01224, allocations: 60.7 kB / 279.1 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003786/0.01262, allocations: 248.5 kB / 279.4 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001225/0.01275, allocations: 98.17 kB / 279.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.189e-05/0.01281, allocations: 28.38 kB / 279.5 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000626/0.01343, allocations: 0.651 MB / 280.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.01345, allocations: 192 / 280.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.425e-05/0.01348, allocations: 16.12 kB / 280.2 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.0135, allocations: 12 kB / 280.2 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002815/0.01378, allocations: 106.9 kB / 280.3 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001305/0.01508, allocations: 0.681 MB / 281 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004002/0.01548, allocations: 182.7 kB / 281.1 MB, free: 9.316 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.01562, allocations: 71.66 kB / 281.2 MB, free: 9.242 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.01565, allocations: 4 kB / 281.2 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.01569, allocations: 49.31 kB / 281.3 MB, free: 9.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.984e-06/0.01569, allocations: 0 / 281.3 MB, free: 9.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.0008252/0.01652, allocations: 301.8 kB / 281.6 MB, free: 8.875 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.01664, allocations: 324.4 kB / 281.9 MB, free: 8.484 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003203/0.01696, allocations: 326.3 kB / 282.2 MB, free: 8.148 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.01699, allocations: 37.7 kB / 282.2 MB, free: 8.105 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.01714, allocations: 223.5 kB / 282.5 MB, free: 7.883 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.204e-05/0.01722, allocations: 99.12 kB / 282.6 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.01734, allocations: 75.31 kB / 282.6 MB, free: 7.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.0175, allocations: 0.5196 MB / 283.1 MB, free: 7.172 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.01765, allocations: 73.67 kB / 283.2 MB, free: 7.094 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003243/0.01798, allocations: 474.3 kB / 283.7 MB, free: 6.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003149/0.01829, allocations: 190 kB / 283.9 MB, free: 6.293 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.01829, allocations: 4 kB / 283.9 MB, free: 6.289 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000539/0.01883, allocations: 330.2 kB / 284.2 MB, free: 5.945 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.643e-05/0.01887, allocations: 33.7 kB / 284.2 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.01888, allocations: 4 kB / 284.2 MB, free: 5.902 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001484/0.01902, allocations: 31.67 kB / 284.3 MB, free: 5.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006671/0.01969, allocations: 135.9 kB / 284.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002844/0.02254, allocations: 3.737 MB / 288.1 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.02276, allocations: 31.83 kB / 288.2 MB, free: 1.727 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.02279, allocations: 8 kB / 288.2 MB, free: 1.719 MB / 266.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.0001555/0.02294, allocations: 188.6 kB / 288.4 MB, free: 1.523 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.346e-05/0.02303, allocations: 47.84 kB / 288.4 MB, free: 1.477 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.455e-05/0.02309, allocations: 43.02 kB / 288.4 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.02309, allocations: 0 / 288.4 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.0231, allocations: 0 / 288.4 MB, free: 1.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005148/0.02361, allocations: 0.5828 MB / 289 MB, free: 0.7422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.02397, allocations: 264.4 kB / 289.3 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.02397, allocations: 0 / 289.3 MB, free: 460 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009032/0.02488, allocations: 183.8 kB / 289.5 MB, free: 276 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.861e-05/0.02496, allocations: 23.61 kB / 289.5 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.355e-05/0.02498, allocations: 8 kB / 289.5 MB, free: 240 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002371/0.02735, allocations: 3.64 MB / 293.1 MB, free: 12.35 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.02735, allocations: 3.938 kB / 293.1 MB, free: 12.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005517/0.0279, allocations: 435.2 kB / 293.6 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.02802, allocations: 63.7 kB / 293.6 MB, free: 11.83 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.02806, allocations: 8 kB / 293.6 MB, free: 11.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.02827, allocations: 15.98 kB / 293.6 MB, free: 11.81 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.338e-05/0.02834, allocations: 27.89 kB / 293.7 MB, free: 11.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.02836, allocations: 8 kB / 293.7 MB, free: 11.77 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.02852, allocations: 223 kB / 293.9 MB, free: 11.56 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02852, allocations: 4.031 kB / 293.9 MB, free: 11.55 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.02878, allocations: 99.95 kB / 294 MB, free: 11.46 MB / 282.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 0.0001059/0.02888, allocations: 111.2 kB / 294.1 MB, free: 11.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007341/0.02962, allocations: 0.5179 MB / 294.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.02962, allocations: 0 / 294.6 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005918/0.03021, allocations: 401.7 kB / 295 MB, free: 10.36 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.03055, allocations: 88.62 kB / 295.1 MB, free: 10.28 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.03188, allocations: 0.7625 MB / 295.9 MB, free: 9.488 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.769e-05/0.03193, allocations: 93.31 kB / 296 MB, free: 9.379 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.929e-05/0.03203, allocations: 38.95 kB / 296 MB, free: 9.336 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.577e-05/0.03209, allocations: 32.48 kB / 296 MB, free: 9.305 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.03209, allocations: 0 / 296 MB, free: 9.305 MB / 282.7 MB Notification: Performance of Templates: time 0.007876/0.03996, allocations: 6.723 MB / 302.8 MB, free: 2.742 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/TwoTanks/TwoTanks.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.033780468162149]