Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 84.98 kB / 22.99 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 174 kB / 26.4 MB, free: 7.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9983/0.9983, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 3.938 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.355e-05/1.486e-05, allocations: 6.25 kB / 252.2 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002937/0.002952, allocations: 2.746 MB / 255 MB, free: 4.496 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001104/0.004057, allocations: 0.8577 MB / 255.8 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001198/0.004177, allocations: 0 / 255.8 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.004391, allocations: 75.41 kB / 255.9 MB, free: 3.555 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.004617, allocations: 138.8 kB / 256.1 MB, free: 3.418 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001809/0.004798, allocations: 95.8 kB / 256.1 MB, free: 3.324 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004393/0.005237, allocations: 450.2 kB / 256.6 MB, free: 2.883 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.005376, allocations: 63.95 kB / 256.6 MB, free: 2.816 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002121/0.005588, allocations: 247.5 kB / 256.9 MB, free: 2.574 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.005738, allocations: 131.6 kB / 257 MB, free: 2.445 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.113e-05/0.005779, allocations: 36 kB / 257.1 MB, free: 2.41 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.653e-05/0.005816, allocations: 36 kB / 257.1 MB, free: 2.375 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.925e-05/0.005865, allocations: 75.73 kB / 257.2 MB, free: 2.301 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.677e-05/0.005962, allocations: 139.7 kB / 257.3 MB, free: 2.164 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.006213, allocations: 298.9 kB / 257.6 MB, free: 1.871 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.006215, allocations: 4 kB / 257.6 MB, free: 1.867 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.42e-07/0.006215, allocations: 0 / 257.6 MB, free: 1.867 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.228e-06/0.00622, allocations: 0 / 257.6 MB, free: 1.867 MB / 234.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.0006736/0.006893, allocations: 0.7117 MB / 258.3 MB, free: 1.105 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.843e-05/0.006922, allocations: 11.98 kB / 258.3 MB, free: 1.094 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.304e-05/0.006995, allocations: 64.7 kB / 258.4 MB, free: 1.031 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.007231, allocations: 248.5 kB / 258.6 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.184e-05/0.007303, allocations: 102.2 kB / 258.7 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.007338, allocations: 24.38 kB / 258.7 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003814/0.007719, allocations: 0.6431 MB / 259.4 MB, free: 15.84 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.007732, allocations: 4.172 kB / 259.4 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.007752, allocations: 16.12 kB / 259.4 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.007757, allocations: 4 kB / 259.4 MB, free: 15.81 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.007869, allocations: 83.41 kB / 259.5 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007596/0.008628, allocations: 0.6347 MB / 260.1 MB, free: 15.07 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.008832, allocations: 155.5 kB / 260.3 MB, free: 14.91 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.136e-05/0.008893, allocations: 59.69 kB / 260.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.008916, allocations: 8 kB / 260.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.008938, allocations: 45.39 kB / 260.4 MB, free: 14.78 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.433e-06/0.00894, allocations: 0 / 260.4 MB, free: 14.78 MB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004317/0.009371, allocations: 277 kB / 260.7 MB, free: 14.5 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003638/0.009735, allocations: 312.4 kB / 261 MB, free: 14.12 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.009921, allocations: 330.1 kB / 261.3 MB, free: 13.78 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.009946, allocations: 33.7 kB / 261.3 MB, free: 13.74 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.01006, allocations: 227.5 kB / 261.5 MB, free: 13.52 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.769e-05/0.01012, allocations: 107.1 kB / 261.6 MB, free: 13.41 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.983e-05/0.0102, allocations: 75.28 kB / 261.7 MB, free: 13.33 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.01034, allocations: 0.5196 MB / 262.2 MB, free: 12.8 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.757e-05/0.01041, allocations: 61.67 kB / 262.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000226/0.01064, allocations: 466.3 kB / 262.8 MB, free: 12.15 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.01079, allocations: 174 kB / 262.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.0108, allocations: 0 / 262.9 MB, free: 11.96 MB / 250.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0002677/0.01106, allocations: 297.4 kB / 263.2 MB, free: 11.64 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.01109, allocations: 37.64 kB / 263.3 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.0111, allocations: 3.984 kB / 263.3 MB, free: 11.6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001002/0.0112, allocations: 35.66 kB / 263.3 MB, free: 11.56 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.0116, allocations: 131.9 kB / 263.4 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.01361, allocations: 3.683 MB / 267.1 MB, free: 7.523 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.01375, allocations: 31.83 kB / 267.1 MB, free: 7.492 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.01376, allocations: 12 kB / 267.1 MB, free: 7.48 MB / 250.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.0001164/0.01388, allocations: 176.5 kB / 267.3 MB, free: 7.297 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.164e-05/0.01393, allocations: 47.81 kB / 267.4 MB, free: 7.25 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.42e-05/0.01397, allocations: 39.08 kB / 267.4 MB, free: 7.211 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.01398, allocations: 4 kB / 267.4 MB, free: 7.207 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.01398, allocations: 3.984 kB / 267.4 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006535/0.01464, allocations: 0.5601 MB / 268 MB, free: 6.535 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002366/0.01487, allocations: 233 kB / 268.2 MB, free: 6.281 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.01487, allocations: 0 / 268.2 MB, free: 6.281 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005421/0.01542, allocations: 175.8 kB / 268.4 MB, free: 6.109 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-05/0.01548, allocations: 27.67 kB / 268.4 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.01549, allocations: 4 kB / 268.4 MB, free: 6.074 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001942/0.01743, allocations: 3.593 MB / 272 MB, free: 2.25 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.01743, allocations: 4.156 kB / 272 MB, free: 2.246 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00035/0.01778, allocations: 411.5 kB / 272.4 MB, free: 1.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.177e-05/0.01787, allocations: 67.83 kB / 272.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.486e-05/0.01789, allocations: 4 kB / 272.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001207/0.01801, allocations: 19.98 kB / 272.5 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.119e-05/0.01807, allocations: 27.94 kB / 272.5 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.003e-05/0.01808, allocations: 4 kB / 272.5 MB, free: 1.699 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.01819, allocations: 218.9 kB / 272.7 MB, free: 1.488 MB / 250.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01819, allocations: 0 / 272.7 MB, free: 1.488 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002802/0.01847, allocations: 99.95 kB / 272.8 MB, free: 1.391 MB / 250.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 9.838e-05/0.01857, allocations: 115.2 kB / 272.9 MB, free: 1.266 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006591/0.01923, allocations: 0.4913 MB / 273.4 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.01923, allocations: 0 / 273.4 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005329/0.01976, allocations: 393.1 kB / 273.8 MB, free: 336 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003149/0.02008, allocations: 92.56 kB / 273.9 MB, free: 244 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.02147, allocations: 0.752 MB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.566e-05/0.02155, allocations: 93.3 kB / 274.8 MB, free: 15.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.522e-05/0.02164, allocations: 34.97 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006516/0.02229, allocations: 218.1 kB / 275 MB, free: 15.1 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.0223, allocations: 0 / 275 MB, free: 15.1 MB / 266.7 MB Notification: Performance of Templates: time 0.008962/0.03126, allocations: 7.361 MB / 282.4 MB, free: 7.793 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & ./Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 2.943678179755807]