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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.001307/0.001307, allocations: 187 kB / 17.34 MB, free: 5.762 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.386/1.386, allocations: 222.9 MB / 241 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.275/2.275, allocations: 390.2 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 71.89 kB / 0.9516 GB, free: 7.59 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.049/1.05, allocations: 140.4 MB / 1.089 GB, free: 5.773 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.00238/1.053, allocations: 1.023 MB / 1.09 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001698/1.054, allocations: 1.312 MB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.417e-05/1.055, allocations: 5.406 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.383e-05/1.055, allocations: 13.73 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001281/1.055, allocations: 32.64 kB / 1.091 GB, free: 4.09 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007363/1.056, allocations: 263.7 kB / 1.091 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004155/1.056, allocations: 343.8 kB / 1.092 GB, free: 3.793 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/1.056, allocations: 45.48 kB / 1.092 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/1.056, allocations: 124.8 kB / 1.092 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/1.057, allocations: 123.7 kB / 1.092 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.097e-05/1.057, allocations: 31.81 kB / 1.092 GB, free: 3.652 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/1.057, allocations: 45.73 kB / 1.092 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.653e-05/1.057, allocations: 37.27 kB / 1.092 GB, free: 3.625 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001528/1.057, allocations: 121.9 kB / 1.092 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004538/1.057, allocations: 335.4 kB / 1.092 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/1.057, allocations: 0 / 1.092 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.296e-06/1.057, allocations: 4.719 kB / 1.092 GB, free: 3.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.314e-06/1.057, allocations: 3.938 kB / 1.092 GB, free: 3.426 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.0008756/1.058, allocations: 0.5575 MB / 1.093 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/1.058, allocations: 9.422 kB / 1.093 GB, free: 2.922 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.8e-05/1.058, allocations: 27.41 kB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007723/1.059, allocations: 314.2 kB / 1.093 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/1.059, allocations: 12.19 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/1.059, allocations: 15.73 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/1.06, allocations: 134.2 kB / 1.093 GB, free: 2.574 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.327e-05/1.06, allocations: 12.75 kB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/1.06, allocations: 4.719 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/1.06, allocations: 3.469 kB / 1.093 GB, free: 2.559 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/1.06, allocations: 69.77 kB / 1.094 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007256/1.061, allocations: 0.6425 MB / 1.094 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003979/1.061, allocations: 138.9 kB / 1.094 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/1.061, allocations: 55.05 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/1.061, allocations: 2.516 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003452/1.062, allocations: 149.2 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/1.062, allocations: 1.125 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006074/1.062, allocations: 201.8 kB / 1.095 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.991e-05/1.062, allocations: 107 kB / 1.095 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002085/1.063, allocations: 194.8 kB / 1.095 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.74e-05/1.063, allocations: 36.3 kB / 1.095 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.824e-05/1.063, allocations: 132.7 kB / 1.095 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.271e-05/1.063, allocations: 41.41 kB / 1.095 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/1.063, allocations: 64.2 kB / 1.095 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.745e-05/1.063, allocations: 328.1 kB / 1.096 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002594/1.063, allocations: 90.06 kB / 1.096 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002874/1.064, allocations: 165.9 kB / 1.096 GB, free: 0.7422 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003905/1.064, allocations: 222.9 kB / 1.096 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/1.064, allocations: 0.8125 kB / 1.096 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007361/1.065, allocations: 350 kB / 1.096 GB, free: 400 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.582e-05/1.065, allocations: 67.34 kB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/1.065, allocations: 2.156 kB / 1.096 GB, free: 332 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/1.065, allocations: 6.188 kB / 1.096 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001048/1.065, allocations: 21.7 kB / 1.096 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.739e-05/1.065, allocations: 10.72 kB / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/1.065, allocations: 69.42 kB / 1.097 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/1.065, allocations: 13.81 kB / 1.097 GB, free: 304 kB / 0.8575 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.0001289/1.066, allocations: 139.6 kB / 1.097 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/1.066, allocations: 16.3 kB / 1.097 GB, free: 164 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002769/1.066, allocations: 94.44 kB / 1.097 GB, free: 112 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/1.066, allocations: 3.078 kB / 1.097 GB, free: 112 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/1.066, allocations: 8.781 kB / 1.097 GB, free: 104 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/1.066, allocations: 1.422 kB / 1.097 GB, free: 104 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/1.066, allocations: 233.7 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/1.066, allocations: 5.125 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.116e-05/1.066, allocations: 14.45 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/1.066, allocations: 1.688 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/1.066, allocations: 7.781 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/1.066, allocations: 1.797 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.199e-06/1.066, allocations: 8.844 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004356/1.067, allocations: 194.9 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.026e-05/1.067, allocations: 94.64 kB / 1.097 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.053e-05/1.067, allocations: 8.188 kB / 1.097 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/1.067, allocations: 9.141 kB / 1.097 GB, free: 15.64 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.761e-05/1.067, allocations: 34.56 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/1.067, allocations: 5.516 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001369/1.067, allocations: 143.2 kB / 1.098 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.41e-07/1.067, allocations: 0.5312 kB / 1.098 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003111/1.068, allocations: 47.92 kB / 1.098 GB, free: 15.52 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.0002173/1.068, allocations: 115.7 kB / 1.098 GB, free: 15.42 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006925/1.069, allocations: 322 kB / 1.098 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/1.069, allocations: 4.625 kB / 1.098 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002091/1.069, allocations: 65.72 kB / 1.098 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/1.069, allocations: 46.61 kB / 1.098 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005774/1.07, allocations: 324.6 kB / 1.098 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003294/1.07, allocations: 0.7221 MB / 1.099 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.416e-05/1.07, allocations: 23.05 kB / 1.099 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/1.07, allocations: 0 / 1.099 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of Templates: time 0.006647/1.077, allocations: 2.799 MB / 1.102 GB, free: 13.94 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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