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.00158/0.00158, allocations: 101.5 kB / 18.39 MB, free: 4.551 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.001813/0.001813, allocations: 183 kB / 19.33 MB, free: 3.629 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.417/1.417, allocations: 205.1 MB / 225.2 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.001413/0.001413, allocations: 55.92 kB / 329.2 MB, free: 3.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09642/0.09785, allocations: 46.61 MB / 375.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.2425/0.3404, allocations: 15.84 MB / 391.7 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01067/0.3511, allocations: 6.849 MB / 398.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001163/0.3523, allocations: 26.09 kB / 398.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.3536, allocations: 334 kB / 398.9 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.357, allocations: 1.067 MB / 399.9 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006452/0.3635, allocations: 1.795 MB / 401.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00392/0.3675, allocations: 2.144 MB / 403.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001073/0.3685, allocations: 0.6019 MB / 404.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001667/0.3702, allocations: 0.8057 MB / 405.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001341/0.3716, allocations: 0.7919 MB / 406.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.3718, allocations: 83.69 kB / 406.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003425/0.3752, allocations: 1.218 MB / 407.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004657/0.3757, allocations: 313.2 kB / 407.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000705/0.3764, allocations: 471 kB / 408.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003652/0.3801, allocations: 1.834 MB / 410 MB, free: 9.699 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3801, allocations: 0 / 410 MB, free: 9.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3801, allocations: 0 / 410 MB, free: 9.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.602e-05/0.3801, allocations: 0 / 410 MB, free: 9.699 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.002994/0.3831, allocations: 1.268 MB / 411.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.3832, allocations: 9.375 kB / 411.2 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003823/0.3836, allocations: 94.36 kB / 411.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.3846, allocations: 0.6329 MB / 412 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.3848, allocations: 106.1 kB / 412.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.3849, allocations: 59.88 kB / 412.1 MB, free: 8.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.3865, allocations: 0.8838 MB / 413 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.3865, allocations: 5.5 kB / 413 MB, free: 7.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.908e-05/0.3866, allocations: 32.27 kB / 413 MB, free: 7.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.582e-05/0.3867, allocations: 52.52 kB / 413.1 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.3881, allocations: 0.845 MB / 413.9 MB, free: 7.047 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.005811/0.394, allocations: 3.442 MB / 417.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.395, allocations: 0.6575 MB / 418 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005371/0.3956, allocations: 369 kB / 418.4 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002909/0.3985, allocations: 2.043 MB / 420.4 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.3985, allocations: 43.31 kB / 420.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=56): time 3.496e-06/0.3986, allocations: 3.938 kB / 420.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=66): time 0.00699/0.4056, allocations: 2.837 MB / 423.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.4056, allocations: 81.67 kB / 423.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008482/0.4065, allocations: 0.6836 MB / 424.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.779e-05/0.4066, allocations: 37.7 kB / 424.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.4068, allocations: 336.5 kB / 424.5 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.407, allocations: 224.7 kB / 424.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/0.4073, allocations: 150.6 kB / 424.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4075, allocations: 386.8 kB / 425.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000587/0.4081, allocations: 372.6 kB / 425.6 MB, free: 13.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006928/0.4088, allocations: 0.5268 MB / 426.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.41, allocations: 0.856 MB / 426.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.41, allocations: 0 / 426.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001917/0.4119, allocations: 1.168 MB / 428.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.412, allocations: 4 kB / 428.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.412, allocations: 4.562 kB / 428.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/0.4132, allocations: 464.4 kB / 428.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000623/0.4139, allocations: 155.8 kB / 428.7 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.415, allocations: 1.017 MB / 429.7 MB, free: 8.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005956/0.4156, allocations: 28.03 kB / 429.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.326e-05/0.4157, allocations: 35.98 kB / 429.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007948/0.4165, allocations: 0.5408 MB / 430.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006372/0.4171, allocations: 0.5082 MB / 430.9 MB, free: 7.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001147/0.4183, allocations: 0.8503 MB / 431.7 MB, free: 6.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.107e-06/0.4183, allocations: 3.938 kB / 431.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.00176/0.4201, allocations: 1.102 MB / 432.8 MB, free: 5.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.4201, allocations: 4 kB / 432.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.4201, allocations: 4.562 kB / 432.8 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006747/0.4208, allocations: 316.6 kB / 433.1 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006305/0.4214, allocations: 171.8 kB / 433.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009443/0.4224, allocations: 0.9035 MB / 434.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005874/0.423, allocations: 27.98 kB / 434.2 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.839e-05/0.4231, allocations: 39.98 kB / 434.3 MB, free: 4.266 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.000273/0.4233, allocations: 224.1 kB / 434.5 MB, free: 4.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.4235, allocations: 79.06 kB / 434.6 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/0.4255, allocations: 1.105 MB / 435.7 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.4255, allocations: 4 kB / 435.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4255, allocations: 0 / 435.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.797e-06/0.4255, allocations: 7.984 kB / 435.7 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.4285, allocations: 1.996 MB / 437.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4285, allocations: 0 / 437.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000556/0.4291, allocations: 124.7 kB / 437.8 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.4302, allocations: 444.5 kB / 438.2 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.466e-05/0.4303, allocations: 19.98 kB / 438.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.4314, allocations: 1.024 MB / 439.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4314, allocations: 3.938 kB / 439.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002352/0.4338, allocations: 1.601 MB / 440.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004114/0.4342, allocations: 236.1 kB / 441.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.4343, allocations: 23.98 kB / 441.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005425/0.4349, allocations: 27.98 kB / 441.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001379/0.435, allocations: 64.5 kB / 441.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.73e-05/0.4351, allocations: 27.98 kB / 441.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005804/0.4357, allocations: 479 kB / 441.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4357, allocations: 0 / 441.7 MB, free: 12.67 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001746/0.4375, allocations: 0.5856 MB / 442.3 MB, free: 12.09 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.001081/0.4386, allocations: 486.8 kB / 442.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002885/0.4414, allocations: 1.408 MB / 444.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.82e-06/0.4415, allocations: 3.938 kB / 444.2 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009031/0.4424, allocations: 463.5 kB / 444.6 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.4442, allocations: 398.3 kB / 445 MB, free: 9.352 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.4476, allocations: 1.768 MB / 446.8 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/0.4481, allocations: 0.9872 MB / 447.8 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002908/0.4484, allocations: 83.41 kB / 447.9 MB, free: 6.457 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4485, allocations: 0 / 447.9 MB, free: 6.457 MB / 366.1 MB Notification: Performance of Templates: time 0.0265/0.475, allocations: 19.12 MB / 467 MB, free: 3.301 MB / 382.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.csv","/var/lib/jenkins1/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