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.001566/0.001566, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.001619/0.001619, allocations: 189.3 kB / 24.48 MB, free: 4.164 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.423/1.423, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.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.001617/0.001617, allocations: 47.92 kB / 371.7 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2612, allocations: 52.19 MB / 423.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.00414/0.2654, allocations: 2.779 MB / 426.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00151/0.2669, allocations: 0.8372 MB / 427.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.267, allocations: 4 kB / 427.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002731/0.2673, allocations: 79.39 kB / 427.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.2676, allocations: 130.9 kB / 427.7 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002315/0.2678, allocations: 91.81 kB / 427.8 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005701/0.2684, allocations: 437.8 kB / 428.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.2686, allocations: 71.88 kB / 428.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.2688, allocations: 171.4 kB / 428.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002704/0.269, allocations: 175.3 kB / 428.6 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.736e-05/0.2691, allocations: 36 kB / 428.7 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.439e-05/0.2692, allocations: 36 kB / 428.7 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.705e-05/0.2693, allocations: 75.64 kB / 428.8 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001975/0.2694, allocations: 195.2 kB / 429 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004979/0.2699, allocations: 435.5 kB / 429.4 MB, free: 9.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.27, allocations: 7.922 kB / 429.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.27, allocations: 0 / 429.4 MB, free: 9.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.27, allocations: 4 kB / 429.4 MB, free: 9.133 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.0012/0.2712, allocations: 0.6157 MB / 430 MB, free: 8.48 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.2712, allocations: 8.031 kB / 430 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.982e-05/0.2713, allocations: 44.7 kB / 430.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004621/0.2718, allocations: 254.4 kB / 430.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/0.2719, allocations: 102 kB / 430.4 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.272, allocations: 24.38 kB / 430.4 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.2725, allocations: 317.6 kB / 430.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.2725, allocations: 0 / 430.7 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.2725, allocations: 12 kB / 430.7 MB, free: 7.648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.2726, allocations: 4 kB / 430.8 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004524/0.273, allocations: 201.6 kB / 430.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.2746, allocations: 0.7744 MB / 431.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005842/0.2751, allocations: 251 kB / 432 MB, free: 6.379 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.2754, allocations: 104.9 kB / 432.1 MB, free: 6.273 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.988e-05/0.2754, allocations: 8 kB / 432.1 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.596e-05/0.2754, allocations: 42.55 kB / 432.1 MB, free: 6.215 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.744e-06/0.2754, allocations: 4 kB / 432.1 MB, free: 6.211 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001072/0.2765, allocations: 398.2 kB / 432.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/0.2767, allocations: 316.4 kB / 432.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.2771, allocations: 280.2 kB / 433.1 MB, free: 5.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.516e-05/0.2771, allocations: 37.7 kB / 433.1 MB, free: 5.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.2772, allocations: 172.8 kB / 433.3 MB, free: 4.934 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.2774, allocations: 111 kB / 433.4 MB, free: 4.824 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.2775, allocations: 69.69 kB / 433.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.2776, allocations: 338.8 kB / 433.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.2779, allocations: 91.95 kB / 433.9 MB, free: 4.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003441/0.2782, allocations: 220.5 kB / 434.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004808/0.2787, allocations: 271.5 kB / 434.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.2787, allocations: 0 / 434.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007003/0.2794, allocations: 361.8 kB / 434.7 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.2794, allocations: 33.7 kB / 434.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.2795, allocations: 0 / 434.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.2796, allocations: 40.94 kB / 434.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.2807, allocations: 163.8 kB / 435 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004035/0.2847, allocations: 3.023 MB / 438 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003605/0.2851, allocations: 31.88 kB / 438 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.2851, allocations: 15.98 kB / 438 MB, free: 15.87 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.0002258/0.2853, allocations: 157.7 kB / 438.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.959e-05/0.2854, allocations: 31.81 kB / 438.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.678e-05/0.2855, allocations: 39.08 kB / 438.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.2855, allocations: 4 kB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.2855, allocations: 4 kB / 438.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007658/0.2862, allocations: 0.6472 MB / 438.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004757/0.2867, allocations: 360.3 kB / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.2867, allocations: 96 / 439.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/0.288, allocations: 211.7 kB / 439.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.76e-05/0.2881, allocations: 24.84 kB / 439.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.2882, allocations: 4 kB / 439.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00345/0.2916, allocations: 2.846 MB / 442.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2916, allocations: 128 / 442.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009526/0.2926, allocations: 0.5123 MB / 442.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001726/0.2927, allocations: 63.75 kB / 442.9 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/0.2928, allocations: 8 kB / 442.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002686/0.293, allocations: 19.98 kB / 442.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.894e-05/0.2931, allocations: 27.95 kB / 443 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.2932, allocations: 8 kB / 443 MB, free: 10.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.2934, allocations: 203.1 kB / 443.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2934, allocations: 0 / 443.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004708/0.2939, allocations: 111.8 kB / 443.3 MB, free: 10.2 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.0001509/0.294, allocations: 111.1 kB / 443.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001601/0.2956, allocations: 0.529 MB / 443.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.2956, allocations: 8 kB / 443.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.297, allocations: 382.3 kB / 444.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/0.2976, allocations: 96.69 kB / 444.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.2995, allocations: 0.8938 MB / 445.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.2999, allocations: 0.7723 MB / 446.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.176e-05/0.3, allocations: 31.44 kB / 446.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3, allocations: 0 / 446.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of Templates: time 0.01045/0.3105, allocations: 6.843 MB / 452.9 MB, free: 492 kB / 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/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.01561640505679]