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.00122/0.001221, allocations: 100.8 kB / 16.94 MB, free: 5.984 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.001373/0.001373, allocations: 174.1 kB / 17.82 MB, free: 5.652 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.418/1.418, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004637/0.0004638, allocations: 12 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1056, allocations: 47.59 MB / 328.3 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.01676/0.1225, allocations: 13.86 MB / 342.2 MB, free: 6.176 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009785/0.1323, allocations: 6.144 MB / 348.3 MB, free: 28 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.1333, allocations: 35.73 kB / 348.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.1345, allocations: 290.4 kB / 348.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003354/0.1379, allocations: 0.8802 MB / 349.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004545/0.1424, allocations: 1.368 MB / 350.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002433/0.1449, allocations: 1.23 MB / 352.1 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.146, allocations: 0.5019 MB / 352.6 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.1476, allocations: 0.6076 MB / 353.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.1489, allocations: 0.5177 MB / 353.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003138/0.1493, allocations: 40 kB / 353.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002562/0.1518, allocations: 1.088 MB / 354.9 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004441/0.1523, allocations: 255.3 kB / 355.1 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003404/0.1526, allocations: 173.3 kB / 355.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00232/0.155, allocations: 1.286 MB / 356.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.155, allocations: 0 / 356.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.616e-06/0.155, allocations: 0 / 356.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.189e-05/0.1551, allocations: 11.88 kB / 356.6 MB, free: 7.719 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.002995/0.1581, allocations: 1.102 MB / 357.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.1581, allocations: 8.031 kB / 357.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000458/0.1586, allocations: 99.02 kB / 357.8 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.1598, allocations: 0.574 MB / 358.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001182/0.1599, allocations: 108.7 kB / 358.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001387/0.1601, allocations: 55.98 kB / 358.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/0.1617, allocations: 0.8884 MB / 359.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.528e-05/0.1617, allocations: 0 / 359.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.309e-05/0.1618, allocations: 27.98 kB / 359.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-05/0.1619, allocations: 57.22 kB / 359.5 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.1634, allocations: 0.8404 MB / 360.3 MB, free: 3.828 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.006209/0.1696, allocations: 3.47 MB / 363.8 MB, free: 172 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001163/0.1708, allocations: 0.6685 MB / 364.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003089/0.1739, allocations: 2.051 MB / 366.5 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.982e-05/0.174, allocations: 39.06 kB / 366.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.054e-06/0.174, allocations: 4 kB / 366.6 MB, free: 13.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=66): time 0.007073/0.1811, allocations: 2.856 MB / 369.4 MB, free: 10.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.1811, allocations: 85.67 kB / 369.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000931/0.1821, allocations: 0.6721 MB / 370.2 MB, free: 9.488 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.989e-05/0.1822, allocations: 41.7 kB / 370.2 MB, free: 9.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003134/0.1825, allocations: 332.4 kB / 370.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.1827, allocations: 232.7 kB / 370.8 MB, free: 8.883 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.765e-05/0.1828, allocations: 16 kB / 370.8 MB, free: 8.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.183, allocations: 386.8 kB / 371.2 MB, free: 8.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005895/0.1836, allocations: 357.8 kB / 371.5 MB, free: 8.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006935/0.1843, allocations: 0.5073 MB / 372 MB, free: 7.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006763/0.185, allocations: 411 kB / 372.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.185, allocations: 0 / 372.4 MB, free: 7.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001898/0.1869, allocations: 1.145 MB / 373.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006751/0.1876, allocations: 1.658 MB / 375.2 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.511e-05/0.1876, allocations: 7.938 kB / 375.2 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.1889, allocations: 448.4 kB / 375.7 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006533/0.1896, allocations: 163.7 kB / 375.8 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/0.1907, allocations: 1.017 MB / 376.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000613/0.1914, allocations: 43.88 kB / 376.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.1915, allocations: 39.98 kB / 376.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.1915, allocations: 4 kB / 376.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001762/0.1932, allocations: 0.9962 MB / 377.9 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.1933, allocations: 7.984 kB / 378 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006706/0.194, allocations: 316.7 kB / 378.3 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006369/0.1946, allocations: 171.7 kB / 378.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009341/0.1955, allocations: 0.9035 MB / 379.3 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005609/0.1961, allocations: 47.88 kB / 379.4 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.204/0.4001, allocations: 29 kB / 379.4 MB, free: 33.45 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 (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 initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006649/0.4008, allocations: 325.4 kB / 379.7 MB, free: 33.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000219/0.401, allocations: 78.02 kB / 379.8 MB, free: 33.26 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/0.403, allocations: 1.091 MB / 380.9 MB, free: 33.21 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.4031, allocations: 7.688 kB / 380.9 MB, free: 33.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.4031, allocations: 0.7031 kB / 380.9 MB, free: 33.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.4031, allocations: 3.188 kB / 380.9 MB, free: 33.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003571/0.4067, allocations: 1.995 MB / 382.9 MB, free: 32.9 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4067, allocations: 0.75 kB / 382.9 MB, free: 32.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005887/0.4073, allocations: 119.1 kB / 383 MB, free: 32.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001266/0.4086, allocations: 450.3 kB / 383.5 MB, free: 32.89 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.4086, allocations: 20.05 kB / 383.5 MB, free: 32.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.4098, allocations: 1.036 MB / 384.5 MB, free: 32.38 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.716e-06/0.4099, allocations: 0.6094 kB / 384.5 MB, free: 32.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.4123, allocations: 1.598 MB / 386.1 MB, free: 32.21 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000476/0.4128, allocations: 252.4 kB / 386.4 MB, free: 32.12 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001181/0.413, allocations: 13.98 kB / 386.4 MB, free: 32.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005802/0.4135, allocations: 50.28 kB / 386.4 MB, free: 32.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001778/0.4137, allocations: 56.61 kB / 386.5 MB, free: 32.12 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.16e-05/0.4138, allocations: 28.08 kB / 386.5 MB, free: 32.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008785/0.4147, allocations: 471.8 kB / 387 MB, free: 32.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4147, allocations: 1.062 kB / 387 MB, free: 32.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001791/0.4165, allocations: 0.5841 MB / 387.5 MB, free: 32.02 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009922/0.4175, allocations: 470.3 kB / 388 MB, free: 31.9 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002789/0.4203, allocations: 1.386 MB / 389.4 MB, free: 31.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4203, allocations: 4.562 kB / 389.4 MB, free: 31.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009869/0.4213, allocations: 461.7 kB / 389.8 MB, free: 31.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001534/0.4229, allocations: 356.3 kB / 390.2 MB, free: 31.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003162/0.4261, allocations: 2.014 MB / 392.2 MB, free: 31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004689/0.4265, allocations: 1.005 MB / 393.2 MB, free: 30.29 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0009944/0.4275, allocations: 308.7 kB / 393.5 MB, free: 30.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001847/0.4277, allocations: 76.55 kB / 393.6 MB, free: 30.22 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4277, allocations: 0 / 393.6 MB, free: 30.22 MB / 318.1 MB Notification: Performance of Templates: time 0.02766/0.4554, allocations: 21.15 MB / 414.7 MB, free: 15.68 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.EmptyTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches