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.001258/0.001258, allocations: 105.2 kB / 17.73 MB, free: 5.238 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.00131/0.001311, allocations: 187.1 kB / 18.66 MB, free: 4.312 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.667/1.667, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001208/0.001208, allocations: 47.94 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1138, allocations: 46.63 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2554/0.3692, allocations: 15.85 MB / 391 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01231/0.3816, allocations: 6.845 MB / 397.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.3829, allocations: 21.81 kB / 397.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001195/0.3842, allocations: 340.8 kB / 398.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004104/0.3883, allocations: 1.063 MB / 399.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006002/0.3943, allocations: 1.794 MB / 401 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003913/0.3982, allocations: 2.145 MB / 403.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.3994, allocations: 0.5987 MB / 403.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001678/0.4011, allocations: 0.808 MB / 404.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001442/0.4026, allocations: 0.7968 MB / 405.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001995/0.4028, allocations: 79.75 kB / 405.5 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003055/0.4059, allocations: 1.214 MB / 406.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004499/0.4063, allocations: 317.8 kB / 407 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007314/0.4071, allocations: 454.5 kB / 407.4 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00332/0.4104, allocations: 1.842 MB / 409.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4104, allocations: 1.25 kB / 409.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4104, allocations: 0 / 409.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.932e-05/0.4105, allocations: 0 / 409.3 MB, free: 9.656 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.003041/0.4135, allocations: 1.275 MB / 410.5 MB, free: 8.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.4136, allocations: 9.344 kB / 410.6 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003702/0.4139, allocations: 97.42 kB / 410.7 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.415, allocations: 0.6278 MB / 411.3 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.4151, allocations: 110.8 kB / 411.4 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.4152, allocations: 54.89 kB / 411.4 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001524/0.4168, allocations: 0.8925 MB / 412.3 MB, free: 7.457 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.4168, allocations: 5.406 kB / 412.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.6e-05/0.4169, allocations: 24.98 kB / 412.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.11e-05/0.417, allocations: 57.64 kB / 412.4 MB, free: 7.414 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.4184, allocations: 0.8369 MB / 413.3 MB, free: 7 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.005707/0.4241, allocations: 3.445 MB / 416.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.4252, allocations: 0.6527 MB / 417.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005396/0.4257, allocations: 369.7 kB / 417.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002813/0.4285, allocations: 2.048 MB / 419.8 MB, free: 1.922 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.566e-05/0.4286, allocations: 51.05 kB / 419.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 2.544e-06/0.4286, allocations: 0 / 419.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.007074/0.4357, allocations: 2.833 MB / 422.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.4357, allocations: 85.66 kB / 422.7 MB, free: 15.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008454/0.4366, allocations: 0.6875 MB / 423.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.682e-05/0.4367, allocations: 37.7 kB / 423.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/0.4369, allocations: 332.5 kB / 423.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.4371, allocations: 224.7 kB / 424 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002556/0.4374, allocations: 150.5 kB / 424.1 MB, free: 14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.4376, allocations: 386.8 kB / 424.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006402/0.4382, allocations: 372.6 kB / 424.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007259/0.439, allocations: 0.5191 MB / 425.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.4402, allocations: 0.8638 MB / 426.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.227e-06/0.4402, allocations: 0 / 426.3 MB, free: 11.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001981/0.4422, allocations: 1.159 MB / 427.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.4422, allocations: 8 kB / 427.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.4423, allocations: 4 kB / 427.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001402/0.4437, allocations: 460.7 kB / 427.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006491/0.4443, allocations: 163.8 kB / 428.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.4456, allocations: 1.013 MB / 429.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006846/0.4463, allocations: 32.02 kB / 429.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-05/0.4464, allocations: 39.92 kB / 429.1 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008661/0.4473, allocations: 0.5292 MB / 429.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006759/0.4479, allocations: 0.5121 MB / 430.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001224/0.4492, allocations: 0.849 MB / 431 MB, free: 6.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.59e-06/0.4492, allocations: 6.281 kB / 431 MB, free: 6.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.001875/0.4511, allocations: 1.106 MB / 432.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.4511, allocations: 8 kB / 432.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4511, allocations: 4 kB / 432.1 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008124/0.4519, allocations: 317 kB / 432.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006313/0.4526, allocations: 159.8 kB / 432.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009693/0.4535, allocations: 0.9112 MB / 433.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006225/0.4542, allocations: 32.02 kB / 433.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.11e-05/0.4543, allocations: 36 kB / 433.6 MB, free: 4.215 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.0003145/0.4547, allocations: 224.1 kB / 433.8 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.4548, allocations: 75.94 kB / 433.9 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001968/0.4568, allocations: 1.102 MB / 435 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4568, allocations: 9 kB / 435 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4568, allocations: 0 / 435 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.4568, allocations: 11.92 kB / 435 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.46, allocations: 1.989 MB / 437 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.46, allocations: 3.938 kB / 437 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005785/0.4606, allocations: 119.9 kB / 437.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001132/0.4618, allocations: 448.5 kB / 437.6 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-05/0.4618, allocations: 16.88 kB / 437.6 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/0.4631, allocations: 1.025 MB / 438.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4631, allocations: 7.938 kB / 438.6 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002481/0.4656, allocations: 1.6 MB / 440.2 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004363/0.466, allocations: 240.1 kB / 440.4 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001291/0.4662, allocations: 12 kB / 440.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005826/0.4668, allocations: 39.97 kB / 440.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.4669, allocations: 60.52 kB / 440.5 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-05/0.467, allocations: 27.97 kB / 440.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006084/0.4676, allocations: 479 kB / 441 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4676, allocations: 4 kB / 441 MB, free: 12.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001765/0.4694, allocations: 0.5817 MB / 441.6 MB, free: 12.04 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.001175/0.4706, allocations: 482.9 kB / 442.1 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002877/0.4735, allocations: 1.407 MB / 443.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.56e-06/0.4735, allocations: 0 / 443.5 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009751/0.4745, allocations: 471.5 kB / 444 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.4764, allocations: 396.1 kB / 444.4 MB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003331/0.4797, allocations: 1.727 MB / 446.1 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005702/0.4803, allocations: 0.995 MB / 447.1 MB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001014/0.4813, allocations: 302.5 kB / 447.4 MB, free: 6.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001981/0.4815, allocations: 71.42 kB / 447.4 MB, free: 6.16 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.4815, allocations: 0 / 447.4 MB, free: 6.16 MB / 366.1 MB Notification: Performance of Templates: time 0.03713/0.5187, allocations: 23.14 MB / 470.6 MB, free: 14.98 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