Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008123/0.0008123, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001122/0.001122, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002222/0.0002223, allocations: 11.98 kB / 307.7 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09176, allocations: 51.52 MB / 359.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1815/0.2733, allocations: 16.21 MB / 375.5 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009045/0.2824, allocations: 7.158 MB / 382.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008745/0.2833, allocations: 33.97 kB / 382.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007912/0.2841, allocations: 291.3 kB / 382.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003084/0.2872, allocations: 1.022 MB / 384 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004888/0.2921, allocations: 1.505 MB / 385.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004495/0.2966, allocations: 3.199 MB / 388.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009387/0.2976, allocations: 0.5301 MB / 389.2 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001364/0.299, allocations: 0.6864 MB / 389.9 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.3002, allocations: 0.798 MB / 390.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.3003, allocations: 46.53 kB / 390.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003213/0.3035, allocations: 1.204 MB / 391.9 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003107/0.3038, allocations: 283.3 kB / 392.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004881/0.3043, allocations: 447 kB / 392.6 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002689/0.307, allocations: 1.791 MB / 394.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.307, allocations: 0 / 394.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3071, allocations: 8.906 kB / 394.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.727e-05/0.3071, allocations: 0 / 394.4 MB, free: 4.621 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.002389/0.3095, allocations: 1.1 MB / 395.5 MB, free: 3.762 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.3095, allocations: 9.656 kB / 395.5 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003104/0.3098, allocations: 95.23 kB / 395.6 MB, free: 3.719 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007933/0.3106, allocations: 0.6029 MB / 396.2 MB, free: 3.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.918e-05/0.3107, allocations: 106.2 kB / 396.3 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.3109, allocations: 55.55 kB / 396.4 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.3122, allocations: 0.8957 MB / 397.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.3122, allocations: 1.375 kB / 397.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.918e-05/0.3123, allocations: 21.48 kB / 397.3 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.912e-05/0.3124, allocations: 57.89 kB / 397.4 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.3137, allocations: 0.8407 MB / 398.2 MB, free: 2.113 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.004923/0.3186, allocations: 3.484 MB / 401.7 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009379/0.3196, allocations: 0.6692 MB / 402.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005091/0.3201, allocations: 365.8 kB / 402.7 MB, free: 14.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002656/0.3227, allocations: 2.041 MB / 404.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.3228, allocations: 54.27 kB / 404.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.024e-06/0.3228, allocations: 4 kB / 404.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.006928/0.3297, allocations: 2.857 MB / 407.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.3298, allocations: 85.67 kB / 407.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008043/0.3306, allocations: 0.6798 MB / 408.4 MB, free: 9.984 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.599e-05/0.3307, allocations: 41.7 kB / 408.5 MB, free: 9.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.3309, allocations: 336.4 kB / 408.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.3311, allocations: 228.7 kB / 409 MB, free: 9.379 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.3312, allocations: 69.69 kB / 409.1 MB, free: 9.305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3314, allocations: 382.8 kB / 409.5 MB, free: 8.922 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005675/0.332, allocations: 369.8 kB / 409.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006588/0.3326, allocations: 0.5191 MB / 410.4 MB, free: 7.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.3338, allocations: 0.8638 MB / 411.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.3339, allocations: 4 kB / 411.2 MB, free: 7.062 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00193/0.3358, allocations: 1.157 MB / 412.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001366/0.3359, allocations: 223.5 kB / 412.6 MB, free: 5.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.336, allocations: 4 kB / 412.6 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001259/0.3372, allocations: 444.5 kB / 413 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006542/0.3379, allocations: 163.7 kB / 413.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001151/0.3391, allocations: 1.017 MB / 414.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007002/0.3398, allocations: 51.86 kB / 414.3 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.43e-05/0.3399, allocations: 35.98 kB / 414.3 MB, free: 3.883 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/0.3399, allocations: 4 kB / 414.3 MB, free: 3.879 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001738/0.3416, allocations: 1.011 MB / 415.3 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.122e-05/0.3417, allocations: 4 kB / 415.3 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006746/0.3423, allocations: 309 kB / 415.6 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006286/0.343, allocations: 167.8 kB / 415.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009304/0.3439, allocations: 0.9034 MB / 416.7 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.3446, allocations: 44.02 kB / 416.7 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.539e-05/0.3446, allocations: 39.92 kB / 416.8 MB, free: 1.379 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.000426/0.3451, allocations: 332.8 kB / 417.1 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.3452, allocations: 79.06 kB / 417.2 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.3472, allocations: 1.089 MB / 418.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.3472, allocations: 12.08 kB / 418.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3472, allocations: 0 / 418.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.3472, allocations: 7.922 kB / 418.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.3503, allocations: 2.001 MB / 420.3 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.3503, allocations: 3.938 kB / 420.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005419/0.3508, allocations: 123.8 kB / 420.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00115/0.352, allocations: 449.3 kB / 420.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/0.3521, allocations: 20 kB / 420.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001097/0.3532, allocations: 1.033 MB / 421.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.3532, allocations: 0 / 421.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.3555, allocations: 1.599 MB / 423.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003961/0.3559, allocations: 252.1 kB / 423.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.356, allocations: 16 kB / 423.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006085/0.3566, allocations: 43.91 kB / 423.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.3568, allocations: 56.75 kB / 423.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.768e-05/0.3569, allocations: 31.98 kB / 423.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005642/0.3574, allocations: 479 kB / 424.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3575, allocations: 0 / 424.4 MB, free: 9.641 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001622/0.3591, allocations: 0.5818 MB / 424.9 MB, free: 9.059 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.001203/0.3603, allocations: 0.4922 MB / 425.4 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002774/0.3631, allocations: 1.385 MB / 426.8 MB, free: 7.172 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3631, allocations: 0 / 426.8 MB, free: 7.172 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000923/0.364, allocations: 468 kB / 427.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.3659, allocations: 377.2 kB / 427.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003947/0.3698, allocations: 2.109 MB / 429.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006328/0.3705, allocations: 0.9952 MB / 430.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001207/0.3717, allocations: 302.6 kB / 431 MB, free: 2.898 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.3719, allocations: 75.41 kB / 431.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.372, allocations: 0 / 431.1 MB, free: 2.824 MB / 334.1 MB Notification: Performance of Templates: time 0.03432/0.4063, allocations: 21.81 MB / 452.9 MB, free: 13.16 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches