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.006789/0.006789, allocations: 103.7 kB / 15.74 MB, free: 6.035 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.001473/0.001473, allocations: 194.8 kB / 16.68 MB, free: 5.953 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.107/2.107, allocations: 222.9 MB / 240.4 MB, free: 15.1 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 3.311/3.311, allocations: 390.3 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002247, allocations: 71.89 kB / 0.9505 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.312/1.314, allocations: 140.4 MB / 1.088 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.00402/1.318, allocations: 1.03 MB / 1.089 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00468/1.323, allocations: 1.304 MB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004361/1.323, allocations: 2.812 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001447/1.324, allocations: 13.17 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004536/1.324, allocations: 39.19 kB / 1.09 GB, free: 3.566 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001907/1.326, allocations: 264.1 kB / 1.09 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009194/1.327, allocations: 343.2 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002834/1.327, allocations: 45.59 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003694/1.328, allocations: 125.5 kB / 1.091 GB, free: 3.188 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003985/1.328, allocations: 126.6 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001349/1.328, allocations: 32 kB / 1.091 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002473/1.328, allocations: 45.75 kB / 1.091 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.497e-05/1.329, allocations: 41.41 kB / 1.091 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002817/1.329, allocations: 117.4 kB / 1.091 GB, free: 3.023 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00104/1.33, allocations: 336 kB / 1.091 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.165e-06/1.33, allocations: 3.938 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.89e-06/1.33, allocations: 0.7188 kB / 1.091 GB, free: 2.902 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.11e-05/1.33, allocations: 3.938 kB / 1.091 GB, free: 2.898 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.001549/1.332, allocations: 0.5574 MB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 9.207e-05/1.332, allocations: 9.25 kB / 1.092 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.316e-05/1.332, allocations: 44.09 kB / 1.092 GB, free: 2.348 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/1.332, allocations: 27.5 kB / 1.092 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/1.333, allocations: 314.5 kB / 1.092 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.156e-05/1.333, allocations: 13.3 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/1.333, allocations: 19.09 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005322/1.334, allocations: 135.3 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.751e-05/1.334, allocations: 0 / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/1.334, allocations: 5.672 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/1.334, allocations: 2.719 kB / 1.092 GB, free: 1.988 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/1.335, allocations: 74.48 kB / 1.092 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/1.336, allocations: 0.6416 MB / 1.093 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006081/1.336, allocations: 132.6 kB / 1.093 GB, free: 1.336 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/1.337, allocations: 58.19 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.64e-05/1.337, allocations: 2.047 kB / 1.093 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005446/1.337, allocations: 149.7 kB / 1.093 GB, free: 1.195 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 2.435e-06/1.337, allocations: 4.75 kB / 1.093 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0009914/1.338, allocations: 198.9 kB / 1.094 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/1.338, allocations: 114.4 kB / 1.094 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000323/1.339, allocations: 194.5 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 6.183e-05/1.339, allocations: 36.17 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/1.339, allocations: 124.8 kB / 1.094 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.736e-05/1.339, allocations: 40.17 kB / 1.094 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/1.339, allocations: 65.27 kB / 1.094 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001052/1.339, allocations: 328.4 kB / 1.094 GB, free: 328 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004641/1.34, allocations: 90.25 kB / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005083/1.34, allocations: 158.9 kB / 1.095 GB, free: 184 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006867/1.341, allocations: 234.9 kB / 1.095 GB, free: 0 / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.867e-05/1.341, allocations: 1.062 kB / 1.095 GB, free: 0 / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001412/1.343, allocations: 350.8 kB / 1.095 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/1.343, allocations: 67.02 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/1.343, allocations: 1.812 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.927e-05/1.343, allocations: 3.016 kB / 1.095 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/1.343, allocations: 19.95 kB / 1.095 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/1.343, allocations: 12.28 kB / 1.095 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007393/1.344, allocations: 72.22 kB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.426e-05/1.344, allocations: 18.16 kB / 1.095 GB, free: 15.71 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.0002677/1.344, allocations: 138.8 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.392e-05/1.344, allocations: 20.06 kB / 1.096 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004888/1.345, allocations: 87.08 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/1.345, allocations: 2.219 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.703e-05/1.345, allocations: 5.812 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/1.345, allocations: 1.234 kB / 1.096 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00045/1.345, allocations: 233.9 kB / 1.096 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/1.345, allocations: 1.094 kB / 1.096 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/1.345, allocations: 27.09 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/1.345, allocations: 1.031 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/1.345, allocations: 4.125 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/1.345, allocations: 1.766 kB / 1.096 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/1.345, allocations: 4.594 kB / 1.096 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006653/1.346, allocations: 187.8 kB / 1.096 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/1.346, allocations: 102.7 kB / 1.096 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/1.346, allocations: 4 kB / 1.096 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/1.347, allocations: 14.25 kB / 1.096 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/1.347, allocations: 33.41 kB / 1.096 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/1.347, allocations: 5.734 kB / 1.096 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002262/1.347, allocations: 139.9 kB / 1.096 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.6e-07/1.347, allocations: 0 / 1.096 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005703/1.348, allocations: 47.05 kB / 1.096 GB, free: 14.95 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.001218/1.349, allocations: 0.746 MB / 1.097 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001042/1.35, allocations: 310.4 kB / 1.097 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/1.35, allocations: 0 / 1.097 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003355/1.35, allocations: 67.78 kB / 1.098 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006097/1.351, allocations: 51.64 kB / 1.098 GB, free: 14.06 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005561/1.356, allocations: 2.323 MB / 1.1 GB, free: 12.35 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/1.357, allocations: 0.7231 MB / 1.101 GB, free: 11.65 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002033/1.357, allocations: 31.86 kB / 1.101 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001614/1.357, allocations: 61.34 kB / 1.101 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of SimCode: time 1.703e-06/1.357, allocations: 0.9688 kB / 1.101 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09509/1.452, allocations: 4.949 MB / 1.105 GB, free: 10.99 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/13.86, allocations: 8.062 kB / 1.105 GB, free: 10.99 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) Reference file matches