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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|openTank1.H|openTank1.m|openTank2.H|openTank2.m",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001049/0.001049, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 56.94 kB / 306.9 MB, free: 0.6211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09211/0.09332, allocations: 50.53 MB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003431/0.09679, allocations: 2.768 MB / 360.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.09803, allocations: 0.8452 MB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.09817, allocations: 7.938 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002344/0.09843, allocations: 87.33 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.09869, allocations: 134.9 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001937/0.0989, allocations: 83.81 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.0993, allocations: 430.4 kB / 361.8 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.09947, allocations: 103.3 kB / 361.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.09962, allocations: 155.5 kB / 362.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002011/0.09983, allocations: 183.2 kB / 362.2 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.405e-05/0.09989, allocations: 36 kB / 362.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.918e-05/0.09995, allocations: 32 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.698e-05/0.1, allocations: 87.67 kB / 362.4 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.1002, allocations: 191.1 kB / 362.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003455/0.1006, allocations: 430.8 kB / 363 MB, free: 8.535 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.1006, allocations: 7.984 kB / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1006, allocations: 0 / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1006, allocations: 3.938 kB / 363 MB, free: 8.523 MB / 302.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.0009718/0.1016, allocations: 0.6755 MB / 363.7 MB, free: 7.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.1016, allocations: 8.031 kB / 363.7 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.842e-05/0.1017, allocations: 40.56 kB / 363.7 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/0.102, allocations: 307.4 kB / 364 MB, free: 7.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.531e-05/0.1021, allocations: 46.7 kB / 364.1 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.1022, allocations: 24.28 kB / 364.1 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004854/0.1027, allocations: 321.6 kB / 364.4 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.1027, allocations: 0 / 364.4 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.1027, allocations: 12 kB / 364.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.1027, allocations: 4 kB / 364.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003974/0.1031, allocations: 205.6 kB / 364.6 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001264/0.1044, allocations: 0.8064 MB / 365.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005293/0.1049, allocations: 272.1 kB / 365.7 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002051/0.1052, allocations: 120.8 kB / 365.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.1052, allocations: 4 kB / 365.8 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.1052, allocations: 38.56 kB / 365.9 MB, free: 5.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.372e-06/0.1052, allocations: 0 / 365.9 MB, free: 5.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.0009938/0.1062, allocations: 495.2 kB / 366.3 MB, free: 4.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.1064, allocations: 312.4 kB / 366.6 MB, free: 4.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002688/0.1066, allocations: 279 kB / 366.9 MB, free: 4.277 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.516e-05/0.1067, allocations: 37.7 kB / 367 MB, free: 4.234 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.1068, allocations: 172.6 kB / 367.1 MB, free: 4.059 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.113e-05/0.1069, allocations: 102.5 kB / 367.2 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.551e-05/0.107, allocations: 65.69 kB / 367.3 MB, free: 3.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1071, allocations: 342.8 kB / 367.6 MB, free: 3.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.1073, allocations: 91.7 kB / 367.7 MB, free: 3.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002716/0.1076, allocations: 212.2 kB / 367.9 MB, free: 3.199 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004129/0.108, allocations: 267.4 kB / 368.2 MB, free: 2.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.108, allocations: 3.938 kB / 368.2 MB, free: 2.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005797/0.1086, allocations: 365.6 kB / 368.5 MB, free: 2.547 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.008e-05/0.1086, allocations: 37.69 kB / 368.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1086, allocations: 0 / 368.6 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001454/0.1088, allocations: 40.94 kB / 368.6 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009572/0.1097, allocations: 155.8 kB / 368.8 MB, free: 2.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1818/0.2915, allocations: 3.227 MB / 372 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004007/0.292, allocations: 38.64 kB / 372 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.292, allocations: 13.52 kB / 372.1 MB, free: 19.48 MB / 302.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.0001818/0.2922, allocations: 155.3 kB / 372.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.288e-05/0.2923, allocations: 38.08 kB / 372.2 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.965e-05/0.2924, allocations: 39.88 kB / 372.3 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.2924, allocations: 3.125 kB / 372.3 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.2924, allocations: 0.75 kB / 372.3 MB, free: 19.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005783/0.293, allocations: 0.6539 MB / 372.9 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/0.2934, allocations: 385.7 kB / 373.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.2934, allocations: 0 / 373.3 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/0.2948, allocations: 206.6 kB / 373.5 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.615e-05/0.2949, allocations: 23.05 kB / 373.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.2949, allocations: 7.656 kB / 373.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002587/0.2975, allocations: 3.039 MB / 376.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2975, allocations: 0.875 kB / 376.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007701/0.2983, allocations: 0.5057 MB / 377.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.2984, allocations: 137.1 kB / 377.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.2985, allocations: 8.406 kB / 377.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002812/0.2988, allocations: 20.55 kB / 377.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.324e-05/0.2989, allocations: 25.3 kB / 377.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.2989, allocations: 9.969 kB / 377.3 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002029/0.2991, allocations: 200.7 kB / 377.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2991, allocations: 3.938 kB / 377.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004852/0.2996, allocations: 103.2 kB / 377.6 MB, free: 15.14 MB / 302.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.0001306/0.2997, allocations: 102.5 kB / 377.7 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.3013, allocations: 0.5603 MB / 378.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.3013, allocations: 1.125 kB / 378.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.3027, allocations: 405.5 kB / 378.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005764/0.3033, allocations: 87.64 kB / 378.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.3048, allocations: 0.8654 MB / 379.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.305, allocations: 0.7734 MB / 380.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001576/0.3052, allocations: 41.23 kB / 380.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.537e-05/0.3053, allocations: 27.7 kB / 380.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3053, allocations: 0 / 380.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of Templates: time 0.0108/0.3161, allocations: 6.193 MB / 386.6 MB, free: 12.18 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches