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.001221/0.001221, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001187/0.001187, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.362/1.362, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 51.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3045, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01743/0.322, allocations: 15.84 MB / 417.2 MB, free: 8.977 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01022/0.3323, allocations: 6.905 MB / 424.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001107/0.3334, allocations: 23.81 kB / 424.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.3348, allocations: 326 kB / 424.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003311/0.3381, allocations: 1.069 MB / 425.5 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004829/0.343, allocations: 1.8 MB / 427.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002987/0.346, allocations: 2.144 MB / 429.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001106/0.3471, allocations: 0.5997 MB / 430.1 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001782/0.3489, allocations: 0.8059 MB / 430.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001551/0.3505, allocations: 0.7941 MB / 431.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003007/0.3508, allocations: 80 kB / 431.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002763/0.3536, allocations: 1.225 MB / 433 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004717/0.3541, allocations: 311.2 kB / 433.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008174/0.3549, allocations: 457.9 kB / 433.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003374/0.3583, allocations: 1.84 MB / 435.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3583, allocations: 0 / 435.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3583, allocations: 0 / 435.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.729e-05/0.3583, allocations: 0 / 435.6 MB, free: 6.57 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.003284/0.3616, allocations: 1.27 MB / 436.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3617, allocations: 12.03 kB / 436.9 MB, free: 5.238 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004157/0.3621, allocations: 95.89 kB / 437 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.3632, allocations: 0.6247 MB / 437.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.3633, allocations: 112.7 kB / 437.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.3634, allocations: 51.98 kB / 437.7 MB, free: 4.305 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.365, allocations: 0.8963 MB / 438.6 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.365, allocations: 3.938 kB / 438.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.417e-05/0.3651, allocations: 23.98 kB / 438.7 MB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.702e-05/0.3652, allocations: 49.28 kB / 438.7 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.3666, allocations: 0.8405 MB / 439.6 MB, free: 2.469 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.005597/0.3722, allocations: 3.462 MB / 443 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.3732, allocations: 0.6688 MB / 443.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005288/0.3737, allocations: 370.3 kB / 444 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002707/0.3765, allocations: 2.035 MB / 446.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.3765, allocations: 47 kB / 446.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 1.944e-06/0.3765, allocations: 4 kB / 446.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006864/0.3834, allocations: 2.824 MB / 449 MB, free: 8.594 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.882e-05/0.3835, allocations: 85.67 kB / 449 MB, free: 8.492 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009152/0.3844, allocations: 0.6875 MB / 449.7 MB, free: 7.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.406e-05/0.3845, allocations: 41.64 kB / 449.8 MB, free: 7.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.3847, allocations: 328.4 kB / 450.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002123/0.3849, allocations: 232.8 kB / 450.3 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002456/0.3852, allocations: 150.5 kB / 450.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3854, allocations: 390.8 kB / 450.8 MB, free: 6.648 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005886/0.386, allocations: 368.6 kB / 451.2 MB, free: 6.285 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006899/0.3867, allocations: 0.5191 MB / 451.7 MB, free: 5.703 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.388, allocations: 0.8598 MB / 452.6 MB, free: 4.781 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.388, allocations: 4 kB / 452.6 MB, free: 4.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002001/0.39, allocations: 1.161 MB / 453.7 MB, free: 3.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.39, allocations: 8.562 kB / 453.8 MB, free: 3.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.39, allocations: 8 kB / 453.8 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/0.3913, allocations: 456.1 kB / 454.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000625/0.3919, allocations: 163.8 kB / 454.4 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.3931, allocations: 1.017 MB / 455.4 MB, free: 1.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005966/0.3937, allocations: 36.02 kB / 455.4 MB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.373e-05/0.3938, allocations: 35.98 kB / 455.5 MB, free: 1.871 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008099/0.3946, allocations: 0.5331 MB / 456 MB, free: 1.332 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006787/0.3953, allocations: 0.5159 MB / 456.5 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001266/0.3966, allocations: 0.8413 MB / 457.3 MB, free: 15.85 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.805e-06/0.3966, allocations: 3.938 kB / 457.3 MB, free: 15.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001876/0.3985, allocations: 1.102 MB / 458.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3985, allocations: 8.562 kB / 458.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.3985, allocations: 8 kB / 458.5 MB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00067/0.3992, allocations: 308.7 kB / 458.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006209/0.3998, allocations: 167.8 kB / 458.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009295/0.4008, allocations: 0.9073 MB / 459.8 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006045/0.4014, allocations: 28.03 kB / 459.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.867e-05/0.4015, allocations: 31.98 kB / 459.9 MB, free: 13.26 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.0002801/0.4018, allocations: 232.2 kB / 460.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/0.402, allocations: 79.06 kB / 460.2 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001983/0.404, allocations: 1.091 MB / 461.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.404, allocations: 8 kB / 461.3 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.404, allocations: 0 / 461.3 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.404, allocations: 3.984 kB / 461.3 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.4071, allocations: 2 MB / 463.3 MB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.4072, allocations: 4 kB / 463.3 MB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005716/0.4077, allocations: 119.9 kB / 463.4 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.4089, allocations: 444.4 kB / 463.9 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.068e-05/0.4089, allocations: 15.98 kB / 463.9 MB, free: 9.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.4101, allocations: 1.028 MB / 464.9 MB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4101, allocations: 7.938 kB / 464.9 MB, free: 8.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.4124, allocations: 1.6 MB / 466.5 MB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004316/0.4129, allocations: 240.1 kB / 466.7 MB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.4131, allocations: 16 kB / 466.8 MB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006015/0.4137, allocations: 35.97 kB / 466.8 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.4138, allocations: 60.52 kB / 466.9 MB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.119e-05/0.4139, allocations: 31.97 kB / 466.9 MB, free: 6.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006107/0.4145, allocations: 479 kB / 467.4 MB, free: 5.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4145, allocations: 0 / 467.4 MB, free: 5.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001574/0.4161, allocations: 0.5817 MB / 467.9 MB, free: 5.078 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.001238/0.4174, allocations: 0.4884 MB / 468.4 MB, free: 4.582 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002842/0.4202, allocations: 1.396 MB / 469.8 MB, free: 3.188 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.4202, allocations: 4.688 kB / 469.8 MB, free: 3.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000959/0.4212, allocations: 471.8 kB / 470.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001712/0.4229, allocations: 383.9 kB / 470.7 MB, free: 2.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003338/0.4263, allocations: 1.767 MB / 472.4 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005467/0.4268, allocations: 0.9911 MB / 473.4 MB, free: 15.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002695/0.4271, allocations: 83.41 kB / 473.5 MB, free: 15.44 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4271, allocations: 0 / 473.5 MB, free: 15.44 MB / 398.1 MB Notification: Performance of Templates: time 0.02763/0.4548, allocations: 19.13 MB / 492.6 MB, free: 12.39 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/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