Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001327, allocations: 108.5 kB / 16.41 MB, free: 6.512 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.001388/0.001389, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.14 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.529/2.529, allocations: 437 MB / 0.7112 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 71.84 kB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7141/0.7154, allocations: 151.6 MB / 1.167 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06561/0.781, allocations: 67.48 MB / 1.233 GB, free: 116 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02681/0.8079, allocations: 18.59 MB / 1.251 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002814/0.8107, allocations: 95.5 kB / 1.251 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.005599/0.8163, allocations: 1.996 MB / 1.253 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.00795/0.8243, allocations: 2.942 MB / 1.256 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005953/0.8303, allocations: 2.445 MB / 1.259 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01111/0.8414, allocations: 8.29 MB / 1.267 GB, free: 13.69 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002908/0.8443, allocations: 1.934 MB / 1.269 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004724/0.8491, allocations: 2.156 MB / 1.271 GB, free: 9.547 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002585/0.8517, allocations: 1.568 MB / 1.272 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0006553/0.8523, allocations: 204 kB / 1.273 GB, free: 7.773 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004635/0.857, allocations: 2.149 MB / 1.275 GB, free: 5.621 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009806/0.858, allocations: 0.7008 MB / 1.275 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.002286/0.8603, allocations: 1.321 MB / 1.277 GB, free: 3.59 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007611/0.8679, allocations: 4.23 MB / 1.281 GB, free: 15.35 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.8679, allocations: 4 kB / 1.281 GB, free: 15.34 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8679, allocations: 0 / 1.281 GB, free: 15.34 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001137/0.8681, allocations: 4 kB / 1.281 GB, free: 15.34 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.006839/0.8749, allocations: 3.103 MB / 1.284 GB, free: 12.15 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.875, allocations: 16.03 kB / 1.284 GB, free: 12.14 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00239/0.8774, allocations: 476.4 kB / 1.284 GB, free: 11.67 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006013/0.8834, allocations: 2.88 MB / 1.287 GB, free: 8.715 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.8835, allocations: 94.47 kB / 1.287 GB, free: 8.621 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003645/0.8839, allocations: 139.9 kB / 1.287 GB, free: 8.484 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003159/0.8871, allocations: 1.445 MB / 1.289 GB, free: 6.949 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.8871, allocations: 3.938 kB / 1.289 GB, free: 6.945 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/0.8873, allocations: 56 kB / 1.289 GB, free: 6.891 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.007e-05/0.8874, allocations: 42.31 kB / 1.289 GB, free: 6.848 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002806/0.8902, allocations: 1.121 MB / 1.29 GB, free: 5.719 MB / 1.014 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.01134/0.9015, allocations: 7.746 MB / 1.297 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/0.9037, allocations: 1.29 MB / 1.299 GB, free: 11.99 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00101/0.9048, allocations: 450.2 kB / 1.299 GB, free: 11.55 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005259/0.91, allocations: 2.716 MB / 1.302 GB, free: 8.598 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001188/0.9112, allocations: 466.6 kB / 1.302 GB, free: 8.125 MB / 1.029 GB Notification: Performance of pre-optimization done (n=62): time 2.936e-06/0.9113, allocations: 0 / 1.302 GB, free: 8.125 MB / 1.029 GB Notification: Performance of matching and sorting (n=62): time 0.003411/0.9147, allocations: 1.24 MB / 1.303 GB, free: 6.855 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.526e-05/0.9148, allocations: 115.4 kB / 1.304 GB, free: 6.719 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003315/0.9181, allocations: 2.075 MB / 1.306 GB, free: 4.617 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.9182, allocations: 37.7 kB / 1.306 GB, free: 4.574 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009237/0.9191, allocations: 1.034 MB / 1.307 GB, free: 3.531 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/0.9194, allocations: 224.9 kB / 1.307 GB, free: 3.309 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004559/0.9199, allocations: 318.5 kB / 1.307 GB, free: 2.992 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.92, allocations: 301.1 kB / 1.307 GB, free: 2.695 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001753/0.9217, allocations: 0.5454 MB / 1.308 GB, free: 2.148 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002623/0.9244, allocations: 0.9696 MB / 1.309 GB, free: 0.9961 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004309/0.9287, allocations: 1.422 MB / 1.31 GB, free: 15.42 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/0.9287, allocations: 4 kB / 1.31 GB, free: 15.42 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.006114/0.9348, allocations: 1.745 MB / 1.312 GB, free: 13.66 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.842e-05/0.9349, allocations: 40.14 kB / 1.312 GB, free: 13.61 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.362e-05/0.935, allocations: 19.94 kB / 1.312 GB, free: 13.59 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.683e-05/0.935, allocations: 20.59 kB / 1.312 GB, free: 13.57 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.9372, allocations: 303.6 kB / 1.312 GB, free: 13.28 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.022e-05/0.9373, allocations: 27.88 kB / 1.312 GB, free: 13.25 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002809/0.9401, allocations: 174.6 kB / 1.313 GB, free: 13.08 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/0.9403, allocations: 59.98 kB / 1.313 GB, free: 13.02 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003365/0.9437, allocations: 0.9777 MB / 1.314 GB, free: 12.04 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002555/0.9462, allocations: 0.9658 MB / 1.314 GB, free: 10.9 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00425/0.9505, allocations: 1.429 MB / 1.316 GB, free: 9.316 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.007e-05/0.9506, allocations: 4 kB / 1.316 GB, free: 9.312 MB / 1.045 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.005999/0.9566, allocations: 1.749 MB / 1.318 GB, free: 7.547 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.168e-05/0.9566, allocations: 33.7 kB / 1.318 GB, free: 7.508 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.789e-05/0.9567, allocations: 15.94 kB / 1.318 GB, free: 7.492 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.27e-05/0.9567, allocations: 16 kB / 1.318 GB, free: 7.477 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002089/0.9588, allocations: 307.9 kB / 1.318 GB, free: 7.176 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.233e-05/0.9589, allocations: 23.94 kB / 1.318 GB, free: 7.152 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002746/0.9616, allocations: 151.1 kB / 1.318 GB, free: 7.004 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001822/0.9618, allocations: 55.98 kB / 1.318 GB, free: 6.949 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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.0005054/0.9624, allocations: 251.9 kB / 1.318 GB, free: 6.695 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006935/0.9631, allocations: 213.3 kB / 1.319 GB, free: 6.484 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.9665, allocations: 1.068 MB / 1.32 GB, free: 5.406 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002556/0.969, allocations: 0.7803 MB / 1.32 GB, free: 4.609 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.9691, allocations: 4 kB / 1.32 GB, free: 4.605 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.9703, allocations: 390.1 kB / 1.321 GB, free: 4.203 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005815/0.9709, allocations: 16 kB / 1.321 GB, free: 4.188 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001578/0.9725, allocations: 75.86 kB / 1.321 GB, free: 4.113 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.9727, allocations: 48.5 kB / 1.321 GB, free: 4.066 MB / 1.045 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003774/0.9765, allocations: 1.175 MB / 1.322 GB, free: 2.875 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004646/0.9811, allocations: 1.749 MB / 1.324 GB, free: 1.113 MB / 1.045 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001228/0.9824, allocations: 412.3 kB / 1.324 GB, free: 0.707 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.003055/0.9855, allocations: 1.377 MB / 1.326 GB, free: 15.31 MB / 1.061 GB Notification: Performance of Backend: time 6.81e-07/0.9855, allocations: 4 kB / 1.326 GB, free: 15.31 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.006492/0.992, allocations: 2.498 MB / 1.328 GB, free: 12.8 MB / 1.061 GB Notification: Performance of SimCode: time 0.01294/1.005, allocations: 4.779 MB / 1.333 GB, free: 7.988 MB / 1.061 GB Notification: Performance of Templates: time 0.0799/1.085, allocations: 45.86 MB / 1.377 GB, free: 10.57 MB / 1.107 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches