Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009285/0.0009285, allocations: 197 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008298/0.0008299, allocations: 87.73 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002025/0.0002025, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1921, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.01741/0.2096, allocations: 27.94 MB / 435.4 MB, free: 15.81 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01733/0.2269, allocations: 14.33 MB / 449.8 MB, free: 1.461 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.2285, allocations: 59.5 kB / 449.8 MB, free: 1.402 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00148/0.23, allocations: 0.493 MB / 450.3 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005012/0.235, allocations: 2.165 MB / 452.5 MB, free: 14.73 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006422/0.2414, allocations: 2.893 MB / 455.4 MB, free: 11.85 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.005267/0.2467, allocations: 5.059 MB / 460.4 MB, free: 6.773 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001426/0.2482, allocations: 0.9726 MB / 461.4 MB, free: 5.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.2503, allocations: 1.421 MB / 462.8 MB, free: 4.344 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001913/0.2522, allocations: 1.6 MB / 464.4 MB, free: 2.738 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002246/0.2524, allocations: 84 kB / 464.5 MB, free: 2.656 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003838/0.2563, allocations: 2.106 MB / 466.6 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006536/0.2569, allocations: 0.5414 MB / 467.2 MB, free: 4 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005328/0.2575, allocations: 309 kB / 467.5 MB, free: 15.69 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003321/0.2608, allocations: 2.604 MB / 470.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2608, allocations: 0 / 470.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2608, allocations: 0 / 470.1 MB, free: 13.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.811e-05/0.2609, allocations: 0 / 470.1 MB, free: 13.09 MB / 346.7 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.004137/0.265, allocations: 1.912 MB / 472 MB, free: 11.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.265, allocations: 12.03 kB / 472 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00043/0.2655, allocations: 178.1 kB / 472.2 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.2669, allocations: 0.9606 MB / 473.1 MB, free: 9.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.2671, allocations: 179 kB / 473.3 MB, free: 9.734 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/0.2673, allocations: 99.91 kB / 473.4 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002741/0.27, allocations: 1.745 MB / 475.1 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.511e-05/0.2701, allocations: 3.938 kB / 475.1 MB, free: 7.836 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001338/0.2702, allocations: 43.97 kB / 475.2 MB, free: 7.793 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/0.2704, allocations: 109.9 kB / 475.3 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002584/0.273, allocations: 1.78 MB / 477.1 MB, free: 5.895 MB / 346.7 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.01044/0.2834, allocations: 6.739 MB / 483.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.2851, allocations: 1.238 MB / 485 MB, free: 13.58 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.2862, allocations: 0.7612 MB / 485.8 MB, free: 12.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005192/0.2914, allocations: 4.282 MB / 490.1 MB, free: 8.113 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.2914, allocations: 59.48 kB / 490.1 MB, free: 8.047 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007067/0.2921, allocations: 198.7 kB / 490.3 MB, free: 7.852 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 3.146e-06/0.2921, allocations: 0 / 490.3 MB, free: 7.852 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01714/0.3093, allocations: 5.729 MB / 496.1 MB, free: 2.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.772e-05/0.3094, allocations: 145.5 kB / 496.2 MB, free: 1.891 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001471/0.3109, allocations: 1.246 MB / 497.5 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.311, allocations: 49.7 kB / 497.5 MB, free: 0.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.3114, allocations: 0.6093 MB / 498.1 MB, free: 15.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000298/0.3117, allocations: 386.5 kB / 498.5 MB, free: 15.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-05/0.3118, allocations: 32 kB / 498.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.312, allocations: 365.9 kB / 498.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001063/0.313, allocations: 0.6871 MB / 499.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001249/0.3143, allocations: 1.048 MB / 0.4889 GB, free: 13.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.3155, allocations: 0.8066 MB / 0.4897 GB, free: 12.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.3155, allocations: 4 kB / 0.4897 GB, free: 12.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003581/0.3191, allocations: 2.249 MB / 0.4919 GB, free: 10.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002302/0.3194, allocations: 379.4 kB / 0.4922 GB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.3194, allocations: 8 kB / 0.4922 GB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006973/0.3264, allocations: 1.273 MB / 0.4935 GB, free: 8.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00123/0.3276, allocations: 299.5 kB / 0.4938 GB, free: 8.156 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/0.3298, allocations: 1.606 MB / 0.4953 GB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.3311, allocations: 79.89 kB / 0.4954 GB, free: 6.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.3313, allocations: 67.97 kB / 0.4955 GB, free: 6.375 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.3313, allocations: 6.656 kB / 0.4955 GB, free: 6.371 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003172/0.3345, allocations: 2.027 MB / 0.4975 GB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.3345, allocations: 11.98 kB / 0.4975 GB, free: 4.328 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00635/0.3408, allocations: 1.109 MB / 0.4986 GB, free: 3.215 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.3422, allocations: 307.5 kB / 0.4989 GB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001963/0.3441, allocations: 1.463 MB / 0.5003 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001298/0.3455, allocations: 79.81 kB / 0.5004 GB, free: 1.348 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.3456, allocations: 75.95 kB / 0.5004 GB, free: 1.273 MB / 378.7 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.0007233/0.3463, allocations: 463.9 kB / 0.5009 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.3466, allocations: 146.3 kB / 0.501 GB, free: 0.668 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1508/0.4974, allocations: 2.095 MB / 0.5031 GB, free: 95.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.4974, allocations: 11.91 kB / 0.5031 GB, free: 95.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.4974, allocations: 0.7031 kB / 0.5031 GB, free: 95.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.4975, allocations: 11.31 kB / 0.5031 GB, free: 95.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004825/0.5023, allocations: 3.574 MB / 0.5066 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5023, allocations: 1.781 kB / 0.5066 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008399/0.5032, allocations: 194.5 kB / 0.5068 GB, free: 94.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00345/0.5066, allocations: 0.9941 MB / 0.5077 GB, free: 94.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.395e-05/0.5067, allocations: 31.33 kB / 0.5078 GB, free: 94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001953/0.5087, allocations: 1.61 MB / 0.5093 GB, free: 93.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5087, allocations: 0 / 0.5093 GB, free: 93.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003453/0.5122, allocations: 2.897 MB / 0.5122 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005846/0.5128, allocations: 413.9 kB / 0.5126 GB, free: 91.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.5129, allocations: 22.97 kB / 0.5126 GB, free: 91.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009206/0.5139, allocations: 89.09 kB / 0.5127 GB, free: 91.65 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001595/0.514, allocations: 99.83 kB / 0.5128 GB, free: 91.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.369e-05/0.5141, allocations: 48.66 kB / 0.5128 GB, free: 91.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008282/0.515, allocations: 0.8348 MB / 0.5136 GB, free: 91.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.515, allocations: 0 / 0.5136 GB, free: 91.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002167/0.5171, allocations: 1.162 MB / 0.5148 GB, free: 91 MB / 378.7 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.001274/0.5184, allocations: 0.8355 MB / 0.5156 GB, free: 90.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00443/0.5229, allocations: 2.775 MB / 0.5183 GB, free: 88.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5229, allocations: 4 kB / 0.5183 GB, free: 88.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.5243, allocations: 0.8654 MB / 0.5191 GB, free: 87.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/0.5266, allocations: 0.621 MB / 0.5197 GB, free: 86.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004107/0.5307, allocations: 3.638 MB / 0.5233 GB, free: 83.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/0.5312, allocations: 1.284 MB / 0.5245 GB, free: 81.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003611/0.5316, allocations: 143.4 kB / 0.5247 GB, free: 81.82 MB / 378.7 MB Notification: Performance of SimCode: time 9.42e-07/0.5316, allocations: 0 / 0.5247 GB, free: 81.82 MB / 378.7 MB Notification: Performance of Templates: time 0.03118/0.5628, allocations: 35.75 MB / 0.5596 GB, free: 46.15 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/ThreeTanks/ThreeTanks.csv","../files/Modelica_trunk_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches