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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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=5006,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=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 47.92 kB / 370.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2627, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01896/0.2816, allocations: 16.1 MB / 439.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01087/0.2925, allocations: 6.959 MB / 446.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007898/0.2933, allocations: 27.75 kB / 446.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.2943, allocations: 337.9 kB / 446.5 MB, free: 7.191 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003493/0.2978, allocations: 1.096 MB / 447.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006451/0.3043, allocations: 1.855 MB / 449.5 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003764/0.308, allocations: 2.234 MB / 451.7 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008822/0.3089, allocations: 0.5024 MB / 452.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001482/0.3104, allocations: 0.8449 MB / 453.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001214/0.3116, allocations: 0.8486 MB / 453.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001551/0.3118, allocations: 80 kB / 454 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002756/0.3145, allocations: 1.24 MB / 455.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003729/0.3149, allocations: 323 kB / 455.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005742/0.3155, allocations: 465.9 kB / 456 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003007/0.3185, allocations: 1.846 MB / 457.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3185, allocations: 0 / 457.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3185, allocations: 4 kB / 457.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.3185, allocations: 0 / 457.8 MB, free: 11.84 MB / 366.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.003231/0.3217, allocations: 1.224 MB / 459.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.3218, allocations: 15.97 kB / 459.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003434/0.3221, allocations: 96.41 kB / 459.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.3233, allocations: 0.5635 MB / 459.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.3234, allocations: 104.7 kB / 459.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3235, allocations: 59.97 kB / 459.9 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.3252, allocations: 0.8884 MB / 460.8 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.3253, allocations: 4 kB / 460.8 MB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.633e-05/0.3254, allocations: 23.98 kB / 460.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.547e-05/0.3254, allocations: 53.27 kB / 460.9 MB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/0.327, allocations: 0.8482 MB / 461.7 MB, free: 7.867 MB / 366.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.006182/0.3332, allocations: 3.315 MB / 465 MB, free: 4.387 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.3343, allocations: 0.6303 MB / 465.7 MB, free: 3.746 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005777/0.3348, allocations: 342.2 kB / 466 MB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002745/0.3376, allocations: 1.333 MB / 467.3 MB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.3376, allocations: 47 kB / 467.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.164e-06/0.3376, allocations: 0 / 467.4 MB, free: 2.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.007232/0.3449, allocations: 2.697 MB / 470.1 MB, free: 15.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.426e-05/0.3449, allocations: 85.77 kB / 470.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009084/0.3458, allocations: 0.6837 MB / 470.8 MB, free: 14.49 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.014e-05/0.3459, allocations: 41.7 kB / 470.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002686/0.3462, allocations: 337 kB / 471.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.3464, allocations: 245.9 kB / 471.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003018/0.3467, allocations: 150.6 kB / 471.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.3469, allocations: 386.8 kB / 472 MB, free: 13.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006462/0.3475, allocations: 372.6 kB / 472.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007762/0.3483, allocations: 0.5191 MB / 472.9 MB, free: 12.37 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.3497, allocations: 0.8681 MB / 473.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.3497, allocations: 0 / 473.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002094/0.3518, allocations: 1.158 MB / 474.9 MB, free: 10.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3518, allocations: 7.938 kB / 474.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.3518, allocations: 4 kB / 474.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.3532, allocations: 452.5 kB / 475.3 MB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006798/0.3539, allocations: 163.8 kB / 475.5 MB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001346/0.3552, allocations: 1.017 MB / 476.5 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.3558, allocations: 32.02 kB / 476.5 MB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.617e-05/0.3559, allocations: 32 kB / 476.6 MB, free: 8.555 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008967/0.3568, allocations: 0.5331 MB / 477.1 MB, free: 8.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000778/0.3576, allocations: 0.516 MB / 477.6 MB, free: 7.441 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001358/0.3589, allocations: 0.8455 MB / 478.5 MB, free: 6.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.62e-06/0.3589, allocations: 3.938 kB / 478.5 MB, free: 6.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002059/0.361, allocations: 1.099 MB / 479.6 MB, free: 5.418 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.361, allocations: 8 kB / 479.6 MB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.361, allocations: 4 kB / 479.6 MB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007527/0.3618, allocations: 320.8 kB / 479.9 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006661/0.3624, allocations: 159.8 kB / 480.1 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.3635, allocations: 0.9073 MB / 481 MB, free: 4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005806/0.3641, allocations: 36.03 kB / 481 MB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.758e-05/0.3642, allocations: 35.92 kB / 481 MB, free: 3.93 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.0002834/0.3645, allocations: 224.1 kB / 481.2 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001808/0.3647, allocations: 79.53 kB / 481.3 MB, free: 3.625 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002157/0.3668, allocations: 1.091 MB / 482.4 MB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3668, allocations: 8 kB / 482.4 MB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.3668, allocations: 3.984 kB / 482.4 MB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3668, allocations: 4 kB / 482.4 MB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003499/0.3703, allocations: 1.972 MB / 484.4 MB, free: 488 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.3703, allocations: 0 / 484.4 MB, free: 488 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006106/0.3709, allocations: 119.9 kB / 484.5 MB, free: 368 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001252/0.3722, allocations: 436.5 kB / 484.9 MB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.3723, allocations: 27.92 kB / 485 MB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.3736, allocations: 1.031 MB / 486 MB, free: 14.85 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3736, allocations: 7.938 kB / 486 MB, free: 14.84 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.3762, allocations: 1.589 MB / 487.6 MB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004922/0.3767, allocations: 175.3 kB / 487.8 MB, free: 13.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.3769, allocations: 20 kB / 487.8 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006144/0.3775, allocations: 31.97 kB / 487.8 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.3776, allocations: 60.48 kB / 487.9 MB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.411e-05/0.3777, allocations: 27.98 kB / 487.9 MB, free: 12.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006573/0.3784, allocations: 479 kB / 488.4 MB, free: 12.46 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3784, allocations: 0 / 488.4 MB, free: 12.46 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001609/0.38, allocations: 0.5887 MB / 489 MB, free: 11.88 MB / 398.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.001242/0.3812, allocations: 489.7 kB / 489.4 MB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003051/0.3843, allocations: 1.334 MB / 490.8 MB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.3843, allocations: 0 / 490.8 MB, free: 10.05 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00101/0.3853, allocations: 443.5 kB / 491.2 MB, free: 9.625 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.387, allocations: 381.9 kB / 491.6 MB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003597/0.3906, allocations: 1.759 MB / 493.3 MB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007077/0.3913, allocations: 0.991 MB / 494.3 MB, free: 6.449 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009853/0.3923, allocations: 310.6 kB / 494.6 MB, free: 6.141 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002346/0.3925, allocations: 75.41 kB / 494.7 MB, free: 6.066 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3925, allocations: 0 / 494.7 MB, free: 6.066 MB / 398.1 MB Notification: Performance of Templates: time 0.04276/0.4353, allocations: 23.87 MB / 0.5064 GB, free: 14.38 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.3538822792470455]