Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008818/0.0008815, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004982/0.004982, allocations: 171.7 kB / 16.27 MB, free: 6.648 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.251/1.251, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.095/2.095, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003002, allocations: 8 kB / 0.8161 GB, free: 13.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5397/0.54, allocations: 142.4 MB / 0.9552 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect): time 0.002221/0.5423, allocations: 1.798 MB / 0.9569 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002569/0.5449, allocations: 2.461 MB / 0.9593 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.5451, allocations: 2.625 kB / 0.9593 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.5463, allocations: 0.5041 MB / 0.9598 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000242/0.5466, allocations: 100.3 kB / 0.9599 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00057/0.5471, allocations: 209.2 kB / 0.9601 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004165/0.5476, allocations: 338 kB / 0.9605 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.5477, allocations: 68.58 kB / 0.9605 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.5479, allocations: 107.5 kB / 0.9606 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002049/0.5481, allocations: 143.1 kB / 0.9608 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.235e-05/0.5481, allocations: 3.406 kB / 0.9608 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001712/0.5483, allocations: 55.03 kB / 0.9608 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.5485, allocations: 125.7 kB / 0.9609 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001715/0.5486, allocations: 244 kB / 0.9612 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000587/0.5492, allocations: 0.6469 MB / 0.9618 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.5492, allocations: 1.156 kB / 0.9618 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.814e-06/0.5493, allocations: 0 / 0.9618 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.502e-05/0.5493, allocations: 0 / 0.9618 GB, free: 2.77 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.001084/0.5504, allocations: 0.7976 MB / 0.9626 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.5504, allocations: 9.156 kB / 0.9626 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.465e-05/0.5505, allocations: 32.91 kB / 0.9626 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.5506, allocations: 70.44 kB / 0.9627 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004462/0.551, allocations: 436 kB / 0.9631 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.5511, allocations: 1.969 kB / 0.9631 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.696e-05/0.5511, allocations: 7 kB / 0.9631 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001846/0.5513, allocations: 97.88 kB / 0.9632 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-06/0.5513, allocations: 4.75 kB / 0.9632 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.5513, allocations: 4.812 kB / 0.9632 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.5513, allocations: 1.469 kB / 0.9632 GB, free: 1.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.5514, allocations: 46.66 kB / 0.9633 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000676/0.5521, allocations: 0.5146 MB / 0.9638 GB, free: 1.031 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003482/0.5525, allocations: 102.7 kB / 0.9639 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.252e-05/0.5526, allocations: 36.47 kB / 0.9639 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.5526, allocations: 5.203 kB / 0.9639 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.5527, allocations: 89.67 kB / 0.964 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.5528, allocations: 1 kB / 0.964 GB, free: 0.8633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004004/0.5532, allocations: 191.2 kB / 0.9642 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.5532, allocations: 111.8 kB / 0.9643 GB, free: 0.6211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009472/0.5542, allocations: 0.8807 MB / 0.9651 GB, free: 160 kB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.5542, allocations: 35.06 kB / 0.9652 GB, free: 120 kB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.5544, allocations: 296.6 kB / 0.9655 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.5545, allocations: 19.62 kB / 0.9655 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-05/0.5545, allocations: 15.62 kB / 0.9655 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5546, allocations: 311.9 kB / 0.9658 GB, free: 15.52 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.412e-05/0.5547, allocations: 26.36 kB / 0.9658 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.5548, allocations: 76.91 kB / 0.9659 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.555, allocations: 74.64 kB / 0.966 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.555, allocations: 0 / 0.966 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002967/0.5553, allocations: 163.3 kB / 0.9661 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.5553, allocations: 5.469 kB / 0.9661 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.5553, allocations: 1.406 kB / 0.9661 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.5553, allocations: 0 / 0.9661 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.259e-05/0.5554, allocations: 24.05 kB / 0.9661 GB, free: 15.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.5554, allocations: 8.969 kB / 0.9661 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001373/0.5556, allocations: 11.56 kB / 0.9662 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.5556, allocations: 7.828 kB / 0.9662 GB, free: 15.27 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.sta.combiTimeTable.nextTimeEvent,$whenCondition1,sta.combiTimeTable.nextTimeEventScaled,$PRE.sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent,sta.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0003241/0.5559, allocations: 309.9 kB / 0.9665 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.335e-05/0.556, allocations: 61.38 kB / 0.9665 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.5561, allocations: 76.77 kB / 0.9666 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.319e-06/0.5561, allocations: 8.844 kB / 0.9666 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.5561, allocations: 0 / 0.9666 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.5562, allocations: 5.219 kB / 0.9666 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003988/0.5566, allocations: 381.8 kB / 0.967 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.5566, allocations: 3.938 kB / 0.967 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.835e-05/0.5566, allocations: 10.36 kB / 0.967 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.5566, allocations: 0 / 0.967 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.637e-06/0.5566, allocations: 1.312 kB / 0.967 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.5567, allocations: 5.188 kB / 0.967 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.5567, allocations: 0 / 0.967 GB, free: 14.63 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003005/0.557, allocations: 194.3 kB / 0.9672 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.5571, allocations: 140.4 kB / 0.9673 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.063e-05/0.5572, allocations: 1.031 kB / 0.9673 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.5573, allocations: 7.406 kB / 0.9673 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.5573, allocations: 12.05 kB / 0.9673 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.5574, allocations: 6.938 kB / 0.9673 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0007739/0.5581, allocations: 0.659 MB / 0.968 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5581, allocations: 0 / 0.968 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002917/0.5584, allocations: 53.94 kB / 0.968 GB, free: 13.98 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,sta.y,sta.combiTimeTable.nextTimeEvent,sta.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (sta.combiTimeTable.nextTimeEventScaled,sta.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001447/0.5599, allocations: 1.061 MB / 0.9691 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002058/0.5601, allocations: 72.98 kB / 0.9691 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5601, allocations: 0 / 0.9691 GB, free: 13.16 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.366e-05/0.5602, allocations: 38.95 kB / 0.9692 GB, free: 13.15 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/0.5609, allocations: 147.8 kB / 0.9693 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005667/0.5666, allocations: 4.918 MB / 0.9741 GB, free: 9.906 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005585/0.5671, allocations: 0.9806 MB / 0.9751 GB, free: 9.055 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001294/0.5673, allocations: 31.8 kB / 0.9751 GB, free: 9.043 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.5675, allocations: 168.9 kB / 0.9753 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.5675, allocations: 4 kB / 0.9753 GB, free: 8.887 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.35/1.917, allocations: 11.73 MB / 0.9867 GB, free: 14.93 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002591/1.917, allocations: 277.1 kB / 0.987 GB, free: 14.57 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/3.873, allocations: 0 / 0.987 GB, free: 14.57 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedSelect.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedSelect.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches