Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008174/0.0008178, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000962/0.000962, allocations: 184.2 kB / 16.92 MB, free: 6.895 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.43/1.43, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.8/2.8, allocations: 462.7 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003966, allocations: 11.28 kB / 0.9034 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3322, allocations: 159.6 MB / 1.059 GB, free: 4.965 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001194/0.3335, allocations: 0.5623 MB / 1.06 GB, free: 4.406 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.3348, allocations: 0.8896 MB / 1.061 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.057e-05/0.3349, allocations: 0 / 1.061 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.335, allocations: 3.938 kB / 1.061 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.3351, allocations: 11.88 kB / 1.061 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000215/0.3354, allocations: 39.89 kB / 1.061 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.3355, allocations: 107.7 kB / 1.061 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.3357, allocations: 25.11 kB / 1.061 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001757/0.3359, allocations: 43.78 kB / 1.061 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001151/0.336, allocations: 51.75 kB / 1.061 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.336, allocations: 4 kB / 1.061 GB, free: 3.223 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.883e-05/0.336, allocations: 4 kB / 1.061 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.719e-05/0.3361, allocations: 23.91 kB / 1.061 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.719e-05/0.3362, allocations: 65.38 kB / 1.061 GB, free: 3.125 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.3363, allocations: 87.97 kB / 1.061 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3363, allocations: 4 kB / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.184e-06/0.3363, allocations: 0 / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.193e-06/0.3363, allocations: 0 / 1.061 GB, free: 3.035 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007615/0.3371, allocations: 443 kB / 1.062 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.3372, allocations: 15.97 kB / 1.062 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/0.3372, allocations: 8.844 kB / 1.062 GB, free: 2.527 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006023/0.3379, allocations: 272.1 kB / 1.062 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.701e-05/0.3379, allocations: 4.375 kB / 1.062 GB, free: 2.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.597e-05/0.3379, allocations: 8.375 kB / 1.062 GB, free: 2.211 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.3383, allocations: 132.7 kB / 1.062 GB, free: 2.066 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3383, allocations: 3.938 kB / 1.062 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.3383, allocations: 4 kB / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.3384, allocations: 0 / 1.062 GB, free: 2.059 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000324/0.3387, allocations: 91.88 kB / 1.062 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007345/0.3394, allocations: 0.4932 MB / 1.063 GB, free: 1.418 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002739/0.3397, allocations: 123.8 kB / 1.063 GB, free: 1.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.3399, allocations: 62.59 kB / 1.063 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.689e-05/0.3399, allocations: 11.94 kB / 1.063 GB, free: 1.188 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.535e-05/0.34, allocations: 30.56 kB / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.34, allocations: 0 / 1.063 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0006541/0.3406, allocations: 185.4 kB / 1.063 GB, free: 0.9609 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.203e-05/0.3407, allocations: 111 kB / 1.063 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.3409, allocations: 150.4 kB / 1.063 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.709e-05/0.3409, allocations: 33.7 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.218e-05/0.341, allocations: 108.2 kB / 1.063 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.202e-05/0.3411, allocations: 31.7 kB / 1.063 GB, free: 500 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.295e-05/0.3411, allocations: 17.72 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001301/0.3413, allocations: 326.8 kB / 1.064 GB, free: 140 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.3414, allocations: 51.95 kB / 1.064 GB, free: 88 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.3417, allocations: 97.05 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.342, allocations: 114.5 kB / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.342, allocations: 0 / 1.064 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004114/0.3424, allocations: 157.4 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.3424, allocations: 4 kB / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3425, allocations: 0 / 1.064 GB, free: 15.69 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3425, allocations: 7.938 kB / 1.064 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.3427, allocations: 23.97 kB / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3427, allocations: 0 / 1.064 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.3428, allocations: 27.98 kB / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.3428, allocations: 0 / 1.064 GB, free: 15.63 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001325/0.343, allocations: 125.7 kB / 1.064 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.801e-05/0.3431, allocations: 11.89 kB / 1.064 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.3433, allocations: 97.91 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.3434, allocations: 3.984 kB / 1.064 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.3434, allocations: 4 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.3434, allocations: 0 / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003304/0.3437, allocations: 201.5 kB / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3437, allocations: 0 / 1.065 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.3438, allocations: 19.98 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3439, allocations: 0 / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.3439, allocations: 11.98 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.3439, allocations: 3.938 kB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3439, allocations: 0 / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004855/0.3444, allocations: 381.9 kB / 1.065 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.191e-05/0.3445, allocations: 96.94 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.3445, allocations: 4 kB / 1.065 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.3447, allocations: 20.36 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.3448, allocations: 23.95 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.3448, allocations: 4 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.766e-05/0.3449, allocations: 115.1 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3449, allocations: 0 / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003241/0.3452, allocations: 20 kB / 1.065 GB, free: 14.4 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001897/0.3454, allocations: 107.3 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000405/0.3459, allocations: 119.8 kB / 1.066 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.3459, allocations: 4 kB / 1.066 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.3461, allocations: 67.83 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.3465, allocations: 12 kB / 1.066 GB, free: 14.09 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005173/0.3471, allocations: 263.1 kB / 1.066 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.3474, allocations: 0.7005 MB / 1.067 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.4e-05/0.3475, allocations: 19.42 kB / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.3475, allocations: 0 / 1.067 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of Templates: time 0.003712/0.3512, allocations: 1.479 MB / 1.068 GB, free: 11.57 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches