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.001124/0.001124, allocations: 112.5 kB / 17.69 MB, free: 5.438 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.001029/0.001029, allocations: 191 kB / 18.63 MB, free: 4.508 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.334/1.334, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001053/0.001053, allocations: 50.33 kB / 302.1 MB, free: 5.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09264/0.09372, allocations: 49.45 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01668/0.1104, allocations: 15.84 MB / 367.3 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1962/0.3067, allocations: 6.883 MB / 374.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009002/0.3077, allocations: 23.91 kB / 374.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008682/0.3086, allocations: 333.7 kB / 374.6 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002563/0.3112, allocations: 1.068 MB / 375.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004585/0.3158, allocations: 1.807 MB / 377.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002978/0.3188, allocations: 2.141 MB / 379.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009936/0.3198, allocations: 0.5997 MB / 380.2 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.3212, allocations: 0.7881 MB / 381 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.3223, allocations: 0.7964 MB / 381.8 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001409/0.3225, allocations: 79.94 kB / 381.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.3251, allocations: 1.229 MB / 383.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003666/0.3255, allocations: 317.2 kB / 383.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005283/0.326, allocations: 456.2 kB / 383.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003307/0.3293, allocations: 1.841 MB / 385.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.3293, allocations: 0 / 385.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3293, allocations: 0 / 385.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.3294, allocations: 4.562 kB / 385.7 MB, free: 8.609 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.002808/0.3322, allocations: 1.263 MB / 386.9 MB, free: 7.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.3322, allocations: 9.031 kB / 387 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003194/0.3326, allocations: 95.25 kB / 387 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009608/0.3335, allocations: 0.6276 MB / 387.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.929e-05/0.3336, allocations: 108.5 kB / 387.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001058/0.3337, allocations: 56.03 kB / 387.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.3351, allocations: 0.8986 MB / 388.7 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.3351, allocations: 0 / 388.7 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.136e-05/0.3352, allocations: 28.16 kB / 388.8 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.723e-05/0.3353, allocations: 49.84 kB / 388.8 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.3367, allocations: 0.8404 MB / 389.7 MB, free: 6.25 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.004951/0.3417, allocations: 3.461 MB / 393.1 MB, free: 3.547 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009401/0.3426, allocations: 0.6623 MB / 393.8 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004774/0.3431, allocations: 368.6 kB / 394.1 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002485/0.3456, allocations: 2.034 MB / 396.2 MB, free: 1.215 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.3456, allocations: 39.19 kB / 396.2 MB, free: 1.172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 1.954e-06/0.3456, allocations: 4 kB / 396.2 MB, free: 1.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006529/0.3522, allocations: 2.833 MB / 399 MB, free: 15.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/0.3523, allocations: 87.83 kB / 399.1 MB, free: 15.44 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007961/0.3531, allocations: 0.681 MB / 399.8 MB, free: 15.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.093e-05/0.3531, allocations: 35.77 kB / 399.8 MB, free: 15.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002233/0.3534, allocations: 336.7 kB / 400.2 MB, free: 14.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.3535, allocations: 224.1 kB / 400.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.3538, allocations: 154.5 kB / 400.5 MB, free: 14.43 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.354, allocations: 390.1 kB / 400.9 MB, free: 14.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000571/0.3545, allocations: 373.9 kB / 401.3 MB, free: 13.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006687/0.3552, allocations: 0.517 MB / 401.8 MB, free: 13.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001205/0.3564, allocations: 0.8557 MB / 402.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3564, allocations: 3.938 kB / 402.7 MB, free: 12.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001952/0.3584, allocations: 1.161 MB / 403.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3584, allocations: 12.5 kB / 403.8 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.3585, allocations: 11.98 kB / 403.8 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.3597, allocations: 448 kB / 404.3 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/0.3604, allocations: 171.7 kB / 404.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.3616, allocations: 1.017 MB / 405.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006333/0.3623, allocations: 32.02 kB / 405.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.465e-05/0.3624, allocations: 36 kB / 405.5 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008205/0.3632, allocations: 0.5331 MB / 406.1 MB, free: 9.496 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006994/0.3639, allocations: 0.5094 MB / 406.6 MB, free: 8.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001255/0.3652, allocations: 0.8466 MB / 407.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.166e-06/0.3652, allocations: 0 / 407.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001916/0.3671, allocations: 1.102 MB / 408.5 MB, free: 6.91 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3671, allocations: 8.562 kB / 408.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3671, allocations: 4 kB / 408.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007186/0.3679, allocations: 312.6 kB / 408.8 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006876/0.3686, allocations: 172.7 kB / 409 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001/0.3696, allocations: 0.9034 MB / 409.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/0.3703, allocations: 28.03 kB / 409.9 MB, free: 5.465 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.3704, allocations: 39.98 kB / 410 MB, free: 5.426 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.0003347/0.3707, allocations: 239 kB / 410.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.3709, allocations: 71.16 kB / 410.3 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002145/0.373, allocations: 1.093 MB / 411.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.373, allocations: 7.938 kB / 411.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.373, allocations: 96 / 411.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.3731, allocations: 11.97 kB / 411.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003189/0.3763, allocations: 2.009 MB / 413.4 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3763, allocations: 0 / 413.4 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005916/0.3769, allocations: 123.9 kB / 413.5 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001168/0.3781, allocations: 436.4 kB / 414 MB, free: 1.387 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.145e-05/0.3781, allocations: 19.98 kB / 414 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.3793, allocations: 1.024 MB / 415 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3793, allocations: 0 / 415 MB, free: 324 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002408/0.3817, allocations: 1.603 MB / 416.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004894/0.3822, allocations: 244 kB / 416.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.3823, allocations: 12 kB / 416.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005621/0.3829, allocations: 31.97 kB / 416.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.3831, allocations: 64.52 kB / 416.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.402e-05/0.3831, allocations: 32.16 kB / 417 MB, free: 14.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005765/0.3837, allocations: 475 kB / 417.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3837, allocations: 0 / 417.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001607/0.3853, allocations: 0.5818 MB / 418 MB, free: 13.25 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.0009479/0.3863, allocations: 496.7 kB / 418.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002794/0.3891, allocations: 1.411 MB / 419.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3891, allocations: 0 / 419.9 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009319/0.3901, allocations: 468.1 kB / 420.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.3916, allocations: 387.5 kB / 420.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.3946, allocations: 1.722 MB / 422.5 MB, free: 8.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.3951, allocations: 0.9988 MB / 423.5 MB, free: 7.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008784/0.396, allocations: 306.5 kB / 423.8 MB, free: 7.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.3962, allocations: 75.42 kB / 423.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3962, allocations: 0 / 423.8 MB, free: 7.414 MB / 334.1 MB Notification: Performance of Templates: time 0.0327/0.4289, allocations: 22.93 MB / 446.8 MB, free: 0.7031 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 cvode -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