Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 96.17 kB / 16.94 MB, free: 5.98 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.001363/0.001363, allocations: 183.7 kB / 17.82 MB, free: 5.648 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.515/1.515, allocations: 205.4 MB / 224 MB, free: 13.15 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.0004501/0.0004501, allocations: 16 kB / 280.7 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.09934, allocations: 47.58 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02563/0.125, allocations: 25.18 MB / 353.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01862/0.1437, allocations: 13.38 MB / 366.9 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.1456, allocations: 55.5 kB / 366.9 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001496/0.1471, allocations: 0.5206 MB / 367.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005644/0.1527, allocations: 1.889 MB / 369.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008244/0.161, allocations: 2.912 MB / 372.2 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004458/0.1655, allocations: 2.307 MB / 374.6 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001557/0.167, allocations: 0.9845 MB / 375.5 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002131/0.1692, allocations: 1.211 MB / 376.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00168/0.1709, allocations: 1.09 MB / 377.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003015/0.1712, allocations: 84 kB / 377.9 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004574/0.1758, allocations: 2.216 MB / 380.1 MB, free: 132 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1922/0.3679, allocations: 493.1 kB / 380.6 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007537/0.3688, allocations: 312.7 kB / 380.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006658/0.3754, allocations: 2.62 MB / 383.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3755, allocations: 0 / 383.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.3755, allocations: 0.6562 kB / 383.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.538e-05/0.3755, allocations: 2.406 kB / 383.5 MB, free: 13.85 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005923/0.3814, allocations: 1.904 MB / 385.5 MB, free: 12.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3815, allocations: 11.22 kB / 385.5 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007185/0.3822, allocations: 177.8 kB / 385.6 MB, free: 12.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.3841, allocations: 0.9701 MB / 386.6 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/0.3842, allocations: 178 kB / 386.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.3844, allocations: 97.2 kB / 386.9 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.3874, allocations: 1.74 MB / 388.6 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.3875, allocations: 2.828 kB / 388.6 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001643/0.3877, allocations: 42.67 kB / 388.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001779/0.3878, allocations: 113.3 kB / 388.8 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002873/0.3907, allocations: 1.779 MB / 390.6 MB, free: 12.16 MB / 318.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.01133/0.4021, allocations: 6.8 MB / 397.4 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/0.4039, allocations: 1.226 MB / 398.6 MB, free: 9.84 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006192/0.4101, allocations: 4.322 MB / 402.9 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.498e-05/0.4102, allocations: 45.56 kB / 402.9 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001244/0.4115, allocations: 218.7 kB / 403.2 MB, free: 7.375 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 4.909e-06/0.4115, allocations: 0 / 403.2 MB, free: 7.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01788/0.4294, allocations: 5.719 MB / 408.9 MB, free: 6.566 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.4295, allocations: 142.1 kB / 409 MB, free: 6.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001565/0.431, allocations: 1.244 MB / 410.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001558/0.4312, allocations: 54.52 kB / 410.3 MB, free: 6.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003504/0.4316, allocations: 0.61 MB / 410.9 MB, free: 5.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002909/0.4319, allocations: 387.2 kB / 411.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.738e-05/0.432, allocations: 27.81 kB / 411.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.778e-05/0.4321, allocations: 369.5 kB / 411.7 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009555/0.433, allocations: 0.6935 MB / 412.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.4341, allocations: 1.039 MB / 413.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.4352, allocations: 0.8137 MB / 414.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.4352, allocations: 3.938 kB / 414.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003272/0.4385, allocations: 2.241 MB / 416.5 MB, free: 3.938 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007262/0.4393, allocations: 3.771 MB / 420.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.58e-05/0.4393, allocations: 13.25 kB / 420.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006467/0.4458, allocations: 1.275 MB / 421.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.4471, allocations: 300.1 kB / 421.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002293/0.4494, allocations: 1.599 MB / 423.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.4511, allocations: 85.86 kB / 423.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.4513, allocations: 73.77 kB / 423.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.4513, allocations: 4 kB / 423.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003254/0.4546, allocations: 2.024 MB / 425.6 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.812e-05/0.4546, allocations: 12 kB / 425.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006034/0.4606, allocations: 1.112 MB / 426.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.4621, allocations: 306 kB / 427 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/0.4642, allocations: 1.458 MB / 428.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/0.466, allocations: 80.33 kB / 428.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/0.4661, allocations: 69.16 kB / 428.6 MB, free: 10.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0009862/0.4671, allocations: 463 kB / 429.1 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003174/0.4675, allocations: 150.2 kB / 429.2 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003951/0.4714, allocations: 2.092 MB / 431.3 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.4715, allocations: 16 kB / 431.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.4715, allocations: 0 / 431.3 MB, free: 8.332 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.4715, allocations: 3.984 kB / 431.4 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006481/0.478, allocations: 3.598 MB / 434.9 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.4781, allocations: 0 / 434.9 MB, free: 5.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.4791, allocations: 191.3 kB / 435.1 MB, free: 5.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/0.483, allocations: 0.9997 MB / 436.1 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002046/0.4833, allocations: 34.11 kB / 436.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002203/0.4855, allocations: 1.608 MB / 437.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4855, allocations: 4 kB / 437.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004739/0.4902, allocations: 2.898 MB / 440.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.4915, allocations: 419 kB / 441.1 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002766/0.4918, allocations: 27.95 kB / 441.1 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.4929, allocations: 79.88 kB / 441.2 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.4931, allocations: 101.2 kB / 441.3 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001194/0.4933, allocations: 47.97 kB / 441.3 MB, free: 416 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001211/0.4945, allocations: 0.8363 MB / 442.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4945, allocations: 0 / 442.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00405/0.4985, allocations: 1.163 MB / 443.3 MB, free: 14.4 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002408/0.501, allocations: 0.8335 MB / 444.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005564/0.5065, allocations: 2.777 MB / 446.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.5066, allocations: 0 / 446.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.5082, allocations: 0.8726 MB / 447.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003033/0.5113, allocations: 0.5906 MB / 448.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005726/0.517, allocations: 3.57 MB / 452 MB, free: 5.926 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008109/0.5179, allocations: 1.323 MB / 453.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0021/0.52, allocations: 0.5851 MB / 453.9 MB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.5203, allocations: 126.6 kB / 454 MB, free: 3.863 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5203, allocations: 0 / 454 MB, free: 3.863 MB / 350.1 MB Notification: Performance of Templates: time 0.06066/0.581, allocations: 40.38 MB / 494.4 MB, free: 11.62 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches