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.001577/0.001577, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001335/0.001335, allocations: 193.9 kB / 16.26 MB, free: 6.625 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.523/1.523, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.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.511/2.511, allocations: 390.2 MB / 0.6643 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 71.91 kB / 0.8121 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8404/0.8419, allocations: 140.4 MB / 0.9491 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001977/0.8439, allocations: 1.082 MB / 0.9502 GB, free: 8.293 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001281/0.8452, allocations: 1.309 MB / 0.9515 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.593e-05/0.8453, allocations: 0 / 0.9515 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.725e-05/0.8453, allocations: 9.547 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.8455, allocations: 34.44 kB / 0.9515 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006007/0.8461, allocations: 234.3 kB / 0.9517 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002869/0.8464, allocations: 340.5 kB / 0.952 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.8465, allocations: 49.55 kB / 0.9521 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.8467, allocations: 123 kB / 0.9522 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.8468, allocations: 109.5 kB / 0.9523 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.241e-05/0.8468, allocations: 36.05 kB / 0.9523 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.445e-05/0.8469, allocations: 46.39 kB / 0.9524 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.201e-05/0.847, allocations: 38 kB / 0.9524 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.678e-05/0.8471, allocations: 117.2 kB / 0.9525 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.8473, allocations: 338.3 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.8474, allocations: 1.094 kB / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.8474, allocations: 0 / 0.9529 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.919e-06/0.8474, allocations: 0 / 0.9529 GB, free: 6.266 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000738/0.8481, allocations: 0.564 MB / 0.9534 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.8482, allocations: 8.281 kB / 0.9534 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.568e-05/0.8482, allocations: 27.2 kB / 0.9534 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007008/0.8489, allocations: 315.7 kB / 0.9537 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.277e-05/0.849, allocations: 12.41 kB / 0.9538 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.641e-05/0.849, allocations: 18.91 kB / 0.9538 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.8493, allocations: 137.2 kB / 0.9539 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.8493, allocations: 7.875 kB / 0.9539 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.8493, allocations: 2.062 kB / 0.9539 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.8494, allocations: 2.406 kB / 0.9539 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.8496, allocations: 78.97 kB / 0.954 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005743/0.8502, allocations: 0.6384 MB / 0.9546 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.8505, allocations: 138.5 kB / 0.9548 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.8506, allocations: 59.77 kB / 0.9548 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.8507, allocations: 1.406 kB / 0.9548 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.8509, allocations: 147.4 kB / 0.9549 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.8509, allocations: 0 / 0.9549 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0005186/0.8515, allocations: 202.8 kB / 0.9551 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.8515, allocations: 105.7 kB / 0.9552 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.8516, allocations: 201.3 kB / 0.9554 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.078e-05/0.8517, allocations: 35.02 kB / 0.9555 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.775e-05/0.8518, allocations: 127.7 kB / 0.9556 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.317e-05/0.8518, allocations: 36.89 kB / 0.9556 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.8519, allocations: 63.86 kB / 0.9557 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.596e-05/0.852, allocations: 326.4 kB / 0.956 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.8522, allocations: 90.69 kB / 0.9561 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.8525, allocations: 158.6 kB / 0.9562 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.8528, allocations: 235 kB / 0.9565 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.8528, allocations: 1.625 kB / 0.9565 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006521/0.8535, allocations: 350.8 kB / 0.9568 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/0.8535, allocations: 64.89 kB / 0.9569 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.8535, allocations: 1.188 kB / 0.9569 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.8536, allocations: 6.5 kB / 0.9569 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.568e-05/0.8537, allocations: 20.42 kB / 0.9569 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.8537, allocations: 10.28 kB / 0.9569 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003739/0.8541, allocations: 65.92 kB / 0.957 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.8541, allocations: 19.39 kB / 0.957 GB, free: 2.691 MB / 0.7169 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.0001102/0.8542, allocations: 141.1 kB / 0.9571 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.8543, allocations: 15.16 kB / 0.9571 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002526/0.8545, allocations: 95.17 kB / 0.9572 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.8545, allocations: 1.438 kB / 0.9572 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.8545, allocations: 9.281 kB / 0.9572 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.8546, allocations: 5.078 kB / 0.9572 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.8547, allocations: 241.9 kB / 0.9575 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.8547, allocations: 0 / 0.9575 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.333e-05/0.8548, allocations: 15.92 kB / 0.9575 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.8548, allocations: 1.719 kB / 0.9575 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.865e-05/0.8549, allocations: 1.625 kB / 0.9575 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.8549, allocations: 1.469 kB / 0.9575 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.8549, allocations: 9.344 kB / 0.9575 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003383/0.8552, allocations: 191.6 kB / 0.9577 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.5e-05/0.8553, allocations: 96.44 kB / 0.9578 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.8553, allocations: 3.562 kB / 0.9578 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.8554, allocations: 17.38 kB / 0.9578 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.599e-05/0.8555, allocations: 31.86 kB / 0.9578 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.8555, allocations: 8.312 kB / 0.9578 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.615e-05/0.8556, allocations: 147.4 kB / 0.958 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8556, allocations: 0 / 0.958 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002806/0.8559, allocations: 46.5 kB / 0.958 GB, free: 1.801 MB / 0.7169 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.000182/0.8561, allocations: 111.9 kB / 0.9581 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006247/0.8567, allocations: 327.5 kB / 0.9584 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.8567, allocations: 0 / 0.9584 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002261/0.857, allocations: 66.47 kB / 0.9585 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.8574, allocations: 42.47 kB / 0.9585 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007223/0.8581, allocations: 337.1 kB / 0.9589 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002308/0.8584, allocations: 0.72 MB / 0.9596 GB, free: 444 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001222/0.8585, allocations: 25.94 kB / 0.9596 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.968e-05/0.8585, allocations: 23.72 kB / 0.9596 GB, free: 420 kB / 0.7169 GB Notification: Performance of SimCode: time 4.21e-07/0.8586, allocations: 0 / 0.9596 GB, free: 420 kB / 0.7169 GB Notification: Performance of Templates: time 0.007256/0.8658, allocations: 3.144 MB / 0.9627 GB, free: 14.82 MB / 0.7325 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/jenkins/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