Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001137/0.001138, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001171/0.001171, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.89 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2628, allocations: 50.55 MB / 409.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01643/0.2793, allocations: 15.96 MB / 425.2 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.2894, allocations: 6.917 MB / 432.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008895/0.2903, allocations: 19.88 kB / 432.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009238/0.2913, allocations: 345.9 kB / 432.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002815/0.2941, allocations: 1.069 MB / 433.5 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004774/0.2989, allocations: 1.791 MB / 435.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002889/0.3018, allocations: 2.155 MB / 437.5 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009454/0.3028, allocations: 0.6035 MB / 438.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.3042, allocations: 0.8098 MB / 438.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001062/0.3053, allocations: 0.7941 MB / 439.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.3054, allocations: 80 kB / 439.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002581/0.308, allocations: 1.248 MB / 441 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003499/0.3084, allocations: 315.1 kB / 441.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005654/0.3089, allocations: 461.9 kB / 441.8 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003024/0.312, allocations: 1.852 MB / 443.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.312, allocations: 0 / 443.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.312, allocations: 0 / 443.6 MB, free: 15.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.312, allocations: 4 kB / 443.6 MB, free: 15.13 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002655/0.3147, allocations: 1.266 MB / 444.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3147, allocations: 8.031 kB / 444.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003272/0.3151, allocations: 99.91 kB / 445 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.3161, allocations: 0.6247 MB / 445.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.3163, allocations: 108.6 kB / 445.7 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.3164, allocations: 59.89 kB / 445.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.3178, allocations: 0.9001 MB / 446.7 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.3179, allocations: 4 kB / 446.7 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.611e-05/0.3179, allocations: 23.98 kB / 446.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-05/0.318, allocations: 53.28 kB / 446.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.3194, allocations: 0.8405 MB / 447.6 MB, free: 11.02 MB / 366.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.005413/0.3248, allocations: 3.446 MB / 451.1 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009983/0.3258, allocations: 0.6618 MB / 451.7 MB, free: 6.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005252/0.3263, allocations: 366.3 kB / 452.1 MB, free: 6.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002822/0.3292, allocations: 2.031 MB / 454.1 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.3292, allocations: 47.06 kB / 454.2 MB, free: 4.066 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.964e-06/0.3292, allocations: 0 / 454.2 MB, free: 4.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006819/0.336, allocations: 2.832 MB / 457 MB, free: 1.164 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.122e-05/0.3361, allocations: 89.67 kB / 457.1 MB, free: 1.059 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008247/0.337, allocations: 0.6837 MB / 457.8 MB, free: 372 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.703e-05/0.337, allocations: 37.7 kB / 457.8 MB, free: 328 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002537/0.3373, allocations: 332.6 kB / 458.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001849/0.3375, allocations: 232.7 kB / 458.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000244/0.3377, allocations: 146.6 kB / 458.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.3379, allocations: 386.8 kB / 458.9 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005944/0.3385, allocations: 376.6 kB / 459.2 MB, free: 14.85 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006789/0.3392, allocations: 0.5191 MB / 459.7 MB, free: 14.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.3405, allocations: 0.8677 MB / 460.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3405, allocations: 0 / 460.6 MB, free: 13.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001952/0.3424, allocations: 1.161 MB / 461.8 MB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.359e-05/0.3425, allocations: 6.969 kB / 461.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.3425, allocations: 4 kB / 461.8 MB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.3438, allocations: 464.7 kB / 462.2 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006472/0.3444, allocations: 163.7 kB / 462.4 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.3456, allocations: 1.013 MB / 463.4 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005471/0.3462, allocations: 28.03 kB / 463.4 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-05/0.3463, allocations: 31.98 kB / 463.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008096/0.3471, allocations: 0.5331 MB / 464 MB, free: 9.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006618/0.3477, allocations: 0.5199 MB / 464.5 MB, free: 9.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001178/0.3489, allocations: 0.8412 MB / 465.4 MB, free: 8.43 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.727e-06/0.3489, allocations: 7.875 kB / 465.4 MB, free: 8.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001841/0.3508, allocations: 1.098 MB / 466.5 MB, free: 7.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.3508, allocations: 8 kB / 466.5 MB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3508, allocations: 4 kB / 466.5 MB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007099/0.3515, allocations: 313.3 kB / 466.8 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.3522, allocations: 167.7 kB / 467 MB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009729/0.3532, allocations: 0.9074 MB / 467.9 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005464/0.3537, allocations: 28.03 kB / 467.9 MB, free: 5.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-05/0.3538, allocations: 31.98 kB / 467.9 MB, free: 5.836 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (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 (84): * Single equations (assignments): 83 * 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 {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0003118/0.3541, allocations: 232 kB / 468.1 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001481/0.3543, allocations: 79.06 kB / 468.2 MB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.3563, allocations: 1.095 MB / 469.3 MB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3563, allocations: 8 kB / 469.3 MB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.3563, allocations: 3.938 kB / 469.3 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.3563, allocations: 3.984 kB / 469.3 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003036/0.3594, allocations: 2.012 MB / 471.3 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3594, allocations: 0 / 471.3 MB, free: 2.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005589/0.3599, allocations: 119.9 kB / 471.5 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00114/0.3611, allocations: 436.5 kB / 471.9 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.756e-05/0.3612, allocations: 19.98 kB / 471.9 MB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.3623, allocations: 1.032 MB / 472.9 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3623, allocations: 3.938 kB / 472.9 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/0.3647, allocations: 1.597 MB / 474.5 MB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000443/0.3651, allocations: 244.1 kB / 474.8 MB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/0.3652, allocations: 12 kB / 474.8 MB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005246/0.3658, allocations: 31.97 kB / 474.8 MB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.3659, allocations: 56.52 kB / 474.9 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.804e-05/0.366, allocations: 35.92 kB / 474.9 MB, free: 14.69 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006121/0.3666, allocations: 483 kB / 475.4 MB, free: 14.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3666, allocations: 0 / 475.4 MB, free: 14.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001545/0.3682, allocations: 0.5856 MB / 476 MB, free: 13.64 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009937/0.3692, allocations: 497.8 kB / 476.5 MB, free: 13.15 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002834/0.372, allocations: 1.401 MB / 477.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3721, allocations: 0 / 477.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009376/0.373, allocations: 471.5 kB / 478.3 MB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.3748, allocations: 392.1 kB / 478.7 MB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003164/0.3779, allocations: 1.723 MB / 480.4 MB, free: 9.164 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005535/0.3785, allocations: 1.003 MB / 481.4 MB, free: 8.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009404/0.3795, allocations: 306.5 kB / 481.7 MB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.3797, allocations: 75.42 kB / 481.8 MB, free: 7.746 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3797, allocations: 0 / 481.8 MB, free: 7.746 MB / 398.1 MB Notification: Performance of Templates: time 0.0345/0.4142, allocations: 23.64 MB / 0.4936 GB, free: 244 kB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches