Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 111.4 kB / 17.69 MB, free: 5.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001829/0.001829, allocations: 184.1 kB / 18.63 MB, free: 4.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 51.39 kB / 302.1 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09803/0.09909, allocations: 49.45 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01695/0.1161, allocations: 15.84 MB / 367.3 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.178/0.2942, allocations: 6.885 MB / 374.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007368/0.2949, allocations: 23.28 kB / 374.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008598/0.2958, allocations: 326.9 kB / 374.6 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002461/0.2983, allocations: 1.069 MB / 375.6 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004609/0.303, allocations: 1.804 MB / 377.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003058/0.306, allocations: 2.143 MB / 379.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009583/0.307, allocations: 0.5945 MB / 380.2 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.3084, allocations: 0.7899 MB / 381 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.3095, allocations: 0.7954 MB / 381.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.3097, allocations: 80.41 kB / 381.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002555/0.3122, allocations: 1.222 MB / 383.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003898/0.3126, allocations: 320.3 kB / 383.4 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005335/0.3132, allocations: 458.7 kB / 383.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002721/0.3159, allocations: 1.84 MB / 385.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3159, allocations: 5.031 kB / 385.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3159, allocations: 0 / 385.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.3159, allocations: 0 / 385.7 MB, free: 8.602 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002555/0.3185, allocations: 1.257 MB / 386.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.3185, allocations: 11.75 kB / 386.9 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003207/0.3189, allocations: 95.12 kB / 387 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009729/0.3199, allocations: 0.6342 MB / 387.7 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-05/0.32, allocations: 105 kB / 387.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.3201, allocations: 57.28 kB / 387.8 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.3214, allocations: 0.8985 MB / 388.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.3214, allocations: 0 / 388.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.839e-05/0.3215, allocations: 32.23 kB / 388.8 MB, free: 6.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.481e-05/0.3216, allocations: 53.08 kB / 388.8 MB, free: 6.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.3229, allocations: 0.8364 MB / 389.6 MB, free: 6.23 MB / 302.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.005064/0.328, allocations: 3.463 MB / 393.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009073/0.3289, allocations: 0.6591 MB / 393.8 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004978/0.3294, allocations: 370.4 kB / 394.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002502/0.3319, allocations: 2.03 MB / 396.2 MB, free: 1.195 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.332, allocations: 45.3 kB / 396.2 MB, free: 1.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.425e-06/0.332, allocations: 0 / 396.2 MB, free: 1.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006684/0.3387, allocations: 2.836 MB / 399 MB, free: 15.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.3388, allocations: 90.22 kB / 399.1 MB, free: 15.4 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008229/0.3396, allocations: 0.6765 MB / 399.8 MB, free: 15.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.244e-05/0.3397, allocations: 35.77 kB / 399.8 MB, free: 14.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.3399, allocations: 341.9 kB / 400.2 MB, free: 14.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.3401, allocations: 221.3 kB / 400.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002528/0.3403, allocations: 155.3 kB / 400.5 MB, free: 14.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3405, allocations: 385.5 kB / 400.9 MB, free: 14.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005678/0.3411, allocations: 377.1 kB / 401.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006825/0.3418, allocations: 0.5204 MB / 401.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.343, allocations: 0.86 MB / 402.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.343, allocations: 0 / 402.7 MB, free: 12.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001947/0.345, allocations: 1.161 MB / 403.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.345, allocations: 7.938 kB / 403.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.345, allocations: 4.562 kB / 403.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.3463, allocations: 456.4 kB / 404.3 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006526/0.3469, allocations: 163.7 kB / 404.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.3481, allocations: 1.021 MB / 405.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000633/0.3488, allocations: 31.97 kB / 405.5 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.693e-05/0.3488, allocations: 35.98 kB / 405.5 MB, free: 10 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007971/0.3496, allocations: 0.5331 MB / 406.1 MB, free: 9.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007133/0.3504, allocations: 0.5154 MB / 406.6 MB, free: 8.895 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001181/0.3516, allocations: 0.8426 MB / 407.4 MB, free: 7.992 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.866e-06/0.3516, allocations: 0 / 407.4 MB, free: 7.992 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001824/0.3534, allocations: 1.106 MB / 408.5 MB, free: 6.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.098e-05/0.3534, allocations: 4 kB / 408.5 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.3534, allocations: 8 kB / 408.5 MB, free: 6.863 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000683/0.3541, allocations: 309.3 kB / 408.8 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006375/0.3548, allocations: 175.1 kB / 409 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009416/0.3557, allocations: 0.9023 MB / 409.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006206/0.3564, allocations: 36.02 kB / 409.9 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.994e-05/0.3564, allocations: 32 kB / 410 MB, free: 5.398 MB / 318.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.0002661/0.3567, allocations: 232 kB / 410.2 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001525/0.3569, allocations: 83.06 kB / 410.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.3588, allocations: 1.099 MB / 411.4 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.897e-06/0.3588, allocations: 11.94 kB / 411.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3588, allocations: 0 / 411.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.3588, allocations: 3.984 kB / 411.4 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003008/0.3619, allocations: 1.992 MB / 413.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.3619, allocations: 0 / 413.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005882/0.3625, allocations: 123.9 kB / 413.5 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/0.3636, allocations: 445.3 kB / 414 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.804e-05/0.3637, allocations: 16 kB / 414 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0011/0.3648, allocations: 1.033 MB / 415 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3648, allocations: 0 / 415 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002368/0.3672, allocations: 1.599 MB / 416.6 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004598/0.3676, allocations: 244 kB / 416.8 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.3678, allocations: 12 kB / 416.8 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005642/0.3683, allocations: 35.97 kB / 416.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.3685, allocations: 64.45 kB / 416.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.099e-05/0.3685, allocations: 29.03 kB / 417 MB, free: 14.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005685/0.3691, allocations: 487 kB / 417.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3691, allocations: 0 / 417.5 MB, free: 13.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001639/0.3708, allocations: 0.5779 MB / 418 MB, free: 13.23 MB / 334.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.001088/0.3719, allocations: 488.6 kB / 418.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002823/0.3747, allocations: 1.408 MB / 419.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3747, allocations: 0 / 419.9 MB, free: 11.36 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009251/0.3757, allocations: 471.5 kB / 420.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001594/0.3773, allocations: 386.2 kB / 420.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003112/0.3804, allocations: 1.719 MB / 422.5 MB, free: 8.801 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/0.3809, allocations: 1.003 MB / 423.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009076/0.3818, allocations: 306.5 kB / 423.8 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/0.382, allocations: 71.42 kB / 423.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.382, allocations: 0 / 423.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of Templates: time 0.03465/0.4167, allocations: 22.92 MB / 446.8 MB, free: 0.6914 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches