Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001156/0.001156, allocations: 113.4 kB / 17.73 MB, free: 5.32 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.001073/0.001073, allocations: 184.2 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 51.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09779, allocations: 46.62 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2455/0.3434, allocations: 15.85 MB / 391 MB, free: 4.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.3555, allocations: 6.846 MB / 397.8 MB, free: 15.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.357, allocations: 22.44 kB / 397.8 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.3586, allocations: 335.4 kB / 398.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004768/0.3634, allocations: 1.07 MB / 399.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006835/0.3703, allocations: 1.794 MB / 401 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004447/0.3747, allocations: 2.141 MB / 403.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001157/0.3759, allocations: 0.595 MB / 403.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001981/0.3779, allocations: 0.8114 MB / 404.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001478/0.3794, allocations: 0.8023 MB / 405.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001741/0.3796, allocations: 78.72 kB / 405.5 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003263/0.3829, allocations: 1.215 MB / 406.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004583/0.3833, allocations: 312.2 kB / 407 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007379/0.3841, allocations: 468.2 kB / 407.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003954/0.3881, allocations: 1.837 MB / 409.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.3881, allocations: 0 / 409.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3881, allocations: 1.125 kB / 409.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.399e-05/0.3881, allocations: 0 / 409.3 MB, free: 9.859 MB / 334.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.003313/0.3914, allocations: 1.274 MB / 410.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.893e-05/0.3915, allocations: 9.188 kB / 410.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003935/0.3919, allocations: 90.97 kB / 410.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.3931, allocations: 0.6256 MB / 411.3 MB, free: 8.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.3933, allocations: 116.6 kB / 411.4 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.3934, allocations: 55.8 kB / 411.4 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.395, allocations: 0.887 MB / 412.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.3951, allocations: 9.312 kB / 412.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.427e-05/0.3952, allocations: 21.98 kB / 412.4 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.602e-05/0.3953, allocations: 53 kB / 412.4 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.3969, allocations: 0.8448 MB / 413.3 MB, free: 7.207 MB / 334.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.006113/0.403, allocations: 3.437 MB / 416.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.4043, allocations: 0.6573 MB / 417.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006492/0.405, allocations: 369.3 kB / 417.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003258/0.4082, allocations: 2.044 MB / 419.8 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.291e-05/0.4083, allocations: 45.78 kB / 419.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.124e-06/0.4083, allocations: 0 / 419.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.007246/0.4155, allocations: 2.837 MB / 422.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.651e-05/0.4156, allocations: 81.67 kB / 422.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009396/0.4166, allocations: 0.6915 MB / 423.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.475e-05/0.4167, allocations: 37.7 kB / 423.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/0.4169, allocations: 328.5 kB / 423.8 MB, free: 14.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.4171, allocations: 232.7 kB / 424 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002609/0.4174, allocations: 150.5 kB / 424.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.4176, allocations: 386.8 kB / 424.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006036/0.4182, allocations: 368.6 kB / 424.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008585/0.4191, allocations: 0.5268 MB / 425.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001441/0.4205, allocations: 0.8599 MB / 426.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.4205, allocations: 0 / 426.3 MB, free: 11.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002/0.4225, allocations: 1.169 MB / 427.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.4226, allocations: 4 kB / 427.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.4226, allocations: 4 kB / 427.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/0.424, allocations: 452.7 kB / 427.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006861/0.4247, allocations: 163.8 kB / 428.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00135/0.426, allocations: 1.021 MB / 429.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007344/0.4268, allocations: 28.03 kB / 429.1 MB, free: 9.004 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.772e-05/0.4269, allocations: 33.23 kB / 429.1 MB, free: 8.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009416/0.4278, allocations: 0.5331 MB / 429.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007171/0.4285, allocations: 0.5082 MB / 430.2 MB, free: 7.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001264/0.4298, allocations: 0.8606 MB / 431 MB, free: 6.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.15e-06/0.4298, allocations: 3.938 kB / 431 MB, free: 6.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.002057/0.4319, allocations: 1.102 MB / 432.1 MB, free: 5.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.4319, allocations: 4 kB / 432.1 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.4319, allocations: 8 kB / 432.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007361/0.4327, allocations: 309 kB / 432.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006476/0.4333, allocations: 167.8 kB / 432.6 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.4344, allocations: 0.9073 MB / 433.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006533/0.4351, allocations: 32.03 kB / 433.6 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.046e-05/0.4352, allocations: 35.98 kB / 433.6 MB, free: 4.344 MB / 350.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.0003035/0.4355, allocations: 224.1 kB / 433.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.4357, allocations: 83.05 kB / 433.9 MB, free: 4.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001964/0.4376, allocations: 1.096 MB / 435 MB, free: 2.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.4377, allocations: 12 kB / 435 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.4377, allocations: 0 / 435 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.4377, allocations: 3.984 kB / 435 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003209/0.4409, allocations: 1.993 MB / 437 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.4409, allocations: 0 / 437 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005614/0.4415, allocations: 120 kB / 437.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001183/0.4427, allocations: 444.4 kB / 437.5 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-05/0.4428, allocations: 27.92 kB / 437.6 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001188/0.444, allocations: 1.021 MB / 438.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.444, allocations: 8.875 kB / 438.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.4464, allocations: 1.6 MB / 440.2 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005007/0.4469, allocations: 240.1 kB / 440.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.447, allocations: 16 kB / 440.5 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005468/0.4476, allocations: 31.97 kB / 440.5 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001576/0.4478, allocations: 60.52 kB / 440.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.321e-05/0.4478, allocations: 31.97 kB / 440.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006296/0.4485, allocations: 479 kB / 441 MB, free: 12.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4485, allocations: 4 kB / 441 MB, free: 12.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001745/0.4502, allocations: 0.5817 MB / 441.6 MB, free: 12.16 MB / 366.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.001084/0.4513, allocations: 486.8 kB / 442.1 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.4543, allocations: 1.407 MB / 443.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4543, allocations: 0 / 443.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009746/0.4553, allocations: 471.5 kB / 444 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.4571, allocations: 393.9 kB / 444.4 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003383/0.4605, allocations: 1.727 MB / 446.1 MB, free: 7.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006469/0.4612, allocations: 0.9989 MB / 447.1 MB, free: 6.656 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009556/0.4621, allocations: 302.6 kB / 447.4 MB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.4623, allocations: 71.42 kB / 447.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4623, allocations: 0 / 447.4 MB, free: 6.285 MB / 366.1 MB Notification: Performance of Templates: time 0.03693/0.4993, allocations: 23.55 MB / 471 MB, free: 14.69 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches