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.0009331/0.0009332, allocations: 97.58 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 204.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.7 MB / 247.5 MB, free: 9.461 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002358/0.0002358, allocations: 8 kB / 308.4 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09192/0.09217, allocations: 51.52 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.1897/0.2819, allocations: 16.22 MB / 376.1 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.2921, allocations: 7.169 MB / 383.3 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.2932, allocations: 32.69 kB / 383.3 MB, free: 8.516 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009574/0.2942, allocations: 285.5 kB / 383.6 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003079/0.2973, allocations: 1.021 MB / 384.6 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004781/0.3021, allocations: 1.506 MB / 386.1 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00446/0.3066, allocations: 3.2 MB / 389.3 MB, free: 7.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001079/0.3077, allocations: 0.5339 MB / 389.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001636/0.3093, allocations: 0.6935 MB / 390.6 MB, free: 6.656 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001555/0.3109, allocations: 0.7949 MB / 391.3 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001622/0.3111, allocations: 41.59 kB / 391.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002956/0.314, allocations: 1.212 MB / 392.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004176/0.3145, allocations: 285.8 kB / 392.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006413/0.3151, allocations: 440.2 kB / 393.3 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002092/0.3172, allocations: 1.313 MB / 394.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3172, allocations: 0.9062 kB / 394.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3172, allocations: 0 / 394.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.3173, allocations: 0 / 394.6 MB, free: 4.664 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.002535/0.3198, allocations: 1.109 MB / 395.7 MB, free: 3.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3199, allocations: 13.09 kB / 395.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003337/0.3202, allocations: 90.75 kB / 395.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008405/0.321, allocations: 0.5938 MB / 396.4 MB, free: 3.254 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.3212, allocations: 110.6 kB / 396.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.3213, allocations: 56.08 kB / 396.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.3227, allocations: 0.8955 MB / 397.5 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/0.3228, allocations: 1.375 kB / 397.5 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.983e-05/0.3228, allocations: 25.42 kB / 397.5 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.58e-05/0.3229, allocations: 53.03 kB / 397.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.3242, allocations: 0.841 MB / 398.4 MB, free: 2.137 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.005281/0.3295, allocations: 3.474 MB / 401.9 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.3306, allocations: 0.6688 MB / 402.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005251/0.3311, allocations: 366.7 kB / 402.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00284/0.3339, allocations: 2.043 MB / 404.9 MB, free: 13.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.334, allocations: 45.81 kB / 405 MB, free: 13 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 4.549e-06/0.334, allocations: 3.938 kB / 405 MB, free: 13 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007104/0.3411, allocations: 2.86 MB / 407.9 MB, free: 11.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/0.3412, allocations: 89.67 kB / 407.9 MB, free: 10.98 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000872/0.3421, allocations: 0.6798 MB / 408.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.278e-05/0.3422, allocations: 41.7 kB / 408.7 MB, free: 10.24 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.3424, allocations: 332.4 kB / 409 MB, free: 9.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001957/0.3427, allocations: 232.7 kB / 409.2 MB, free: 9.684 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3428, allocations: 69.62 kB / 409.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3429, allocations: 386.8 kB / 409.7 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005835/0.3435, allocations: 361.8 kB / 410 MB, free: 8.871 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/0.3442, allocations: 0.5191 MB / 410.5 MB, free: 8.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001236/0.3455, allocations: 0.8677 MB / 411.4 MB, free: 7.371 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.3455, allocations: 4 kB / 411.4 MB, free: 7.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001999/0.3475, allocations: 1.161 MB / 412.6 MB, free: 6.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.3477, allocations: 215.2 kB / 412.8 MB, free: 5.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.3477, allocations: 4 kB / 412.8 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/0.349, allocations: 452.4 kB / 413.2 MB, free: 5.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006639/0.3496, allocations: 163.7 kB / 413.4 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.3508, allocations: 1.01 MB / 414.4 MB, free: 4.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007417/0.3516, allocations: 55.86 kB / 414.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.232e-05/0.3517, allocations: 35.98 kB / 414.5 MB, free: 4.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.3517, allocations: 4 kB / 414.5 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001739/0.3535, allocations: 1.008 MB / 415.5 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.3535, allocations: 7.984 kB / 415.5 MB, free: 3.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006914/0.3542, allocations: 312.8 kB / 415.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/0.3548, allocations: 171.7 kB / 416 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009755/0.3558, allocations: 0.9074 MB / 416.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007534/0.3566, allocations: 39.98 kB / 416.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.959e-05/0.3567, allocations: 39.92 kB / 417 MB, free: 1.676 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.0004806/0.3572, allocations: 336.7 kB / 417.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.3573, allocations: 79.06 kB / 417.4 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00197/0.3593, allocations: 1.09 MB / 418.5 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.3593, allocations: 8 kB / 418.5 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3593, allocations: 0 / 418.5 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.3594, allocations: 7.922 kB / 418.5 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003069/0.3624, allocations: 2.002 MB / 420.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3624, allocations: 4 kB / 420.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000559/0.363, allocations: 115.8 kB / 420.6 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001201/0.3642, allocations: 451.5 kB / 421 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.908e-05/0.3643, allocations: 23.98 kB / 421.1 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001134/0.3654, allocations: 1.028 MB / 422.1 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.3655, allocations: 0 / 422.1 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002457/0.3679, allocations: 1.599 MB / 423.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005405/0.3685, allocations: 244 kB / 423.9 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001994/0.3687, allocations: 16 kB / 423.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007111/0.3694, allocations: 47.91 kB / 424 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001535/0.3696, allocations: 56.56 kB / 424 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-05/0.3697, allocations: 31.92 kB / 424.1 MB, free: 10.41 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006681/0.3703, allocations: 479 kB / 424.5 MB, free: 9.945 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3704, allocations: 4 kB / 424.5 MB, free: 9.941 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001861/0.3722, allocations: 0.5818 MB / 425.1 MB, free: 9.359 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.001344/0.3736, allocations: 498.7 kB / 425.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00297/0.3766, allocations: 1.395 MB / 427 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3766, allocations: 1.812 kB / 427 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009655/0.3775, allocations: 463.5 kB / 427.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.3798, allocations: 362.1 kB / 427.8 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.3836, allocations: 2.148 MB / 430 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005909/0.3842, allocations: 0.9953 MB / 431 MB, free: 3.469 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002916/0.3845, allocations: 87.34 kB / 431 MB, free: 3.383 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3845, allocations: 0 / 431 MB, free: 3.383 MB / 334.1 MB Notification: Performance of Templates: time 0.02726/0.4118, allocations: 19.09 MB / 450.1 MB, free: 360 kB / 350.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/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_trunk_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches