Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|coo.TSet|coo.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001625/0.001632, allocations: 107.2 kB / 16.27 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.001784/0.001784, allocations: 189.8 kB / 17.19 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.678/2.678, allocations: 437.1 MB / 0.7111 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.39 kB / 0.8699 GB, free: 2.215 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3408, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T): time 0.06083/0.4017, allocations: 53.76 MB / 1.07 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.6183/1.02, allocations: 16.99 MB / 1.087 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004087/1.024, allocations: 91.25 kB / 1.087 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.01065/1.035, allocations: 4.356 MB / 1.091 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008391/1.043, allocations: 2.4 MB / 1.094 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00753/1.051, allocations: 2.277 MB / 1.096 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01387/1.065, allocations: 7.422 MB / 1.103 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003582/1.068, allocations: 1.646 MB / 1.105 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005993/1.074, allocations: 1.875 MB / 1.107 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003584/1.078, allocations: 1.396 MB / 1.108 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0007144/1.079, allocations: 172 kB / 1.108 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006169/1.085, allocations: 2.009 MB / 1.11 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001228/1.086, allocations: 0.6485 MB / 1.111 GB, free: 7.922 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.002639/1.089, allocations: 1.223 MB / 1.112 GB, free: 7.148 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.008716/1.098, allocations: 3.841 MB / 1.116 GB, free: 5.848 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/1.098, allocations: 5.531 kB / 1.116 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.844e-06/1.098, allocations: 0 / 1.116 GB, free: 5.844 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 0.0001018/1.098, allocations: 0 / 1.116 GB, free: 5.844 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.006611/1.104, allocations: 2.929 MB / 1.119 GB, free: 3.945 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/1.104, allocations: 12.75 kB / 1.119 GB, free: 3.941 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003027/1.107, allocations: 0.5473 MB / 1.119 GB, free: 3.789 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005416/1.113, allocations: 2.61 MB / 1.122 GB, free: 2.48 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004103/1.113, allocations: 155.6 kB / 1.122 GB, free: 2.43 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002811/1.114, allocations: 118.2 kB / 1.122 GB, free: 2.395 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00278/1.116, allocations: 1.371 MB / 1.123 GB, free: 1.727 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.461e-05/1.116, allocations: 14.23 kB / 1.123 GB, free: 1.715 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/1.117, allocations: 46.88 kB / 1.123 GB, free: 1.68 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.074e-05/1.117, allocations: 44.12 kB / 1.123 GB, free: 1.676 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002801/1.119, allocations: 1.114 MB / 1.124 GB, free: 1.305 MB / 0.8419 GB 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.01223/1.132, allocations: 7.508 MB / 1.132 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00286/1.135, allocations: 1.354 MB / 1.133 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/1.136, allocations: 428.4 kB / 1.134 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006841/1.142, allocations: 3.158 MB / 1.137 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/1.144, allocations: 437.2 kB / 1.137 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=59): time 3.807e-06/1.144, allocations: 0 / 1.137 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of matching and sorting (n=59): time 0.003993/1.148, allocations: 1.264 MB / 1.138 GB, free: 7.098 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/1.148, allocations: 62.75 kB / 1.138 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003948/1.152, allocations: 2.11 MB / 1.14 GB, free: 5.887 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.0002402/1.152, allocations: 43.92 kB / 1.14 GB, free: 5.844 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.001195/1.153, allocations: 1.018 MB / 1.141 GB, free: 4.957 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003428/1.154, allocations: 217 kB / 1.142 GB, free: 4.777 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005234/1.154, allocations: 314.9 kB / 1.142 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001456/1.154, allocations: 302.5 kB / 1.142 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/1.156, allocations: 0.562 MB / 1.143 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001847/1.157, allocations: 0.9963 MB / 1.144 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002921/1.16, allocations: 1.463 MB / 1.145 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/1.16, allocations: 3.5 kB / 1.145 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.004237/1.165, allocations: 1.784 MB / 1.147 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.659e-05/1.165, allocations: 36.45 kB / 1.147 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/1.165, allocations: 11.78 kB / 1.147 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.515e-05/1.165, allocations: 18 kB / 1.147 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/1.166, allocations: 313.2 kB / 1.147 GB, free: 1.145 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.67e-05/1.166, allocations: 30.52 kB / 1.147 GB, free: 1.133 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001925/1.168, allocations: 184.4 kB / 1.147 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/1.168, allocations: 69.59 kB / 1.148 GB, free: 1 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002166/1.17, allocations: 0.9715 MB / 1.149 GB, free: 464 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001749/1.172, allocations: 1.009 MB / 1.149 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002887/1.175, allocations: 1.456 MB / 1.151 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.859e-05/1.175, allocations: 2.5 kB / 1.151 GB, free: 14.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.004487/1.179, allocations: 1.782 MB / 1.153 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 7.865e-05/1.18, allocations: 43.73 kB / 1.153 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/1.18, allocations: 12.47 kB / 1.153 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.887e-05/1.18, allocations: 18.22 kB / 1.153 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/1.181, allocations: 309 kB / 1.153 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.336e-05/1.181, allocations: 26.98 kB / 1.153 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/1.183, allocations: 169.8 kB / 1.153 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000168/1.183, allocations: 58.61 kB / 1.153 GB, free: 13.46 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004937/1.184, allocations: 259.7 kB / 1.154 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007554/1.184, allocations: 209 kB / 1.154 GB, free: 13.1 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003271/1.188, allocations: 1.141 MB / 1.155 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/1.188, allocations: 7.719 kB / 1.155 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/1.188, allocations: 3.938 kB / 1.155 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002194/1.19, allocations: 0.9682 MB / 1.156 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007484/1.197, allocations: 2.623 MB / 1.158 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.416e-06/1.198, allocations: 2.875 kB / 1.158 GB, free: 10.19 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000765/1.198, allocations: 148.3 kB / 1.158 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002096/1.199, allocations: 32.31 kB / 1.159 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.038e-05/1.199, allocations: 17.98 kB / 1.159 GB, free: 10.11 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001394/1.2, allocations: 1.417 MB / 1.16 GB, free: 8.656 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.2, allocations: 3.938 kB / 1.16 GB, free: 8.652 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/1.204, allocations: 1.591 MB / 1.161 GB, free: 7.773 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/1.206, allocations: 393.7 kB / 1.162 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008265/1.206, allocations: 14.94 kB / 1.162 GB, free: 7.441 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001545/1.208, allocations: 70.36 kB / 1.162 GB, free: 7.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/1.208, allocations: 56.47 kB / 1.162 GB, free: 7.379 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.646e-05/1.208, allocations: 36.22 kB / 1.162 GB, free: 7.363 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.00358/1.212, allocations: 1.466 MB / 1.163 GB, free: 6.57 MB / 0.8731 GB Notification: Performance of sort global known variables: time 4.31e-07/1.212, allocations: 6.719 kB / 1.163 GB, free: 6.566 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.005659/1.217, allocations: 1.03 MB / 1.164 GB, free: 5.875 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,coo.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003476/1.221, allocations: 0.8695 MB / 1.165 GB, free: 5.172 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.005585/1.227, allocations: 2.175 MB / 1.167 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/1.227, allocations: 0 / 1.167 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.001457/1.228, allocations: 0.5372 MB / 1.168 GB, free: 2.422 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005463/1.234, allocations: 0.9756 MB / 1.169 GB, free: 1.473 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008369/1.242, allocations: 3.772 MB / 1.173 GB, free: 13.67 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001736/1.244, allocations: 1.538 MB / 1.174 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007867/1.245, allocations: 179.3 kB / 1.174 GB, free: 11.92 MB / 0.8887 GB Notification: Performance of SimCode: time 1.282e-06/1.245, allocations: 4 kB / 1.174 GB, free: 11.91 MB / 0.8887 GB Notification: Performance of Templates: time 0.07621/1.321, allocations: 40.22 MB / 1.214 GB, free: 3.969 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches