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.00123/0.001231, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.001277/0.001278, allocations: 191 kB / 18 MB, free: 4.977 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009633/0.0009633, allocations: 47.92 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.2568, allocations: 49.42 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01565/0.2725, allocations: 15.84 MB / 416.5 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009554/0.2821, allocations: 6.909 MB / 423.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007902/0.2829, allocations: 19.88 kB / 423.5 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001019/0.2839, allocations: 334 kB / 423.8 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002665/0.2867, allocations: 1.085 MB / 424.9 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004303/0.291, allocations: 1.797 MB / 426.7 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002628/0.2937, allocations: 2.144 MB / 428.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009711/0.2946, allocations: 0.6075 MB / 429.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00207/0.2967, allocations: 0.8098 MB / 430.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/0.2982, allocations: 0.7902 MB / 431 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002589/0.2985, allocations: 80 kB / 431.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002456/0.301, allocations: 1.217 MB / 432.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004395/0.3014, allocations: 319.2 kB / 432.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007259/0.3022, allocations: 457.9 kB / 433.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00295/0.3051, allocations: 1.847 MB / 434.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3051, allocations: 0 / 434.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3051, allocations: 0 / 434.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.978e-05/0.3052, allocations: 0 / 434.9 MB, free: 6.527 MB / 350.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.003049/0.3082, allocations: 1.262 MB / 436.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.3083, allocations: 12.03 kB / 436.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003691/0.3087, allocations: 95.91 kB / 436.3 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.3097, allocations: 0.6286 MB / 436.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.3098, allocations: 108.7 kB / 437 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.31, allocations: 55.98 kB / 437.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.3115, allocations: 0.8924 MB / 438 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.3116, allocations: 7.875 kB / 438 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.667e-05/0.3116, allocations: 19.98 kB / 438 MB, free: 3.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.038e-05/0.3117, allocations: 57.28 kB / 438.1 MB, free: 3.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.3131, allocations: 0.8405 MB / 438.9 MB, free: 2.426 MB / 350.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.005293/0.3184, allocations: 3.45 MB / 442.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.3194, allocations: 0.6804 MB / 443 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005224/0.32, allocations: 362.3 kB / 443.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002656/0.3226, allocations: 2.043 MB / 445.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.3227, allocations: 51 kB / 445.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.914e-06/0.3227, allocations: 0 / 445.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006628/0.3293, allocations: 2.819 MB / 448.3 MB, free: 8.559 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/0.3294, allocations: 89.67 kB / 448.4 MB, free: 8.453 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007774/0.3302, allocations: 0.6875 MB / 449.1 MB, free: 7.758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.222e-05/0.3303, allocations: 41.7 kB / 449.1 MB, free: 7.711 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.3305, allocations: 332.4 kB / 449.4 MB, free: 7.379 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3307, allocations: 224.8 kB / 449.7 MB, free: 7.156 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.3309, allocations: 150.6 kB / 449.8 MB, free: 7.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3311, allocations: 382.8 kB / 450.2 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/0.3317, allocations: 376.6 kB / 450.5 MB, free: 6.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006918/0.3324, allocations: 0.5152 MB / 451.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.3337, allocations: 0.8676 MB / 451.9 MB, free: 4.742 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.3337, allocations: 4 kB / 451.9 MB, free: 4.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001935/0.3356, allocations: 1.161 MB / 453.1 MB, free: 3.566 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.3357, allocations: 8 kB / 453.1 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.3357, allocations: 4 kB / 453.1 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/0.3369, allocations: 448.8 kB / 453.5 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.3376, allocations: 159.8 kB / 453.7 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00123/0.3388, allocations: 1.024 MB / 454.7 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.3394, allocations: 28.03 kB / 454.8 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.774e-05/0.3395, allocations: 32.08 kB / 454.8 MB, free: 1.848 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008075/0.3403, allocations: 0.5331 MB / 455.3 MB, free: 1.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007218/0.3411, allocations: 0.5136 MB / 455.8 MB, free: 0.7344 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001449/0.3425, allocations: 0.853 MB / 456.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.617e-05/0.3426, allocations: 3.938 kB / 456.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002038/0.3446, allocations: 1.102 MB / 457.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3446, allocations: 8 kB / 457.8 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3446, allocations: 7.938 kB / 457.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007379/0.3454, allocations: 312.9 kB / 458.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006519/0.3461, allocations: 167.8 kB / 458.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.3471, allocations: 0.9112 MB / 459.2 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006155/0.3477, allocations: 28.03 kB / 459.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.3478, allocations: 31.98 kB / 459.2 MB, free: 13.22 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.000274/0.3481, allocations: 224.2 kB / 459.5 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/0.3483, allocations: 79.06 kB / 459.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001979/0.3502, allocations: 1.091 MB / 460.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3503, allocations: 12 kB / 460.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.3503, allocations: 0 / 460.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.3503, allocations: 3.984 kB / 460.6 MB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.3535, allocations: 2 MB / 462.6 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.3535, allocations: 3.938 kB / 462.7 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005781/0.3541, allocations: 123.8 kB / 462.8 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.3553, allocations: 436.5 kB / 463.2 MB, free: 9.18 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.778e-05/0.3553, allocations: 23.97 kB / 463.2 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001149/0.3565, allocations: 1.024 MB / 464.2 MB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.3565, allocations: 3.938 kB / 464.3 MB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002366/0.3589, allocations: 1.608 MB / 465.9 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004102/0.3593, allocations: 244.1 kB / 466.1 MB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.3594, allocations: 12 kB / 466.1 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005706/0.36, allocations: 31.97 kB / 466.1 MB, free: 6.172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.3602, allocations: 56.52 kB / 466.2 MB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.627e-05/0.3603, allocations: 31.98 kB / 466.2 MB, free: 6.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005785/0.3608, allocations: 475 kB / 466.7 MB, free: 5.629 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3609, allocations: 4 kB / 466.7 MB, free: 5.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001501/0.3624, allocations: 0.5895 MB / 467.3 MB, free: 5.035 MB / 382.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.001137/0.3635, allocations: 474.6 kB / 467.7 MB, free: 4.562 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002922/0.3664, allocations: 1.407 MB / 469.2 MB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.3665, allocations: 4 kB / 469.2 MB, free: 3.152 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009859/0.3675, allocations: 473.4 kB / 469.6 MB, free: 2.688 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/0.369, allocations: 394.3 kB / 470 MB, free: 2.312 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.3724, allocations: 1.726 MB / 471.7 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005798/0.373, allocations: 0.9989 MB / 472.7 MB, free: 15.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000926/0.3739, allocations: 302.5 kB / 473 MB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002126/0.3741, allocations: 75.41 kB / 473.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3741, allocations: 0 / 473.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of Templates: time 0.03594/0.4101, allocations: 23.13 MB / 496.2 MB, free: 8.215 MB / 414.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