Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.Controls.OBC.CDL.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold",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.01079/0.01079, allocations: 98.73 kB / 15.73 MB, free: 6.02 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.002371/0.002372, allocations: 193 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.474/2.474, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 4.387/4.387, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002187/0.002188, allocations: 67.89 kB / 0.9505 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.702/1.704, allocations: 140.4 MB / 1.088 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold): time 0.006415/1.71, allocations: 1.929 MB / 1.089 GB, free: 3.918 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003034/1.713, allocations: 1.101 MB / 1.09 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003585/1.714, allocations: 4.25 kB / 1.09 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008164/1.715, allocations: 114.7 kB / 1.091 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006041/1.715, allocations: 111.8 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009361/1.716, allocations: 148.8 kB / 1.091 GB, free: 2.984 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006388/1.717, allocations: 207.1 kB / 1.091 GB, free: 2.891 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003246/1.717, allocations: 52.64 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/1.718, allocations: 90.33 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003086/1.718, allocations: 104.6 kB / 1.091 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.513e-05/1.718, allocations: 14.97 kB / 1.091 GB, free: 2.781 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003056/1.718, allocations: 51.41 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001626/1.718, allocations: 56.08 kB / 1.091 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001891/1.719, allocations: 86.09 kB / 1.091 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008954/1.72, allocations: 285.4 kB / 1.092 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/1.72, allocations: 4.562 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of FrontEnd: time 5.841e-06/1.72, allocations: 0.625 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.134e-05/1.72, allocations: 0 / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.001449/1.721, allocations: 0.5418 MB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.797e-05/1.721, allocations: 9.719 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.834e-05/1.721, allocations: 38.16 kB / 1.092 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.904e-05/1.721, allocations: 31.62 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008581/1.722, allocations: 391.7 kB / 1.093 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.479e-05/1.722, allocations: 7.5 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/1.722, allocations: 11.91 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/1.723, allocations: 78.84 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/1.723, allocations: 0 / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/1.723, allocations: 1.375 kB / 1.093 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/1.723, allocations: 5.375 kB / 1.093 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/1.723, allocations: 42.56 kB / 1.093 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/1.724, allocations: 414 kB / 1.093 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004125/1.724, allocations: 77.41 kB / 1.093 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/1.725, allocations: 35.95 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/1.725, allocations: 1.625 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/1.725, allocations: 77.61 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.284e-06/1.725, allocations: 0 / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0005884/1.726, allocations: 139.3 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/1.726, allocations: 57.5 kB / 1.094 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006306/1.726, allocations: 306 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/1.726, allocations: 31.28 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/1.726, allocations: 144.9 kB / 1.094 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.327e-05/1.726, allocations: 25.41 kB / 1.094 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/1.727, allocations: 44.64 kB / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001327/1.727, allocations: 337.8 kB / 1.094 GB, free: 360 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/1.727, allocations: 39.78 kB / 1.095 GB, free: 348 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/1.727, allocations: 67.16 kB / 1.095 GB, free: 308 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002722/1.727, allocations: 75.77 kB / 1.095 GB, free: 268 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/1.728, allocations: 0 / 1.095 GB, free: 268 kB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005934/1.728, allocations: 167.6 kB / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/1.728, allocations: 5.375 kB / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/1.728, allocations: 0.9062 kB / 1.095 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.2e-05/1.728, allocations: 4.906 kB / 1.095 GB, free: 176 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002276/1.728, allocations: 25.55 kB / 1.095 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/1.728, allocations: 6.078 kB / 1.095 GB, free: 168 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/1.729, allocations: 18.44 kB / 1.095 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.896e-05/1.729, allocations: 12.5 kB / 1.095 GB, free: 156 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.timTabLin.tab.nextTimeEvent,$whenCondition1,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent,lesHys.lesHys.y,$PRE.lesHys.lesHys.y,les.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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.0002468/1.729, allocations: 155.9 kB / 1.095 GB, free: 24 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.228e-05/1.729, allocations: 22.34 kB / 1.095 GB, free: 12 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/1.729, allocations: 28.05 kB / 1.095 GB, free: 16 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/1.729, allocations: 4.625 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/1.729, allocations: 4.781 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.091e-05/1.729, allocations: 1.375 kB / 1.095 GB, free: 15.99 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004582/1.73, allocations: 240.9 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/1.73, allocations: 1.125 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.713e-05/1.73, allocations: 15.97 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/1.73, allocations: 0.5625 kB / 1.095 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/1.73, allocations: 6.453 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.833e-06/1.73, allocations: 4.594 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/1.73, allocations: 0 / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004349/1.73, allocations: 139.9 kB / 1.095 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000178/1.731, allocations: 100.3 kB / 1.096 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/1.731, allocations: 6.453 kB / 1.096 GB, free: 15.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001543/1.731, allocations: 12.73 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.388e-05/1.731, allocations: 9.359 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/1.731, allocations: 8.469 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004961/1.731, allocations: 216.2 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.8e-07/1.731, allocations: 0 / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005136/1.732, allocations: 36.66 kB / 1.096 GB, free: 15.41 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,les.y,lesHys.lesHys.y,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled) * Number of discrete states: 3 (timTabLin.tab.nextTimeEventScaled,lesHys.lesHys.y,timTabLin.tab.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.002623/1.735, allocations: 0.9859 MB / 1.097 GB, free: 14.67 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004833/1.735, allocations: 97.05 kB / 1.097 GB, free: 14.64 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.735, allocations: 4.062 kB / 1.097 GB, free: 14.63 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000138/1.735, allocations: 34.16 kB / 1.097 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005999/1.736, allocations: 54.06 kB / 1.097 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004982/1.741, allocations: 2.219 MB / 1.099 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/1.742, allocations: 0.75 MB / 1.1 GB, free: 12.41 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002991/1.742, allocations: 42.81 kB / 1.1 GB, free: 12.4 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/1.742, allocations: 74.53 kB / 1.1 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of SimCode: time 1.543e-06/1.742, allocations: 0 / 1.1 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05902/1.801, allocations: 5.226 MB / 1.105 GB, free: 11.57 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/16.83, allocations: 11.83 kB / 1.105 GB, free: 11.56 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_LessThreshold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.LessThreshold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches