Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001056/0.001056, allocations: 117.7 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 63.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.2899, allocations: 50.54 MB / 409.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02745/0.3174, allocations: 28.86 MB / 438.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01918/0.3366, allocations: 15.02 MB / 453.1 MB, free: 5.707 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.3387, allocations: 39.75 kB / 453.2 MB, free: 5.668 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001674/0.3404, allocations: 0.594 MB / 453.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006243/0.3467, allocations: 2.298 MB / 456 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008797/0.3555, allocations: 3.731 MB / 459.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006514/0.3621, allocations: 4.147 MB / 463.9 MB, free: 10.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001838/0.3639, allocations: 1.156 MB / 465.1 MB, free: 9.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002826/0.3667, allocations: 1.581 MB / 466.7 MB, free: 8.109 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002761/0.3695, allocations: 1.674 MB / 468.3 MB, free: 6.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005959/0.3701, allocations: 164 kB / 468.5 MB, free: 6.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004914/0.375, allocations: 2.437 MB / 470.9 MB, free: 3.828 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009587/0.376, allocations: 0.6155 MB / 471.5 MB, free: 3.211 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001463/0.3775, allocations: 0.8711 MB / 472.4 MB, free: 2.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006194/0.3837, allocations: 3.736 MB / 476.2 MB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3837, allocations: 3.938 kB / 476.2 MB, free: 14.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3837, allocations: 0 / 476.2 MB, free: 14.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.586e-05/0.3838, allocations: 0 / 476.2 MB, free: 14.59 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005694/0.3895, allocations: 2.2 MB / 478.4 MB, free: 12.33 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3896, allocations: 12.03 kB / 478.4 MB, free: 12.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006163/0.3902, allocations: 174.1 kB / 478.5 MB, free: 12.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/0.3922, allocations: 1.057 MB / 479.6 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.3923, allocations: 187 kB / 479.8 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002042/0.3925, allocations: 99.97 kB / 479.9 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002829/0.3954, allocations: 1.749 MB / 481.6 MB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.681e-05/0.3954, allocations: 0 / 481.6 MB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.3956, allocations: 43.97 kB / 481.7 MB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001514/0.3957, allocations: 117.9 kB / 481.8 MB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002927/0.3987, allocations: 1.78 MB / 483.6 MB, free: 6.996 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01156/0.4102, allocations: 6.703 MB / 490.3 MB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002022/0.4123, allocations: 1.238 MB / 491.5 MB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001111/0.4134, allocations: 0.7716 MB / 492.3 MB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006236/0.4197, allocations: 4.263 MB / 496.5 MB, free: 9.262 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.4197, allocations: 47.56 kB / 496.6 MB, free: 9.207 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007033/0.4204, allocations: 174.7 kB / 496.8 MB, free: 9.035 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.569e-06/0.4204, allocations: 3.938 kB / 496.8 MB, free: 9.031 MB / 414.1 MB Notification: Performance of matching and sorting (n=112): time 0.01871/0.4392, allocations: 5.687 MB / 0.4907 GB, free: 3.285 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.503e-05/0.4393, allocations: 141.5 kB / 0.4908 GB, free: 3.117 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001898/0.4412, allocations: 1.257 MB / 0.492 GB, free: 1.852 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001385/0.4413, allocations: 53.64 kB / 0.4921 GB, free: 1.793 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004621/0.4418, allocations: 0.6091 MB / 0.4927 GB, free: 1.176 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003622/0.4422, allocations: 390.3 kB / 0.4931 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/0.4427, allocations: 295.4 kB / 0.4933 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.4428, allocations: 301.1 kB / 0.4936 GB, free: 200 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.444, allocations: 0.7231 MB / 0.4943 GB, free: 15.46 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.4456, allocations: 1.068 MB / 0.4954 GB, free: 14.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/0.4482, allocations: 1.739 MB / 0.4971 GB, free: 12.38 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.4483, allocations: 4 kB / 0.4971 GB, free: 12.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004168/0.4524, allocations: 2.284 MB / 0.4993 GB, free: 10.08 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.035e-05/0.4525, allocations: 11.94 kB / 0.4993 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.4525, allocations: 12 kB / 0.4993 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00711/0.4596, allocations: 1.285 MB / 0.5006 GB, free: 8.766 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001403/0.4611, allocations: 299.5 kB / 0.5009 GB, free: 8.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002453/0.4635, allocations: 1.603 MB / 0.5024 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.4649, allocations: 51.97 kB / 0.5025 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002236/0.4652, allocations: 75.97 kB / 0.5026 GB, free: 6.715 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001734/0.4669, allocations: 0.9762 MB / 0.5035 GB, free: 5.734 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001479/0.4684, allocations: 1.063 MB / 0.5045 GB, free: 4.523 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002596/0.471, allocations: 1.726 MB / 0.5062 GB, free: 2.656 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.265e-06/0.471, allocations: 4 kB / 0.5062 GB, free: 2.652 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004001/0.475, allocations: 2.195 MB / 0.5084 GB, free: 456 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.4751, allocations: 8 kB / 0.5084 GB, free: 448 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.4751, allocations: 12 kB / 0.5084 GB, free: 436 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006175/0.4813, allocations: 1.101 MB / 0.5095 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.4825, allocations: 307.5 kB / 0.5098 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001946/0.4844, allocations: 1.45 MB / 0.5112 GB, free: 13.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.4857, allocations: 71.89 kB / 0.5113 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001475/0.4858, allocations: 71.91 kB / 0.5113 GB, free: 13.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.000428/0.4862, allocations: 271.9 kB / 0.5116 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003721/0.4866, allocations: 146.2 kB / 0.5117 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004098/0.4907, allocations: 2.089 MB / 0.5138 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.4908, allocations: 15.94 kB / 0.5138 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4908, allocations: 0 / 0.5138 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/0.4908, allocations: 11.97 kB / 0.5138 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005709/0.4965, allocations: 3.577 MB / 0.5173 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.4965, allocations: 0 / 0.5173 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009039/0.4974, allocations: 191.8 kB / 0.5175 GB, free: 7.043 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002392/0.4998, allocations: 0.8635 MB / 0.5183 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001148/0.5, allocations: 35.98 kB / 0.5183 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.5021, allocations: 1.603 MB / 0.5199 GB, free: 4.512 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5021, allocations: 7.938 kB / 0.5199 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004468/0.5066, allocations: 2.912 MB / 0.5228 GB, free: 1.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008599/0.5075, allocations: 391.3 kB / 0.5231 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002915/0.5078, allocations: 24.22 kB / 0.5232 GB, free: 1.145 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/0.5088, allocations: 63.83 kB / 0.5232 GB, free: 1.082 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002311/0.5091, allocations: 101.1 kB / 0.5233 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/0.5092, allocations: 51.97 kB / 0.5234 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001248/0.5105, allocations: 0.8519 MB / 0.5242 GB, free: 80 kB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5105, allocations: 0 / 0.5242 GB, free: 80 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.003184/0.5137, allocations: 1.156 MB / 0.5253 GB, free: 14.92 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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 {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002223/0.5159, allocations: 0.8457 MB / 0.5261 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006523/0.5224, allocations: 2.854 MB / 0.5289 GB, free: 11.21 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.5225, allocations: 4 kB / 0.5289 GB, free: 11.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001845/0.5243, allocations: 0.8809 MB / 0.5298 GB, free: 10.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00315/0.5275, allocations: 0.6629 MB / 0.5304 GB, free: 9.684 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005919/0.5334, allocations: 3.072 MB / 0.5334 GB, free: 6.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.5348, allocations: 1.292 MB / 0.5347 GB, free: 5.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002205/0.537, allocations: 0.5862 MB / 0.5353 GB, free: 4.676 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004683/0.5375, allocations: 135.3 kB / 0.5354 GB, free: 4.543 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5375, allocations: 0 / 0.5354 GB, free: 4.543 MB / 462.1 MB Notification: Performance of Templates: time 0.2755/0.813, allocations: 45.03 MB / 0.5794 GB, free: 99.25 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches