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.001042/0.001042, allocations: 92.39 kB / 16.02 MB, free: 80 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.001332/0.001332, allocations: 179.5 kB / 16.92 MB, free: 6.652 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.419/1.419, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.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.431/2.431, allocations: 390.9 MB / 0.667 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005916/0.0005916, allocations: 8 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.023/1.024, allocations: 142.4 MB / 0.9557 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001544/1.026, allocations: 0.7275 MB / 0.9564 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002359/1.028, allocations: 1.333 MB / 0.9577 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.478e-05/1.028, allocations: 1.562 kB / 0.9577 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.902e-05/1.028, allocations: 7.922 kB / 0.9578 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001751/1.028, allocations: 27.84 kB / 0.9578 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001/1.029, allocations: 242.1 kB / 0.958 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003728/1.03, allocations: 289.2 kB / 0.9583 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001817/1.03, allocations: 38.78 kB / 0.9583 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/1.03, allocations: 106.4 kB / 0.9584 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/1.03, allocations: 89.64 kB / 0.9585 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.46e-05/1.03, allocations: 12.59 kB / 0.9585 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/1.03, allocations: 33.81 kB / 0.9586 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.79e-05/1.03, allocations: 23.3 kB / 0.9586 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001485/1.031, allocations: 120.2 kB / 0.9587 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003012/1.031, allocations: 251.2 kB / 0.9589 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/1.031, allocations: 1.344 kB / 0.9589 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.035e-06/1.031, allocations: 3.938 kB / 0.9589 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.674e-06/1.031, allocations: 0 / 0.9589 GB, free: 5.23 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.0009656/1.032, allocations: 0.5269 MB / 0.9595 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/1.032, allocations: 12.69 kB / 0.9595 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/1.032, allocations: 31.47 kB / 0.9595 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/1.033, allocations: 320.1 kB / 0.9598 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.502e-05/1.033, allocations: 13.06 kB / 0.9598 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/1.033, allocations: 22.33 kB / 0.9598 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004119/1.034, allocations: 136.9 kB / 0.96 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/1.034, allocations: 7.875 kB / 0.96 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/1.034, allocations: 5.156 kB / 0.96 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/1.034, allocations: 2.531 kB / 0.96 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000361/1.034, allocations: 84.22 kB / 0.9601 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008918/1.035, allocations: 0.6373 MB / 0.9607 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005526/1.036, allocations: 147.3 kB / 0.9608 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/1.036, allocations: 59.33 kB / 0.9609 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/1.036, allocations: 1.375 kB / 0.9609 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003652/1.036, allocations: 153.7 kB / 0.961 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 2.524e-06/1.036, allocations: 0 / 0.961 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0008429/1.037, allocations: 215.3 kB / 0.9612 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/1.037, allocations: 105.6 kB / 0.9613 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/1.038, allocations: 192 kB / 0.9615 GB, free: 2.941 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.047e-05/1.038, allocations: 36.58 kB / 0.9615 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/1.038, allocations: 131.4 kB / 0.9617 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.881e-05/1.038, allocations: 40.95 kB / 0.9617 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.761e-05/1.038, allocations: 31.33 kB / 0.9617 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.576e-05/1.038, allocations: 327 kB / 0.9621 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003954/1.038, allocations: 94.34 kB / 0.9621 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004059/1.039, allocations: 164.6 kB / 0.9623 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006046/1.039, allocations: 243 kB / 0.9625 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/1.039, allocations: 0.9688 kB / 0.9625 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001064/1.041, allocations: 357.2 kB / 0.9629 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.16e-05/1.041, allocations: 69.39 kB / 0.9629 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/1.041, allocations: 5.031 kB / 0.9629 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/1.041, allocations: 3.375 kB / 0.963 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/1.041, allocations: 17.83 kB / 0.963 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/1.041, allocations: 10.69 kB / 0.963 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006642/1.041, allocations: 97.33 kB / 0.9631 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.456e-05/1.042, allocations: 15.39 kB / 0.9631 GB, free: 1.68 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.0001706/1.042, allocations: 131.8 kB / 0.9632 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.17e-05/1.042, allocations: 16.09 kB / 0.9632 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003943/1.042, allocations: 105.9 kB / 0.9633 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/1.042, allocations: 2.094 kB / 0.9633 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/1.042, allocations: 9.266 kB / 0.9633 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/1.042, allocations: 5.156 kB / 0.9633 GB, free: 1.465 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002518/1.043, allocations: 237.2 kB / 0.9636 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/1.043, allocations: 1.188 kB / 0.9636 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001339/1.043, allocations: 20.77 kB / 0.9636 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.282e-06/1.043, allocations: 2.125 kB / 0.9636 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/1.043, allocations: 6.094 kB / 0.9636 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/1.043, allocations: 0.9688 kB / 0.9636 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.043, allocations: 5.062 kB / 0.9636 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005258/1.043, allocations: 200 kB / 0.9638 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.314e-05/1.043, allocations: 97.78 kB / 0.9639 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.377e-05/1.043, allocations: 6.875 kB / 0.9639 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/1.044, allocations: 11.33 kB / 0.9639 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/1.044, allocations: 31.52 kB / 0.9639 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/1.044, allocations: 8.875 kB / 0.9639 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001643/1.044, allocations: 147.5 kB / 0.9641 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of sort global known variables: time 3.31e-07/1.044, allocations: 0 / 0.9641 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004766/1.044, allocations: 46.88 kB / 0.9641 GB, free: 0.7969 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.000216/1.045, allocations: 117.8 kB / 0.9642 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0008567/1.046, allocations: 325.9 kB / 0.9646 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.046, allocations: 0 / 0.9646 GB, free: 488 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000311/1.046, allocations: 75.95 kB / 0.9646 GB, free: 456 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005185/1.046, allocations: 42.53 kB / 0.9647 GB, free: 432 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007474/1.047, allocations: 361.2 kB / 0.965 GB, free: 120 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/1.048, allocations: 0.7247 MB / 0.9657 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.383e-05/1.048, allocations: 18.69 kB / 0.9657 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of SimCode: time 1.142e-06/1.048, allocations: 0 / 0.9657 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of Templates: time 0.009057/1.057, allocations: 2.761 MB / 0.9684 GB, free: 13.97 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/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