Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|theMixValNoEle.conPID.y|theMixVal.conPID.y|genNoEle.THexOut|souDisHot.T|gen.PEle|genNoEle.PEle|sch.y.1.",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat") translateModel(Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|theMixValNoEle.conPID.y|theMixVal.conPID.y|genNoEle.THexOut|souDisHot.T|gen.PEle|genNoEle.PEle|sch.y.1.",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001839/0.001839, allocations: 112.5 kB / 16.42 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.0017/0.0017, allocations: 185.5 kB / 17.34 MB, free: 5.734 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.515/1.515, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.948/2.948, allocations: 472.7 MB / 0.746 GB, free: 424 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 59.91 kB / 1.07 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.027/1.028, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat): time 0.2179/1.246, allocations: 217.4 MB / 1.439 GB, free: 3.414 MB / 1.154 GB Notification: Performance of NFInst.instExpressions: time 0.06151/1.308, allocations: 39.55 MB / 1.477 GB, free: 11.76 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01067/1.318, allocations: 226.6 kB / 1.477 GB, free: 11.54 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.009656/1.328, allocations: 2.69 MB / 1.48 GB, free: 8.832 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.02123/1.349, allocations: 6.693 MB / 1.487 GB, free: 2.113 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.01402/1.363, allocations: 5.175 MB / 1.492 GB, free: 12.96 MB / 1.217 GB Notification: Performance of NFFlatten.flatten: time 0.02209/1.385, allocations: 13.24 MB / 1.505 GB, free: 15.69 MB / 1.232 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01218/1.398, allocations: 5.055 MB / 1.51 GB, free: 10.54 MB / 1.232 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0181/1.416, allocations: 6.205 MB / 1.516 GB, free: 4.324 MB / 1.232 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009821/1.426, allocations: 3.644 MB / 1.519 GB, free: 0.6641 MB / 1.232 GB Notification: Performance of NFPackage.collectConstants: time 0.002991/1.429, allocations: 0.5352 MB / 1.52 GB, free: 132 kB / 1.232 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01169/1.44, allocations: 2.995 MB / 1.523 GB, free: 13.13 MB / 1.248 GB Notification: Performance of NFScalarize.scalarize: time 0.00313/1.444, allocations: 1.203 MB / 1.524 GB, free: 11.92 MB / 1.248 GB Notification: Performance of NFVerifyModel.verify: time 0.007863/1.451, allocations: 2.881 MB / 1.527 GB, free: 9.027 MB / 1.248 GB Notification: Performance of NFConvertDAE.convert: time 0.02024/1.472, allocations: 8.783 MB / 1.535 GB, free: 224 kB / 1.248 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/1.472, allocations: 4 kB / 1.535 GB, free: 220 kB / 1.248 GB Notification: Performance of FrontEnd: time 1.633e-06/1.472, allocations: 0 / 1.535 GB, free: 220 kB / 1.248 GB Notification: Performance of Transformations before backend: time 0.000346/1.472, allocations: 3.938 kB / 1.535 GB, free: 216 kB / 1.248 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01671/1.489, allocations: 5.659 MB / 1.541 GB, free: 10.46 MB / 1.264 GB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/1.489, allocations: 12.03 kB / 1.541 GB, free: 10.45 MB / 1.264 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006422/1.495, allocations: 1.14 MB / 1.542 GB, free: 9.305 MB / 1.264 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/1.507, allocations: 4.407 MB / 1.546 GB, free: 4.84 MB / 1.264 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000376/1.507, allocations: 250.5 kB / 1.546 GB, free: 4.594 MB / 1.264 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/1.508, allocations: 331.9 kB / 1.547 GB, free: 4.27 MB / 1.264 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/1.521, allocations: 3.899 MB / 1.551 GB, free: 192 kB / 1.264 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001729/1.521, allocations: 7.938 kB / 1.551 GB, free: 184 kB / 1.264 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008871/1.522, allocations: 140 kB / 1.551 GB, free: 44 kB / 1.264 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/1.522, allocations: 83.98 kB / 1.551 GB, free: 15.96 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/1.533, allocations: 3.271 MB / 1.554 GB, free: 12.68 MB / 1.279 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.8098/2.342, allocations: 21.27 MB / 1.575 GB, free: 318.1 MB / 1.279 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006456/2.349, allocations: 1.933 MB / 1.577 GB, free: 317.5 MB / 1.279 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/2.351, allocations: 0.9756 MB / 1.578 GB, free: 317.2 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002112/2.353, allocations: 3.192 MB / 1.581 GB, free: 313.5 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003006/2.357, allocations: 1.163 MB / 1.582 GB, free: 313.1 MB / 1.279 GB Notification: Performance of pre-optimization done (n=158): time 4.298e-06/2.357, allocations: 0 / 1.582 GB, free: 313.1 MB / 1.279 GB Notification: Performance of matching and sorting (n=158): time 0.008482/2.365, allocations: 2.964 MB / 1.585 GB, free: 312.3 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/2.365, allocations: 198.5 kB / 1.585 GB, free: 312.1 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008359/2.374, allocations: 3.972 MB / 1.589 GB, free: 310.6 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 0.0005531/2.374, allocations: 61.16 kB / 1.589 GB, free: 310.6 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.002004/2.376, allocations: 2.118 MB / 1.591 GB, free: 309.1 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008239/2.377, allocations: 0.5807 MB / 1.591 GB, free: 308.7 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008146/2.378, allocations: 462.4 kB / 1.592 GB, free: 308.5 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 5.483e-05/2.378, allocations: 302.6 kB / 1.592 GB, free: 308.2 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002354/2.38, allocations: 0.955 MB / 1.593 GB, free: 307.9 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002675/2.383, allocations: 1.755 MB / 1.595 GB, free: 306.6 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004475/2.387, allocations: 2.586 MB / 1.597 GB, free: 305 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.871e-05/2.387, allocations: 3.969 kB / 1.597 GB, free: 305 MB / 1.279 GB Notification: Performance of matching and sorting (n=274) (initialization): time 0.007278/2.395, allocations: 3.082 MB / 1.6 GB, free: 303.8 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/2.395, allocations: 13.72 kB / 1.6 GB, free: 303.8 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.974e-05/2.395, allocations: 26.22 kB / 1.6 GB, free: 303.8 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.715e-05/2.395, allocations: 31.56 kB / 1.6 GB, free: 303.8 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002203/2.397, allocations: 0.5942 MB / 1.601 GB, free: 303.8 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.585e-05/2.397, allocations: 47.38 kB / 1.601 GB, free: 303.8 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004181/2.401, allocations: 469 kB / 1.602 GB, free: 303.7 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002748/2.402, allocations: 122 kB / 1.602 GB, free: 303.6 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003752/2.405, allocations: 1.634 MB / 1.603 GB, free: 302.9 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002758/2.408, allocations: 1.732 MB / 1.605 GB, free: 301.6 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004836/2.413, allocations: 2.538 MB / 1.607 GB, free: 300 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.293e-05/2.413, allocations: 5.25 kB / 1.607 GB, free: 300 MB / 1.279 GB Notification: Performance of matching and sorting (n=274) (initialization_lambda0): time 0.007192/2.42, allocations: 3.025 MB / 1.61 GB, free: 298.8 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/2.42, allocations: 18.59 kB / 1.61 GB, free: 298.8 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/2.42, allocations: 25 kB / 1.61 GB, free: 298.8 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.912e-05/2.42, allocations: 34.94 kB / 1.61 GB, free: 298.8 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002237/2.423, allocations: 0.5857 MB / 1.611 GB, free: 298.6 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.744e-05/2.423, allocations: 43.64 kB / 1.611 GB, free: 298.6 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003936/2.427, allocations: 361.1 kB / 1.611 GB, free: 298.5 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003247/2.427, allocations: 117.5 kB / 1.611 GB, free: 298.4 MB / 1.279 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$PRE.sch.nextTimeEvent,$whenCondition1,theMixValNoEle.conPID.con1.y,theMixVal.conPID.con1.y,sch.nextTimeEventScaled,$PRE.sch.nextTimeEventScaled,sch.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (274): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0007037/2.428, allocations: 332.8 kB / 1.612 GB, free: 298.2 MB / 1.279 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001214/2.429, allocations: 451.9 kB / 1.612 GB, free: 297.9 MB / 1.279 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006517/2.435, allocations: 3.426 MB / 1.616 GB, free: 295.4 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003939/2.439, allocations: 2.335 MB / 1.618 GB, free: 293 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/2.439, allocations: 0 / 1.618 GB, free: 293 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002177/2.442, allocations: 0.8801 MB / 1.619 GB, free: 292.1 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007463/2.442, allocations: 41.25 kB / 1.619 GB, free: 292.1 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002372/2.445, allocations: 210 kB / 1.619 GB, free: 291.9 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/2.445, allocations: 113.8 kB / 1.619 GB, free: 291.8 MB / 1.279 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005475/2.45, allocations: 2.703 MB / 1.622 GB, free: 289.1 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007676/2.458, allocations: 4.318 MB / 1.626 GB, free: 284.8 MB / 1.279 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00202/2.46, allocations: 1.132 MB / 1.627 GB, free: 283.6 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.004495/2.465, allocations: 2.74 MB / 1.63 GB, free: 280.9 MB / 1.279 GB Notification: Performance of Backend: time 9.12e-07/2.465, allocations: 0 / 1.63 GB, free: 280.9 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01155/2.476, allocations: 4.398 MB / 1.634 GB, free: 277 MB / 1.279 GB Notification: Performance of SimCode: time 0.01543/2.492, allocations: 9.06 MB / 1.643 GB, free: 268 MB / 1.279 GB Notification: Performance of Templates: time 0.1241/2.616, allocations: 93.76 MB / 1.734 GB, free: 175.2 MB / 1.279 GB make -j1 -f Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.makefile (rm -f Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.sim & ./Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Loads_HotWater_Examples_HeaterAndFixtureDirectHeatExchangerWithElectricHeat.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.HeaterAndFixtureDirectHeatExchangerWithElectricHeat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches