Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001221/0.001221, allocations: 177.1 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007665/0.0007665, allocations: 94.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002985/0.0002985, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2157, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02127/0.237, allocations: 28.83 MB / 403.4 MB, free: 19.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01109/0.2481, allocations: 9.815 MB / 413.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001249/0.2494, allocations: 47.62 kB / 413.2 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.2504, allocations: 389.5 kB / 413.6 MB, free: 9.688 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.003655/0.2541, allocations: 1.691 MB / 415.3 MB, free: 7.988 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004829/0.2589, allocations: 2.135 MB / 417.5 MB, free: 5.859 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003588/0.2625, allocations: 4.312 MB / 421.8 MB, free: 1.539 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001142/0.2637, allocations: 0.9538 MB / 422.7 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002056/0.2658, allocations: 1.316 MB / 424 MB, free: 15.25 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001941/0.2677, allocations: 1.355 MB / 425.4 MB, free: 13.89 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002295/0.268, allocations: 84 kB / 425.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003399/0.2714, allocations: 1.724 MB / 427.2 MB, free: 12.08 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005125/0.2719, allocations: 0.4985 MB / 427.7 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004053/0.2723, allocations: 281 kB / 428 MB, free: 11.3 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002862/0.2752, allocations: 2.307 MB / 430.3 MB, free: 8.992 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2752, allocations: 0 / 430.3 MB, free: 8.992 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2752, allocations: 0 / 430.3 MB, free: 8.992 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.382e-05/0.2752, allocations: 0 / 430.3 MB, free: 8.992 MB / 314.7 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.004499/0.2797, allocations: 1.784 MB / 432.1 MB, free: 7.156 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.2798, allocations: 12.03 kB / 432.1 MB, free: 7.145 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004714/0.2803, allocations: 166.2 kB / 432.2 MB, free: 6.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.2816, allocations: 0.8596 MB / 433.1 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000181/0.2818, allocations: 238.5 kB / 433.3 MB, free: 5.812 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.282, allocations: 99.98 kB / 433.4 MB, free: 5.715 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00277/0.2848, allocations: 1.79 MB / 435.2 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.587e-05/0.2848, allocations: 0 / 435.2 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.285, allocations: 47.92 kB / 435.3 MB, free: 3.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001219/0.2851, allocations: 105.9 kB / 435.4 MB, free: 3.715 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002808/0.2879, allocations: 1.768 MB / 437.1 MB, free: 1.938 MB / 314.7 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.01102/0.299, allocations: 6.944 MB / 444.1 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002429/0.3014, allocations: 1.505 MB / 445.6 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001326/0.3028, allocations: 0.8783 MB / 446.5 MB, free: 8.289 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008526/0.3036, allocations: 0.6568 MB / 447.1 MB, free: 7.504 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.3037, allocations: 43.56 kB / 447.2 MB, free: 7.453 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 3.026e-06/0.3037, allocations: 0 / 447.2 MB, free: 7.453 MB / 330.7 MB Notification: Performance of matching and sorting (n=128): time 0.01595/0.3196, allocations: 6.715 MB / 453.9 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.759e-05/0.3198, allocations: 167.5 kB / 454 MB, free: 428 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.3211, allocations: 1.096 MB / 455.1 MB, free: 15.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001238/0.3213, allocations: 53.7 kB / 455.2 MB, free: 15.24 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003535/0.3216, allocations: 0.4926 MB / 455.7 MB, free: 14.75 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003504/0.322, allocations: 437.8 kB / 456.1 MB, free: 14.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.398e-05/0.3221, allocations: 24 kB / 456.1 MB, free: 14.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3222, allocations: 369.9 kB / 456.5 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001298/0.3235, allocations: 0.8198 MB / 457.3 MB, free: 13.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.325, allocations: 1.065 MB / 458.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.3265, allocations: 0.8887 MB / 459.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3265, allocations: 0 / 459.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004327/0.3309, allocations: 2.577 MB / 461.8 MB, free: 8.469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000151/0.331, allocations: 239.5 kB / 462.1 MB, free: 8.168 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.3311, allocations: 4 kB / 462.1 MB, free: 8.164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003463/0.3345, allocations: 1.292 MB / 463.4 MB, free: 6.859 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009364/0.3355, allocations: 219.6 kB / 463.6 MB, free: 6.645 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006227/0.3417, allocations: 6.357 MB / 469.9 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.3431, allocations: 99.91 kB / 470 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.3433, allocations: 55.97 kB / 470.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.677e-06/0.3433, allocations: 4 kB / 470.1 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004072/0.3474, allocations: 2.334 MB / 472.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.3474, allocations: 4 kB / 472.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/0.3499, allocations: 1.027 MB / 473.5 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009773/0.3509, allocations: 223.6 kB / 473.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005878/0.3568, allocations: 6.108 MB / 479.8 MB, free: 5.719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.358, allocations: 91.84 kB / 479.9 MB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.3582, allocations: 59.97 kB / 479.9 MB, free: 5.57 MB / 362.7 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 (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],$PRE.hysteresis.y,hysteresis.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0007571/0.359, allocations: 457.3 kB / 480.4 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003088/0.3593, allocations: 134.4 kB / 480.5 MB, free: 4.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005042/0.3643, allocations: 2.809 MB / 483.3 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.837e-05/0.3644, allocations: 16 kB / 483.3 MB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.3644, allocations: 4 kB / 483.3 MB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.841e-05/0.3644, allocations: 7.969 kB / 483.3 MB, free: 2.121 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007265/0.3717, allocations: 4.526 MB / 487.9 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3717, allocations: 3.938 kB / 487.9 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007904/0.3725, allocations: 155.8 kB / 488 MB, free: 13.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003363/0.3759, allocations: 1.292 MB / 489.3 MB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.376, allocations: 43.92 kB / 489.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006292/0.3823, allocations: 6.382 MB / 495.7 MB, free: 5.289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3823, allocations: 4.062 kB / 495.8 MB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006301/0.3886, allocations: 3.928 MB / 499.7 MB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007951/0.3894, allocations: 443.2 kB / 0.4884 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.3897, allocations: 20 kB / 0.4884 GB, free: 0.8516 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.3908, allocations: 99.78 kB / 0.4885 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002933/0.3911, allocations: 153.1 kB / 0.4887 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.3912, allocations: 47.97 kB / 0.4887 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.1654/0.5566, allocations: 0.7371 MB / 0.4894 GB, free: 111.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.5567, allocations: 0 / 0.4894 GB, free: 111.6 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003153/0.5598, allocations: 1.052 MB / 0.4904 GB, free: 111.6 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001472/0.5613, allocations: 0.7184 MB / 0.4911 GB, free: 111.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007046/0.5684, allocations: 3.782 MB / 0.4948 GB, free: 110.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5684, allocations: 4.438 kB / 0.4948 GB, free: 110.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002759/0.5712, allocations: 1.408 MB / 0.4962 GB, free: 110.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00279/0.574, allocations: 0.602 MB / 0.4968 GB, free: 110 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006207/0.5802, allocations: 3.628 MB / 0.5003 GB, free: 108.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007597/0.581, allocations: 1.257 MB / 0.5016 GB, free: 107.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004785/0.5815, allocations: 148 kB / 0.5017 GB, free: 107.5 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5815, allocations: 0 / 0.5017 GB, free: 107.5 MB / 378.7 MB Notification: Performance of Templates: time 0.04579/0.6273, allocations: 53.18 MB / 0.5537 GB, free: 56.68 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/TanksWithOverflow/TanksWithOverflow.csv","../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches