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.0008012, allocations: 92.36 kB / 17.31 MB, free: 5.59 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.0008752/0.0008752, allocations: 179 kB / 18.21 MB, free: 5.191 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.189/1.189, allocations: 223.2 MB / 242.2 MB, free: 24 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.0002431, allocations: 11.94 kB / 302.1 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08783/0.08809, allocations: 50.41 MB / 352.5 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01579/0.1039, allocations: 16.11 MB / 368.6 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1785/0.2824, allocations: 7.129 MB / 375.7 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009906/0.2834, allocations: 35.94 kB / 375.8 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009998/0.2844, allocations: 293.8 kB / 376 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002836/0.2873, allocations: 1.004 MB / 377.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00448/0.2918, allocations: 1.509 MB / 378.6 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004214/0.296, allocations: 3.18 MB / 381.7 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.2971, allocations: 0.5337 MB / 382.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.2986, allocations: 0.6792 MB / 383 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001406/0.3, allocations: 0.7931 MB / 383.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002354/0.3003, allocations: 46.56 kB / 383.8 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002713/0.303, allocations: 1.191 MB / 385 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000445/0.3035, allocations: 282.5 kB / 385.3 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008762/0.3043, allocations: 447.5 kB / 385.7 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002029/0.3064, allocations: 1.308 MB / 387 MB, free: 7.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.3064, allocations: 1.25 kB / 387 MB, free: 7.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3064, allocations: 0 / 387 MB, free: 7.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.326e-05/0.3064, allocations: 0 / 387 MB, free: 7.805 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.002604/0.309, allocations: 1.101 MB / 388.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.3091, allocations: 8.062 kB / 388.1 MB, free: 6.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000322/0.3094, allocations: 102.6 kB / 388.2 MB, free: 6.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007788/0.3102, allocations: 0.5938 MB / 388.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.492e-05/0.3103, allocations: 109.4 kB / 388.9 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.3104, allocations: 52.05 kB / 389 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.3118, allocations: 0.9022 MB / 389.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.3118, allocations: 1.469 kB / 389.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.763e-05/0.3119, allocations: 21.91 kB / 389.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.596e-05/0.312, allocations: 48.56 kB / 389.9 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.3132, allocations: 0.8458 MB / 390.8 MB, free: 5.918 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.004527/0.3178, allocations: 3.47 MB / 394.3 MB, free: 3.219 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009214/0.3187, allocations: 0.6646 MB / 394.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004643/0.3192, allocations: 368.8 kB / 395.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002274/0.3214, allocations: 2.049 MB / 397.3 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.609e-05/0.3215, allocations: 43.12 kB / 397.4 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 1.933e-06/0.3215, allocations: 0 / 397.4 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006215/0.3277, allocations: 2.869 MB / 400.2 MB, free: 15.2 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.3278, allocations: 87.45 kB / 400.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007067/0.3285, allocations: 0.6838 MB / 401 MB, free: 14.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.593e-05/0.3286, allocations: 37.11 kB / 401 MB, free: 14.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.3288, allocations: 335.6 kB / 401.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.329, allocations: 229 kB / 401.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3291, allocations: 66.97 kB / 401.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.3292, allocations: 384.5 kB / 402 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005334/0.3298, allocations: 364.3 kB / 402.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006409/0.3304, allocations: 0.5183 MB / 402.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001162/0.3316, allocations: 0.8674 MB / 403.8 MB, free: 12.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3316, allocations: 7.938 kB / 403.8 MB, free: 12.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001814/0.3334, allocations: 1.157 MB / 404.9 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.3336, allocations: 219.1 kB / 405.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.268e-06/0.3336, allocations: 4 kB / 405.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.3348, allocations: 452.4 kB / 405.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005975/0.3354, allocations: 160.5 kB / 405.8 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.3365, allocations: 1.017 MB / 406.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005676/0.3371, allocations: 47.86 kB / 406.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.648e-05/0.3371, allocations: 35.98 kB / 406.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.903e-06/0.3371, allocations: 4 kB / 406.9 MB, free: 9.289 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001613/0.3388, allocations: 1.012 MB / 407.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3388, allocations: 8 kB / 407.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006194/0.3394, allocations: 316.8 kB / 408.2 MB, free: 7.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005802/0.34, allocations: 167.7 kB / 408.4 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008681/0.3409, allocations: 0.8958 MB / 409.3 MB, free: 6.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/0.3414, allocations: 47.89 kB / 409.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.179e-05/0.3415, allocations: 35.92 kB / 409.3 MB, free: 6.785 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.0003833/0.3418, allocations: 324.9 kB / 409.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.342, allocations: 79.06 kB / 409.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001801/0.3438, allocations: 1.099 MB / 410.8 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3438, allocations: 8 kB / 410.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3438, allocations: 0 / 410.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.105e-05/0.3438, allocations: 7.922 kB / 410.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002759/0.3466, allocations: 2.015 MB / 412.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3466, allocations: 0 / 412.9 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005289/0.3471, allocations: 123.8 kB / 413 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0011/0.3483, allocations: 449.4 kB / 413.4 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.012e-05/0.3483, allocations: 15.98 kB / 413.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00104/0.3494, allocations: 1.031 MB / 414.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3494, allocations: 0 / 414.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0022/0.3516, allocations: 1.604 MB / 416.1 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003715/0.352, allocations: 248 kB / 416.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001074/0.3521, allocations: 12 kB / 416.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005641/0.3527, allocations: 51.91 kB / 416.4 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.3528, allocations: 60.56 kB / 416.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.092e-05/0.3529, allocations: 23.98 kB / 416.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005347/0.3534, allocations: 483 kB / 416.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3534, allocations: 0 / 416.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00152/0.3549, allocations: 0.5818 MB / 417.5 MB, free: 14.48 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.0009527/0.3559, allocations: 497 kB / 418 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002546/0.3584, allocations: 1.388 MB / 419.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3585, allocations: 0 / 419.4 MB, free: 12.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008652/0.3593, allocations: 463.5 kB / 419.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.361, allocations: 367.2 kB / 420.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003156/0.3642, allocations: 2.146 MB / 422.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005147/0.3647, allocations: 0.9914 MB / 423.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.3649, allocations: 79.41 kB / 423.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3649, allocations: 4 kB / 423.4 MB, free: 8.547 MB / 334.1 MB Notification: Performance of Templates: time 0.02402/0.389, allocations: 18.96 MB / 442.4 MB, free: 5.68 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/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