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.001169/0.001169, allocations: 112.2 kB / 16.51 MB, free: 6.715 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.001151/0.001151, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009176/0.0009177, allocations: 39.34 kB / 299.9 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07959/0.08052, allocations: 49.46 MB / 349.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01672/0.09727, allocations: 16.66 MB / 366.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.168/0.2653, allocations: 7.24 MB / 373.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.2664, allocations: 40.25 kB / 373.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001079/0.2675, allocations: 288.2 kB / 373.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002895/0.2705, allocations: 1.015 MB / 374.6 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004876/0.2754, allocations: 1.502 MB / 376.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004446/0.2798, allocations: 3.184 MB / 379.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.281, allocations: 0.5335 MB / 379.9 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.2824, allocations: 0.6897 MB / 380.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00102/0.2834, allocations: 0.803 MB / 381.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.2836, allocations: 46.31 kB / 381.4 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.2862, allocations: 1.196 MB / 382.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003531/0.2865, allocations: 280.7 kB / 382.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005265/0.2871, allocations: 418.2 kB / 383.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002407/0.2895, allocations: 1.805 MB / 385.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.2895, allocations: 0 / 385.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2895, allocations: 0 / 385.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.2895, allocations: 1.156 kB / 385.1 MB, free: 7.91 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.002561/0.2921, allocations: 1.26 MB / 386.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.2921, allocations: 9 kB / 386.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000353/0.2925, allocations: 102.9 kB / 386.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000798/0.2933, allocations: 0.6001 MB / 387 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-05/0.2934, allocations: 103.8 kB / 387.1 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.2935, allocations: 55.53 kB / 387.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.2949, allocations: 0.8873 MB / 388.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.295, allocations: 5.094 kB / 388.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.557e-05/0.295, allocations: 30.8 kB / 388.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.585e-05/0.2951, allocations: 52.64 kB / 388.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.2965, allocations: 0.845 MB / 389 MB, free: 5.484 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.004871/0.3014, allocations: 3.444 MB / 392.5 MB, free: 2.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009092/0.3023, allocations: 0.6709 MB / 393.1 MB, free: 2.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004975/0.3028, allocations: 369.3 kB / 393.5 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002455/0.3053, allocations: 2.034 MB / 395.5 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.866e-05/0.3053, allocations: 43.19 kB / 395.6 MB, free: 420 kB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 1.884e-06/0.3053, allocations: 0 / 395.6 MB, free: 420 kB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006991/0.3123, allocations: 2.833 MB / 398.4 MB, free: 14.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.3124, allocations: 89.64 kB / 398.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008169/0.3132, allocations: 0.6802 MB / 399.2 MB, free: 14.28 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.558e-05/0.3133, allocations: 36.39 kB / 399.2 MB, free: 14.24 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.3135, allocations: 342 kB / 399.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000179/0.3137, allocations: 226 kB / 399.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002506/0.314, allocations: 150.2 kB / 399.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3141, allocations: 390.5 kB / 400.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005826/0.3147, allocations: 370.5 kB / 400.6 MB, free: 13.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006751/0.3154, allocations: 0.5199 MB / 401.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001224/0.3167, allocations: 0.8662 MB / 402 MB, free: 12.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3167, allocations: 4 kB / 402 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001975/0.3186, allocations: 1.161 MB / 403.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3187, allocations: 8 kB / 403.2 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.3187, allocations: 4 kB / 403.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.32, allocations: 444.6 kB / 403.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006744/0.3207, allocations: 159.8 kB / 403.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.3219, allocations: 1.028 MB / 404.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007272/0.3226, allocations: 47.86 kB / 404.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.54e-05/0.3227, allocations: 31.98 kB / 404.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008626/0.3236, allocations: 0.5331 MB / 405.4 MB, free: 8.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006894/0.3243, allocations: 0.5082 MB / 405.9 MB, free: 8.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001219/0.3255, allocations: 0.8461 MB / 406.8 MB, free: 7.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.875e-06/0.3255, allocations: 0 / 406.8 MB, free: 7.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001894/0.3274, allocations: 1.102 MB / 407.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.3275, allocations: 11.94 kB / 407.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3275, allocations: 4 kB / 407.9 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007199/0.3282, allocations: 317 kB / 408.2 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006466/0.3289, allocations: 167.8 kB / 408.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009585/0.3298, allocations: 0.9074 MB / 409.3 MB, free: 4.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006701/0.3305, allocations: 39.89 kB / 409.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-05/0.3306, allocations: 36.08 kB / 409.4 MB, free: 4.516 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.000258/0.3309, allocations: 232 kB / 409.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001608/0.331, allocations: 83.05 kB / 409.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/0.333, allocations: 1.08 MB / 410.8 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.333, allocations: 11.94 kB / 410.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.333, allocations: 0 / 410.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.333, allocations: 3.984 kB / 410.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003118/0.3362, allocations: 2.005 MB / 412.8 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.3362, allocations: 0 / 412.8 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.3368, allocations: 123.8 kB / 412.9 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.338, allocations: 452.5 kB / 413.3 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.776e-05/0.3381, allocations: 19.98 kB / 413.4 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.3392, allocations: 1.029 MB / 414.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.3392, allocations: 0 / 414.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002329/0.3416, allocations: 1.607 MB / 416 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003837/0.3419, allocations: 244.1 kB / 416.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.3421, allocations: 16 kB / 416.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005999/0.3427, allocations: 39.91 kB / 416.3 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/0.3428, allocations: 60.5 kB / 416.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.919e-05/0.3429, allocations: 27.98 kB / 416.4 MB, free: 13.37 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005544/0.3435, allocations: 483 kB / 416.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3435, allocations: 0 / 416.8 MB, free: 12.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001582/0.3451, allocations: 0.5857 MB / 417.4 MB, free: 12.32 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.00101/0.3461, allocations: 482.3 kB / 417.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002802/0.3489, allocations: 1.397 MB / 419.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.3489, allocations: 1.938 kB / 419.3 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009532/0.3499, allocations: 473.6 kB / 419.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001666/0.3516, allocations: 353.3 kB / 420.1 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.3548, allocations: 1.998 MB / 422.1 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005384/0.3554, allocations: 0.9992 MB / 423.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00102/0.3564, allocations: 302.6 kB / 423.4 MB, free: 6.336 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002022/0.3566, allocations: 75.42 kB / 423.5 MB, free: 6.262 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3566, allocations: 3.938 kB / 423.5 MB, free: 6.258 MB / 334.1 MB Notification: Performance of Templates: time 0.03135/0.388, allocations: 21.91 MB / 445.4 MB, free: 0.5625 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