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.000798/0.000798, allocations: 85.72 kB / 16.31 MB, free: 6.453 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.0008762/0.0008761, allocations: 179.4 kB / 17.21 MB, free: 6.328 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.316/1.316, allocations: 223.3 MB / 241.2 MB, free: 304 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002595, allocations: 4 kB / 300.8 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0908/0.09108, allocations: 50.42 MB / 351.2 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01482/0.1059, allocations: 15.25 MB / 366.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1822/0.2881, allocations: 6.578 MB / 373.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.2894, allocations: 28.41 kB / 373.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008875/0.2903, allocations: 283 kB / 373.4 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002316/0.2926, allocations: 1.024 MB / 374.4 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003637/0.2963, allocations: 1.385 MB / 375.8 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003353/0.2996, allocations: 2.608 MB / 378.4 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008352/0.3005, allocations: 0.4934 MB / 378.9 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.3016, allocations: 0.713 MB / 379.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.3027, allocations: 0.7692 MB / 380.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000116/0.3029, allocations: 40.75 kB / 380.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002151/0.305, allocations: 1.046 MB / 381.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003222/0.3054, allocations: 269.8 kB / 381.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002078/0.3056, allocations: 174.5 kB / 381.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001415/0.307, allocations: 1.288 MB / 383.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.307, allocations: 0 / 383.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.307, allocations: 0 / 383.2 MB, free: 8.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.307, allocations: 1.062 kB / 383.2 MB, free: 8.562 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.002042/0.3091, allocations: 1.105 MB / 384.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.3091, allocations: 9.75 kB / 384.3 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002808/0.3094, allocations: 101.5 kB / 384.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007484/0.3102, allocations: 0.5804 MB / 385 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.209e-05/0.3103, allocations: 110.5 kB / 385.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.3104, allocations: 56.06 kB / 385.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.3118, allocations: 0.8956 MB / 386 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.3118, allocations: 1.344 kB / 386 MB, free: 7.238 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.787e-05/0.3119, allocations: 27.89 kB / 386.1 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.219e-05/0.312, allocations: 52.03 kB / 386.1 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.3133, allocations: 0.8375 MB / 386.9 MB, free: 7.078 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.004928/0.3182, allocations: 3.473 MB / 390.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.3192, allocations: 0.6618 MB / 391.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004843/0.3197, allocations: 365.2 kB / 391.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002414/0.3221, allocations: 2.048 MB / 393.5 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.464e-05/0.3221, allocations: 40.14 kB / 393.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 2.124e-06/0.3221, allocations: 0 / 393.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006303/0.3285, allocations: 2.851 MB / 396.4 MB, free: 2.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.3285, allocations: 87.41 kB / 396.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007868/0.3293, allocations: 0.6809 MB / 397.1 MB, free: 2.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.702e-05/0.3294, allocations: 38.7 kB / 397.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.3295, allocations: 334.3 kB / 397.5 MB, free: 1.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.3297, allocations: 230 kB / 397.7 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.3297, allocations: 14.19 kB / 397.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.3298, allocations: 383.9 kB / 398.1 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005088/0.3304, allocations: 358.9 kB / 398.5 MB, free: 1.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005621/0.3309, allocations: 0.5045 MB / 399 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005932/0.3315, allocations: 417.3 kB / 399.4 MB, free: 472 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3315, allocations: 0 / 399.4 MB, free: 472 kB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001764/0.3333, allocations: 1.145 MB / 400.5 MB, free: 15.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.3335, allocations: 214.4 kB / 400.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.3335, allocations: 6.406 kB / 400.7 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.3347, allocations: 450.8 kB / 401.2 MB, free: 15.4 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006308/0.3353, allocations: 158.6 kB / 401.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.3365, allocations: 1.018 MB / 402.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008483/0.3374, allocations: 43.94 kB / 402.4 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.995e-05/0.3375, allocations: 35.98 kB / 402.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.3375, allocations: 4 kB / 402.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00188/0.3394, allocations: 1 MB / 403.4 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3394, allocations: 7.984 kB / 403.4 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006931/0.3401, allocations: 320.7 kB / 403.8 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006397/0.3408, allocations: 163.8 kB / 403.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009458/0.3417, allocations: 0.9021 MB / 404.8 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006977/0.3424, allocations: 47.88 kB / 404.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-05/0.3425, allocations: 35.98 kB / 404.9 MB, free: 11.93 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 (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 initialization (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005127/0.343, allocations: 328.8 kB / 405.2 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.3432, allocations: 83.05 kB / 405.3 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002037/0.3452, allocations: 1.09 MB / 406.4 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/0.3453, allocations: 8 kB / 406.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.3453, allocations: 4 kB / 406.4 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.3453, allocations: 3.984 kB / 406.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003401/0.3487, allocations: 2.009 MB / 408.4 MB, free: 8.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3487, allocations: 4 kB / 408.4 MB, free: 8.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006128/0.3493, allocations: 119.9 kB / 408.5 MB, free: 8.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/0.3506, allocations: 448.5 kB / 409 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.332e-05/0.3507, allocations: 19.92 kB / 409 MB, free: 7.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00123/0.352, allocations: 1.031 MB / 410 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.352, allocations: 0 / 410 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00252/0.3545, allocations: 1.591 MB / 411.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005838/0.3551, allocations: 248.1 kB / 411.9 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002644/0.3554, allocations: 15.98 kB / 411.9 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008067/0.3562, allocations: 55.81 kB / 411.9 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/0.3563, allocations: 52.58 kB / 412 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.208e-05/0.3564, allocations: 31.97 kB / 412 MB, free: 4.688 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007613/0.3572, allocations: 475 kB / 412.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3572, allocations: 0 / 412.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002241/0.3595, allocations: 0.5818 MB / 413.1 MB, free: 3.645 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001648/0.3611, allocations: 473.2 kB / 413.5 MB, free: 3.203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.3643, allocations: 1.382 MB / 414.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.3643, allocations: 4 kB / 414.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009718/0.3653, allocations: 467.7 kB / 415.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00229/0.3676, allocations: 364.8 kB / 415.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004006/0.3716, allocations: 2.023 MB / 417.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/0.3723, allocations: 0.9913 MB / 418.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001235/0.3736, allocations: 310.5 kB / 419 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.3738, allocations: 71.42 kB / 419.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3738, allocations: 0 / 419.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of Templates: time 0.03666/0.4105, allocations: 21.18 MB / 440.3 MB, free: 8.613 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 -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/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_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches