Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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.007043/0.007043, allocations: 104.1 kB / 15.74 MB, free: 6.047 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.001624/0.001624, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.13 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 2.121/2.121, allocations: 390.3 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 67.89 kB / 0.9505 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8522/0.8538, allocations: 140.4 MB / 1.088 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002184/0.856, allocations: 1.027 MB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.8577, allocations: 1.301 MB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.643e-05/0.8578, allocations: 2 kB / 1.09 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.03e-05/0.8578, allocations: 13.17 kB / 1.09 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.858, allocations: 36.45 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008141/0.8588, allocations: 266.9 kB / 1.09 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004389/0.8593, allocations: 343.4 kB / 1.09 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.8594, allocations: 41.91 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.8596, allocations: 124.8 kB / 1.091 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.8599, allocations: 123.2 kB / 1.091 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.803e-05/0.8599, allocations: 37.28 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001165/0.8601, allocations: 45.53 kB / 1.091 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.934e-05/0.8601, allocations: 40.98 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.8603, allocations: 116.9 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005/0.8608, allocations: 347.3 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.617e-06/0.8608, allocations: 1.422 kB / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.434e-06/0.8608, allocations: 0 / 1.091 GB, free: 2.926 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.654e-06/0.8608, allocations: 0 / 1.091 GB, free: 2.926 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.00094/0.8618, allocations: 0.5627 MB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.8618, allocations: 10.64 kB / 1.092 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.657e-05/0.8619, allocations: 39.48 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.956e-05/0.8619, allocations: 27.52 kB / 1.092 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007572/0.8627, allocations: 310 kB / 1.092 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.8627, allocations: 20.83 kB / 1.092 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.41e-05/0.8628, allocations: 19.45 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002632/0.8631, allocations: 127.3 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.8631, allocations: 0 / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.8631, allocations: 6.531 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.8631, allocations: 2.125 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002404/0.8634, allocations: 78.47 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000683/0.8641, allocations: 0.6333 MB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003954/0.8645, allocations: 140.8 kB / 1.093 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001359/0.8646, allocations: 50.22 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.8646, allocations: 6.094 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000377/0.865, allocations: 150.1 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.393e-06/0.865, allocations: 0 / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006215/0.8657, allocations: 207.1 kB / 1.094 GB, free: 1.141 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.8657, allocations: 118.4 kB / 1.094 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.8659, allocations: 190.3 kB / 1.094 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.866, allocations: 36.69 kB / 1.094 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.401e-05/0.8661, allocations: 129 kB / 1.094 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/0.8661, allocations: 36.95 kB / 1.094 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.8662, allocations: 64.28 kB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.493e-05/0.8663, allocations: 332.7 kB / 1.094 GB, free: 352 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002475/0.8665, allocations: 90.25 kB / 1.095 GB, free: 324 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.8668, allocations: 154 kB / 1.095 GB, free: 212 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.8672, allocations: 226.8 kB / 1.095 GB, free: 36 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.8672, allocations: 4.719 kB / 1.095 GB, free: 32 kB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007744/0.868, allocations: 353.6 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 6.104e-05/0.8681, allocations: 67.89 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.8681, allocations: 1.938 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.8681, allocations: 2.375 kB / 1.095 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.8682, allocations: 20.28 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.8682, allocations: 7.25 kB / 1.095 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004225/0.8687, allocations: 73.17 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.8687, allocations: 17.81 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001356/0.8689, allocations: 139.2 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.167e-05/0.8689, allocations: 15.66 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002806/0.8692, allocations: 95.94 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.8692, allocations: 6.25 kB / 1.096 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.8692, allocations: 4.5 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.8692, allocations: 2.938 kB / 1.096 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002564/0.8695, allocations: 232.9 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.8695, allocations: 1.625 kB / 1.096 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.252e-05/0.8696, allocations: 18.34 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.8696, allocations: 2.734 kB / 1.096 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.8696, allocations: 11.47 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.8696, allocations: 5.562 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.8696, allocations: 5.25 kB / 1.096 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003929/0.87, allocations: 190.3 kB / 1.096 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.121e-05/0.8701, allocations: 103.5 kB / 1.096 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.8702, allocations: 7.078 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.8703, allocations: 11.03 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.297e-05/0.8704, allocations: 33.36 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.651e-05/0.8704, allocations: 6.859 kB / 1.096 GB, free: 15.07 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000142/0.8705, allocations: 138.5 kB / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.31e-07/0.8705, allocations: 0 / 1.096 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003202/0.8709, allocations: 43.36 kB / 1.096 GB, free: 14.97 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.0007701/0.8716, allocations: 0.7437 MB / 1.097 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006715/0.8723, allocations: 318.3 kB / 1.097 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.8723, allocations: 0 / 1.097 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.8725, allocations: 67.83 kB / 1.098 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.8729, allocations: 49.14 kB / 1.098 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003308/0.8762, allocations: 2.311 MB / 1.1 GB, free: 12.38 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.8765, allocations: 0.7218 MB / 1.101 GB, free: 11.68 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001094/0.8766, allocations: 24.02 kB / 1.101 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.737e-05/0.8767, allocations: 61.53 kB / 1.101 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of SimCode: time 5.81e-07/0.8767, allocations: 1 kB / 1.101 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0239/0.9006, allocations: 5.067 MB / 1.106 GB, free: 10.98 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.912/8.812, allocations: 0.9375 kB / 1.106 GB, free: 10.98 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,hysteresis.u,hysteresis.y,hysteresis1.u,hysteresis1.y,hysteresis2.u,hysteresis2.y Variables in the result:hysteresis.pre_y_start,hysteresis.u,hysteresis.uHigh,hysteresis.uLow,hysteresis.y,hysteresis1.pre_y_start,hysteresis1.u,hysteresis1.uHigh,hysteresis1.uLow,hysteresis1.y,hysteresis2.pre_y_start,hysteresis2.u,hysteresis2.uHigh,hysteresis2.uLow,hysteresis2.y,time