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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001541/0.001541, allocations: 111.9 kB / 16.37 MB, free: 6.016 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.001594/0.001594, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.48/1.48, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.395/2.395, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001269, allocations: 65.62 kB / 0.814 GB, free: 32.81 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3384/0.3397, allocations: 140.4 MB / 0.9511 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.003007/0.3428, allocations: 1.033 MB / 0.9521 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002092/0.3449, allocations: 1.311 MB / 0.9534 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.3451, allocations: 0 / 0.9534 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.498e-05/0.3452, allocations: 23.73 kB / 0.9535 GB, free: 5.668 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.3454, allocations: 31.66 kB / 0.9535 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008563/0.3463, allocations: 274.2 kB / 0.9537 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004547/0.3467, allocations: 335.4 kB / 0.9541 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001633/0.3469, allocations: 45.61 kB / 0.9541 GB, free: 5 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.3471, allocations: 123.7 kB / 0.9542 GB, free: 4.879 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.3473, allocations: 123.5 kB / 0.9543 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.122e-05/0.3474, allocations: 32 kB / 0.9544 GB, free: 4.727 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.3475, allocations: 43.98 kB / 0.9544 GB, free: 4.684 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.3476, allocations: 35.91 kB / 0.9544 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.3477, allocations: 119.5 kB / 0.9546 GB, free: 4.531 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.3481, allocations: 342.9 kB / 0.9549 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3482, allocations: 0 / 0.9549 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.683e-06/0.3482, allocations: 0 / 0.9549 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.155e-05/0.3482, allocations: 4 kB / 0.9549 GB, free: 4.191 MB / 0.7325 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.0009757/0.3492, allocations: 0.5643 MB / 0.9554 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3492, allocations: 8.031 kB / 0.9555 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.429e-05/0.3493, allocations: 24.73 kB / 0.9555 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000734/0.35, allocations: 307.9 kB / 0.9558 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/0.3501, allocations: 16.36 kB / 0.9558 GB, free: 3.176 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.544e-05/0.3501, allocations: 20.38 kB / 0.9558 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.3504, allocations: 138.6 kB / 0.9559 GB, free: 3.008 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.3504, allocations: 11.88 kB / 0.9559 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.3505, allocations: 4 kB / 0.956 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.3505, allocations: 7.938 kB / 0.956 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002219/0.3507, allocations: 71.88 kB / 0.956 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007928/0.3515, allocations: 0.6413 MB / 0.9567 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003757/0.3519, allocations: 135.9 kB / 0.9568 GB, free: 2.055 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001293/0.352, allocations: 58.7 kB / 0.9568 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.3521, allocations: 7.938 kB / 0.9568 GB, free: 1.98 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003459/0.3524, allocations: 137.9 kB / 0.957 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.893e-06/0.3524, allocations: 4 kB / 0.957 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005476/0.353, allocations: 205.3 kB / 0.9572 GB, free: 1.613 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.3531, allocations: 102.8 kB / 0.9573 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.3533, allocations: 198.4 kB / 0.9575 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.3533, allocations: 37.69 kB / 0.9575 GB, free: 1.238 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.3534, allocations: 120.5 kB / 0.9576 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.865e-05/0.3535, allocations: 43.61 kB / 0.9577 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.3536, allocations: 61.69 kB / 0.9577 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.3537, allocations: 330.8 kB / 0.958 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002347/0.3539, allocations: 88.44 kB / 0.9581 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002569/0.3542, allocations: 164.5 kB / 0.9583 GB, free: 404 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.3546, allocations: 229.3 kB / 0.9585 GB, free: 140 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.3546, allocations: 0 / 0.9585 GB, free: 140 kB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000679/0.3553, allocations: 348.5 kB / 0.9588 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 6.504e-05/0.3553, allocations: 67.39 kB / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.3553, allocations: 4 kB / 0.9589 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.3554, allocations: 4 kB / 0.9589 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.384e-05/0.3555, allocations: 24.05 kB / 0.9589 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.3555, allocations: 3.938 kB / 0.9589 GB, free: 15.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.3559, allocations: 71.77 kB / 0.959 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.866e-05/0.3559, allocations: 15.98 kB / 0.959 GB, free: 15.58 MB / 0.7481 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.0001423/0.3561, allocations: 139.8 kB / 0.9591 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.521e-05/0.3561, allocations: 15.81 kB / 0.9592 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002636/0.3564, allocations: 90.88 kB / 0.9592 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.3564, allocations: 4 kB / 0.9592 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.3564, allocations: 7.875 kB / 0.9593 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3564, allocations: 4.031 kB / 0.9593 GB, free: 15.31 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.3566, allocations: 241.4 kB / 0.9595 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3567, allocations: 8 kB / 0.9595 GB, free: 15.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.677e-05/0.3567, allocations: 11.98 kB / 0.9595 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.3568, allocations: 4 kB / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.848e-05/0.3568, allocations: 7.984 kB / 0.9595 GB, free: 15 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3568, allocations: 7.938 kB / 0.9595 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.3568, allocations: 3.938 kB / 0.9595 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.3572, allocations: 198.6 kB / 0.9597 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.413e-05/0.3572, allocations: 88.92 kB / 0.9598 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.3573, allocations: 12.17 kB / 0.9598 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3574, allocations: 11.98 kB / 0.9598 GB, free: 14.64 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.823e-05/0.3575, allocations: 27.91 kB / 0.9599 GB, free: 14.61 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.3575, allocations: 11.98 kB / 0.9599 GB, free: 14.6 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001204/0.3576, allocations: 140 kB / 0.96 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3576, allocations: 4 kB / 0.96 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0003038/0.3579, allocations: 51.89 kB / 0.9601 GB, free: 14.41 MB / 0.7481 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.0002137/0.3581, allocations: 111.2 kB / 0.9602 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005467/0.3587, allocations: 310.6 kB / 0.9605 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3587, allocations: 256 / 0.9605 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.3589, allocations: 71.91 kB / 0.9605 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003298/0.3592, allocations: 38.72 kB / 0.9606 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005856/0.3598, allocations: 303 kB / 0.9608 GB, free: 13.53 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002757/0.3601, allocations: 0.7241 MB / 0.9616 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 9.992e-05/0.3602, allocations: 25.55 kB / 0.9616 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.899e-05/0.3603, allocations: 23.42 kB / 0.9616 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of SimCode: time 2.51e-07/0.3603, allocations: 4 kB / 0.9616 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of Templates: time 0.007578/0.3679, allocations: 3.257 MB / 0.9648 GB, free: 9.5 MB / 0.7481 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 -s gbode -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