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.0007681/0.0007683, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.0008099/0.0008102, allocations: 182 kB / 17.56 MB, free: 6.203 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.328/1.328, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000236/0.0002361, allocations: 7.938 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08853/0.08878, allocations: 50.41 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01695/0.1058, allocations: 16.12 MB / 367.9 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1808/0.2866, allocations: 7.124 MB / 375.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009566/0.2876, allocations: 33.31 kB / 375.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008499/0.2884, allocations: 287 kB / 375.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00283/0.2913, allocations: 1.015 MB / 376.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004365/0.2957, allocations: 1.517 MB / 377.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004408/0.3001, allocations: 3.176 MB / 381.1 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.3011, allocations: 0.5256 MB / 381.6 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.3024, allocations: 0.6857 MB / 382.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001129/0.3035, allocations: 0.7918 MB / 383.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001335/0.3037, allocations: 42.69 kB / 383.1 MB, free: 8.246 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003032/0.3067, allocations: 1.193 MB / 384.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003988/0.3071, allocations: 289 kB / 384.6 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006017/0.3077, allocations: 444.6 kB / 385 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002549/0.3103, allocations: 1.782 MB / 386.8 MB, free: 7.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3103, allocations: 0 / 386.8 MB, free: 7.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3103, allocations: 5 kB / 386.8 MB, free: 7.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.3103, allocations: 0 / 386.8 MB, free: 7.594 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.002282/0.3126, allocations: 1.097 MB / 387.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.3127, allocations: 10.28 kB / 387.9 MB, free: 6.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.313, allocations: 97.67 kB / 388 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007594/0.3138, allocations: 0.6024 MB / 388.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.491e-05/0.3139, allocations: 106 kB / 388.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.314, allocations: 53.45 kB / 388.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.3154, allocations: 0.895 MB / 389.7 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/0.3154, allocations: 4.906 kB / 389.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.107e-05/0.3155, allocations: 23.42 kB / 389.7 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.198e-05/0.3156, allocations: 52.8 kB / 389.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.3169, allocations: 0.8406 MB / 390.6 MB, free: 5.625 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.004772/0.3217, allocations: 3.473 MB / 394.1 MB, free: 2.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009094/0.3226, allocations: 0.6691 MB / 394.7 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000508/0.3232, allocations: 364.7 kB / 395.1 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002401/0.3256, allocations: 2.046 MB / 397.1 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.3256, allocations: 48.94 kB / 397.2 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=56): time 1.873e-06/0.3256, allocations: 6.531 kB / 397.2 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of matching and sorting (n=66): time 0.006605/0.3322, allocations: 2.86 MB / 400.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/0.3323, allocations: 84.8 kB / 400.1 MB, free: 14.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008066/0.3331, allocations: 0.6815 MB / 400.8 MB, free: 14.4 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.889e-05/0.3332, allocations: 39.95 kB / 400.9 MB, free: 14.36 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002526/0.3335, allocations: 333.2 kB / 401.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001851/0.3336, allocations: 225.4 kB / 401.4 MB, free: 13.88 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.3338, allocations: 71.14 kB / 401.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.3339, allocations: 389.2 kB / 401.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005676/0.3345, allocations: 365.5 kB / 402.2 MB, free: 13.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007069/0.3352, allocations: 0.5204 MB / 402.7 MB, free: 12.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001363/0.3366, allocations: 0.8605 MB / 403.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.3366, allocations: 0 / 403.6 MB, free: 12.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002015/0.3386, allocations: 1.164 MB / 404.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001338/0.3388, allocations: 219.5 kB / 405 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.3388, allocations: 7.984 kB / 405 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.3401, allocations: 452.4 kB / 405.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/0.3408, allocations: 159.7 kB / 405.6 MB, free: 9.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.342, allocations: 1.02 MB / 406.6 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/0.3426, allocations: 47.88 kB / 406.6 MB, free: 8.895 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.731e-05/0.3427, allocations: 35.98 kB / 406.7 MB, free: 8.859 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.184e-06/0.3427, allocations: 4 kB / 406.7 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001812/0.3445, allocations: 1.012 MB / 407.7 MB, free: 7.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/0.3446, allocations: 7.984 kB / 407.7 MB, free: 7.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007124/0.3453, allocations: 313 kB / 408 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006459/0.3459, allocations: 167.7 kB / 408.2 MB, free: 7.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009681/0.3469, allocations: 0.9025 MB / 409.1 MB, free: 6.434 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000582/0.3475, allocations: 39.94 kB / 409.1 MB, free: 6.395 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.331e-05/0.3476, allocations: 35.98 kB / 409.1 MB, free: 6.359 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.0004557/0.3481, allocations: 340.8 kB / 409.5 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000153/0.3482, allocations: 79.05 kB / 409.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002037/0.3503, allocations: 1.08 MB / 410.6 MB, free: 4.848 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.3503, allocations: 4 kB / 410.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3503, allocations: 3.938 kB / 410.6 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.719e-06/0.3503, allocations: 15.86 kB / 410.7 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003162/0.3535, allocations: 2.002 MB / 412.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.3535, allocations: 0 / 412.7 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005722/0.3541, allocations: 119.9 kB / 412.8 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001226/0.3553, allocations: 452.5 kB / 413.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.215e-05/0.3554, allocations: 23.98 kB / 413.2 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001179/0.3566, allocations: 1.024 MB / 414.3 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3566, allocations: 0 / 414.3 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002447/0.3591, allocations: 1.596 MB / 415.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004034/0.3595, allocations: 256 kB / 416.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.3596, allocations: 19.98 kB / 416.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000603/0.3602, allocations: 43.91 kB / 416.2 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.3604, allocations: 52.58 kB / 416.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.748e-05/0.3605, allocations: 31.98 kB / 416.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006142/0.3611, allocations: 479 kB / 416.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3611, allocations: 0 / 416.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001603/0.3627, allocations: 0.5818 MB / 417.3 MB, free: 14.05 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.00119/0.3639, allocations: 488 kB / 417.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002911/0.3668, allocations: 1.4 MB / 419.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3668, allocations: 0 / 419.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009697/0.3678, allocations: 471.6 kB / 419.6 MB, free: 11.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.3696, allocations: 366.8 kB / 420 MB, free: 11.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.3731, allocations: 2.102 MB / 422.1 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006015/0.3738, allocations: 0.9953 MB / 423.1 MB, free: 8.234 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.3749, allocations: 302.5 kB / 423.4 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002061/0.3751, allocations: 79.34 kB / 423.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3751, allocations: 0 / 423.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of Templates: time 0.03492/0.41, allocations: 21.71 MB / 445.2 MB, free: 2.352 MB / 350.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/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) Reference file matches