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.001488/0.001488, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001882/0.001882, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 63.92 kB / 306.9 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 50.53 MB / 357.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2046/0.3162, allocations: 16.78 MB / 374.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00966/0.3259, allocations: 7.28 MB / 381.5 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.3269, allocations: 32.25 kB / 381.5 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009618/0.3279, allocations: 295.5 kB / 381.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002834/0.3308, allocations: 1.021 MB / 382.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004837/0.3357, allocations: 1.502 MB / 384.3 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004535/0.3402, allocations: 3.195 MB / 387.5 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009727/0.3412, allocations: 0.5326 MB / 388.1 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001546/0.3428, allocations: 0.7038 MB / 388.8 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001199/0.344, allocations: 0.8052 MB / 389.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.3441, allocations: 43.31 kB / 389.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003082/0.3472, allocations: 1.215 MB / 390.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000357/0.3476, allocations: 278.6 kB / 391.1 MB, free: 5.562 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005532/0.3482, allocations: 425.2 kB / 391.5 MB, free: 5.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0019/0.3501, allocations: 1.325 MB / 392.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3501, allocations: 0 / 392.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3501, allocations: 1.094 kB / 392.8 MB, free: 4.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.3501, allocations: 0 / 392.8 MB, free: 4.492 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.002765/0.3529, allocations: 1.27 MB / 394.1 MB, free: 3.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3529, allocations: 9.594 kB / 394.1 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003572/0.3533, allocations: 94.7 kB / 394.2 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008761/0.3542, allocations: 0.5967 MB / 394.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.3543, allocations: 114.9 kB / 394.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.3544, allocations: 55.45 kB / 395 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001427/0.3559, allocations: 0.8966 MB / 395.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.3559, allocations: 0 / 395.9 MB, free: 2.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.345e-05/0.356, allocations: 26.86 kB / 395.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.294e-05/0.3561, allocations: 55.59 kB / 395.9 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.3574, allocations: 0.8416 MB / 396.8 MB, free: 1.859 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.005359/0.3628, allocations: 3.454 MB / 400.2 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.3638, allocations: 0.6608 MB / 400.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005291/0.3644, allocations: 375.3 kB / 401.3 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002932/0.3673, allocations: 2.026 MB / 403.3 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.313e-05/0.3674, allocations: 48.53 kB / 403.3 MB, free: 12.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.023e-06/0.3674, allocations: 0 / 403.3 MB, free: 12.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007268/0.3747, allocations: 2.828 MB / 406.2 MB, free: 10.92 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.3748, allocations: 85.67 kB / 406.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008704/0.3756, allocations: 0.6799 MB / 406.9 MB, free: 10.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.893e-05/0.3757, allocations: 37.7 kB / 407 MB, free: 10.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/0.376, allocations: 340.3 kB / 407.3 MB, free: 9.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.3762, allocations: 224.8 kB / 407.5 MB, free: 9.523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002992/0.3765, allocations: 154.6 kB / 407.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.3767, allocations: 390.7 kB / 408.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006153/0.3774, allocations: 372.6 kB / 408.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007616/0.3781, allocations: 0.5152 MB / 408.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.3795, allocations: 0.8638 MB / 409.8 MB, free: 7.121 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.3795, allocations: 0 / 409.8 MB, free: 7.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002137/0.3817, allocations: 1.165 MB / 411 MB, free: 5.945 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.3817, allocations: 8 kB / 411 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.3817, allocations: 4 kB / 411 MB, free: 5.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/0.3831, allocations: 456.1 kB / 411.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007236/0.3838, allocations: 163.7 kB / 411.6 MB, free: 5.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.3851, allocations: 1.017 MB / 412.6 MB, free: 4.285 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007816/0.3859, allocations: 43.86 kB / 412.6 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.512e-05/0.386, allocations: 35.98 kB / 412.7 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008803/0.3869, allocations: 0.5292 MB / 413.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007148/0.3876, allocations: 0.5121 MB / 413.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001293/0.389, allocations: 0.8451 MB / 414.6 MB, free: 2.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.956e-06/0.389, allocations: 0 / 414.6 MB, free: 2.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002025/0.391, allocations: 1.102 MB / 415.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.391, allocations: 11.94 kB / 415.7 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.391, allocations: 4 kB / 415.7 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000748/0.3918, allocations: 316.8 kB / 416 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006683/0.3925, allocations: 163.8 kB / 416.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.3935, allocations: 0.9117 MB / 417.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007532/0.3943, allocations: 40.02 kB / 417.1 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.832e-05/0.3944, allocations: 35.98 kB / 417.1 MB, free: 15.58 MB / 334.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.0003211/0.3947, allocations: 225.1 kB / 417.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.3949, allocations: 82.06 kB / 417.4 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.397, allocations: 1.1 MB / 418.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.046e-06/0.397, allocations: 8 kB / 418.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.397, allocations: 0 / 418.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.397, allocations: 3.984 kB / 418.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003211/0.4003, allocations: 2.013 MB / 420.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.4003, allocations: 0 / 420.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006168/0.4009, allocations: 115.9 kB / 420.7 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001282/0.4022, allocations: 457.3 kB / 421.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.766e-05/0.4023, allocations: 15.98 kB / 421.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.4035, allocations: 1.03 MB / 422.2 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.4035, allocations: 3.938 kB / 422.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002556/0.4061, allocations: 1.599 MB / 423.8 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004941/0.4066, allocations: 244.1 kB / 424 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002053/0.4068, allocations: 16 kB / 424 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007361/0.4075, allocations: 43.91 kB / 424.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001503/0.4077, allocations: 56.52 kB / 424.1 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.202e-05/0.4078, allocations: 28.84 kB / 424.1 MB, free: 8.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000673/0.4085, allocations: 483 kB / 424.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4085, allocations: 0 / 424.6 MB, free: 7.953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001894/0.4104, allocations: 0.5857 MB / 425.2 MB, free: 7.367 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.001267/0.4117, allocations: 486.8 kB / 425.7 MB, free: 6.883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003007/0.4147, allocations: 1.392 MB / 427.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4147, allocations: 0 / 427.1 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009662/0.4157, allocations: 459.5 kB / 427.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.4176, allocations: 377 kB / 427.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003736/0.4213, allocations: 2.036 MB / 429.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006497/0.422, allocations: 0.9992 MB / 430.9 MB, free: 1.586 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003001/0.4223, allocations: 83.34 kB / 431 MB, free: 1.504 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.4223, allocations: 0 / 431 MB, free: 1.504 MB / 334.1 MB Notification: Performance of Templates: time 0.029/0.4513, allocations: 19.18 MB / 450.2 MB, free: 14.38 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/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