Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009796/0.0009795, allocations: 96.66 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00127/0.00127, allocations: 201.2 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002525, allocations: 8 kB / 308.4 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09835, allocations: 51.52 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.212/0.3104, allocations: 30.88 MB / 390.8 MB, free: 4.285 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01477/0.3252, allocations: 10.69 MB / 401.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001737/0.327, allocations: 43.62 kB / 401.5 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.3283, allocations: 413.5 kB / 401.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005007/0.3334, allocations: 1.745 MB / 403.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007444/0.3408, allocations: 2.312 MB / 406 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006486/0.3473, allocations: 5.226 MB / 411.2 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.3491, allocations: 1.005 MB / 412.2 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003098/0.3522, allocations: 1.3 MB / 413.5 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002748/0.355, allocations: 1.395 MB / 414.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000282/0.3553, allocations: 80 kB / 415 MB, free: 4.766 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004624/0.36, allocations: 2.012 MB / 417 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000713/0.3607, allocations: 0.5025 MB / 417.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.3619, allocations: 0.7558 MB / 418.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003713/0.3656, allocations: 2.37 MB / 420.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.3656, allocations: 4 kB / 420.6 MB, free: 15.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3656, allocations: 7.938 kB / 420.6 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.963e-05/0.3656, allocations: 0 / 420.6 MB, free: 15.09 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.005161/0.3708, allocations: 1.772 MB / 422.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3709, allocations: 8.031 kB / 422.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007829/0.3717, allocations: 170.2 kB / 422.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001926/0.3736, allocations: 0.9018 MB / 423.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.3739, allocations: 234.5 kB / 423.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003249/0.3742, allocations: 95.98 kB / 423.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00343/0.3776, allocations: 1.802 MB / 425.6 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.3777, allocations: 4 kB / 425.6 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001785/0.3779, allocations: 47.92 kB / 425.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.378, allocations: 102 kB / 425.8 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003263/0.3813, allocations: 1.776 MB / 427.5 MB, free: 7.996 MB / 334.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.01315/0.3945, allocations: 6.96 MB / 434.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/0.3974, allocations: 1.498 MB / 436 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.3989, allocations: 0.8851 MB / 436.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009631/0.3999, allocations: 0.6607 MB / 437.5 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.3999, allocations: 43.56 kB / 437.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.467e-06/0.3999, allocations: 3.938 kB / 437.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01787/0.4178, allocations: 6.672 MB / 444.3 MB, free: 6.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.418, allocations: 175.5 kB / 444.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/0.42, allocations: 1.099 MB / 445.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001955/0.4202, allocations: 49.7 kB / 445.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005242/0.4207, allocations: 0.4926 MB / 446.1 MB, free: 4.832 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005492/0.4213, allocations: 441.8 kB / 446.5 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002557/0.4216, allocations: 113.7 kB / 446.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.4218, allocations: 365.9 kB / 447 MB, free: 3.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.4233, allocations: 0.8354 MB / 447.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.425, allocations: 1.076 MB / 448.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002998/0.428, allocations: 1.812 MB / 450.7 MB, free: 48 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.428, allocations: 0 / 450.7 MB, free: 48 kB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005066/0.4331, allocations: 2.616 MB / 453.3 MB, free: 13.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001766/0.4333, allocations: 231.5 kB / 453.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.4333, allocations: 4 kB / 453.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003722/0.4371, allocations: 1.303 MB / 454.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.4381, allocations: 219.6 kB / 455.1 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007267/0.4454, allocations: 6.364 MB / 461.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001492/0.4469, allocations: 107.8 kB / 461.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002513/0.4472, allocations: 55.97 kB / 461.6 MB, free: 4.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.092e-05/0.4472, allocations: 4 kB / 461.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004606/0.4518, allocations: 2.346 MB / 463.9 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.212e-05/0.4518, allocations: 4 kB / 463.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002655/0.4545, allocations: 1.023 MB / 465 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.4556, allocations: 227.6 kB / 465.2 MB, free: 1.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006643/0.4622, allocations: 6.11 MB / 471.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.4638, allocations: 99.84 kB / 471.4 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002672/0.4641, allocations: 55.97 kB / 471.4 MB, free: 10.47 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0009904/0.4651, allocations: 462.3 kB / 471.9 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003908/0.4655, allocations: 134.4 kB / 472 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005569/0.471, allocations: 2.803 MB / 474.8 MB, free: 7.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-05/0.4711, allocations: 19.98 kB / 474.8 MB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.074e-05/0.4711, allocations: 0 / 474.8 MB, free: 7.031 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/0.4711, allocations: 7.969 kB / 474.8 MB, free: 7.023 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008132/0.4793, allocations: 4.534 MB / 479.4 MB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/0.4793, allocations: 0 / 479.4 MB, free: 2.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008434/0.4802, allocations: 155.8 kB / 479.5 MB, free: 2.266 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003555/0.4837, allocations: 1.303 MB / 480.8 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.4839, allocations: 31.97 kB / 480.9 MB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007547/0.4915, allocations: 6.402 MB / 487.3 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4915, allocations: 0 / 487.3 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007961/0.4995, allocations: 3.955 MB / 491.2 MB, free: 6.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.5007, allocations: 443 kB / 491.7 MB, free: 5.734 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004508/0.5011, allocations: 24 kB / 491.7 MB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001432/0.5026, allocations: 99.86 kB / 491.8 MB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004024/0.503, allocations: 141.1 kB / 491.9 MB, free: 5.473 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001893/0.5032, allocations: 51.97 kB / 492 MB, free: 5.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001278/0.5045, allocations: 0.7493 MB / 492.7 MB, free: 4.664 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5045, allocations: 0 / 492.7 MB, free: 4.664 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003868/0.5084, allocations: 1.054 MB / 493.8 MB, free: 3.609 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002301/0.5107, allocations: 0.7312 MB / 494.5 MB, free: 2.875 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008642/0.5194, allocations: 3.802 MB / 498.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/0.5194, allocations: 4 kB / 498.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003318/0.5227, allocations: 1.422 MB / 499.7 MB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00381/0.5266, allocations: 0.6112 MB / 0.4886 GB, free: 12.97 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007968/0.5346, allocations: 3.749 MB / 0.4923 GB, free: 9.188 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.5358, allocations: 1.256 MB / 0.4935 GB, free: 7.902 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007138/0.5365, allocations: 139.4 kB / 0.4936 GB, free: 7.766 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5365, allocations: 0 / 0.4936 GB, free: 7.766 MB / 414.1 MB Notification: Performance of Templates: time 0.2503/0.7868, allocations: 53.39 MB / 0.5458 GB, free: 146.5 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches