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.001493/0.001493, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001783/0.001783, allocations: 184.9 kB / 24.45 MB, free: 3.961 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.431/1.431, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.002364/0.002364, allocations: 47.92 kB / 371.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2593, allocations: 52.19 MB / 423.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003917/0.2632, allocations: 2.553 MB / 426.4 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.2646, allocations: 0.7867 MB / 427.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.2647, allocations: 7.938 kB / 427.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002611/0.265, allocations: 75.42 kB / 427.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.2653, allocations: 134.9 kB / 427.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002159/0.2655, allocations: 87.83 kB / 427.4 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005192/0.266, allocations: 434.4 kB / 427.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.2662, allocations: 71.61 kB / 427.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.2664, allocations: 163.4 kB / 428.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.2666, allocations: 151.2 kB / 428.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.365e-05/0.2667, allocations: 36 kB / 428.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.185e-05/0.2668, allocations: 32 kB / 428.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.452e-05/0.2668, allocations: 83.73 kB / 428.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001775/0.267, allocations: 163.2 kB / 428.6 MB, free: 9.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004838/0.2675, allocations: 441.3 kB / 429 MB, free: 9.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2675, allocations: 4 kB / 429 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2675, allocations: 4 kB / 429 MB, free: 9.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.2675, allocations: 0 / 429 MB, free: 9.266 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.0011/0.2686, allocations: 0.6118 MB / 429.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2687, allocations: 12.03 kB / 429.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.93e-05/0.2688, allocations: 40.7 kB / 429.7 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.2692, allocations: 250.4 kB / 429.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.2694, allocations: 110 kB / 430 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.229e-05/0.2694, allocations: 20.38 kB / 430 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007368/0.2702, allocations: 0.6616 MB / 430.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.2702, allocations: 4 kB / 430.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.148e-05/0.2702, allocations: 8 kB / 430.7 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2702, allocations: 8 kB / 430.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004322/0.2706, allocations: 201.6 kB / 430.9 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001369/0.272, allocations: 0.6581 MB / 431.6 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005699/0.2726, allocations: 250.9 kB / 431.8 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.2728, allocations: 112.8 kB / 431.9 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/0.2728, allocations: 8 kB / 431.9 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.2729, allocations: 42.55 kB / 432 MB, free: 6.031 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.234e-06/0.2729, allocations: 0 / 432 MB, free: 6.031 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001051/0.2739, allocations: 406.2 kB / 432.4 MB, free: 5.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001757/0.2741, allocations: 320.4 kB / 432.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003047/0.2744, allocations: 280.2 kB / 433 MB, free: 4.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.723e-05/0.2744, allocations: 33.7 kB / 433 MB, free: 4.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.2746, allocations: 172.8 kB / 433.2 MB, free: 4.746 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.854e-05/0.2747, allocations: 107 kB / 433.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.2748, allocations: 69.69 kB / 433.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.2749, allocations: 334.8 kB / 433.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.2752, allocations: 129.3 kB / 433.8 MB, free: 4.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004617/0.2756, allocations: 491.6 kB / 434.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.2761, allocations: 267.5 kB / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2761, allocations: 0 / 434.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006678/0.2768, allocations: 395.4 kB / 434.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.2768, allocations: 33.7 kB / 434.9 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2768, allocations: 4.094 kB / 434.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.277, allocations: 44.83 kB / 435 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009506/0.2779, allocations: 159.8 kB / 435.1 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/0.2817, allocations: 2.961 MB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003363/0.282, allocations: 31.97 kB / 438.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.724e-05/0.282, allocations: 16 kB / 438.2 MB, free: 15.36 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.000212/0.2822, allocations: 153.7 kB / 438.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.149e-05/0.2823, allocations: 35.75 kB / 438.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.973e-05/0.2824, allocations: 39.27 kB / 438.4 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.2824, allocations: 8.078 kB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2824, allocations: 4 kB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007625/0.2832, allocations: 0.6511 MB / 439 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003661/0.2835, allocations: 269 kB / 439.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2835, allocations: 4 kB / 439.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.2848, allocations: 211.7 kB / 439.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.513e-05/0.2849, allocations: 24.84 kB / 439.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.2849, allocations: 4 kB / 439.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/0.2882, allocations: 2.8 MB / 442.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2882, allocations: 0 / 442.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008604/0.289, allocations: 0.5045 MB / 442.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.2892, allocations: 63.66 kB / 442.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.912e-05/0.2892, allocations: 15.92 kB / 442.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.2895, allocations: 15.98 kB / 442.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.363e-05/0.2896, allocations: 24.09 kB / 443 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.2896, allocations: 15.98 kB / 443 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.2898, allocations: 199.1 kB / 443.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2898, allocations: 0 / 443.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000428/0.2902, allocations: 103.9 kB / 443.3 MB, free: 9.863 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.0001354/0.2904, allocations: 107.2 kB / 443.4 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.2919, allocations: 0.558 MB / 443.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.2919, allocations: 0 / 443.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.2933, allocations: 386.4 kB / 444.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.2938, allocations: 99.38 kB / 444.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.2956, allocations: 0.8902 MB / 445.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001668/0.2957, allocations: 173.8 kB / 445.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.724e-05/0.2958, allocations: 31.44 kB / 445.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2958, allocations: 0 / 445.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of Templates: time 0.009774/0.3056, allocations: 6.992 MB / 452.5 MB, free: 0.5781 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/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.117730999365449]