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.0009661/0.0009661, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007202/0.007202, allocations: 169 kB / 16.26 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.589/1.589, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.613/2.613, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000409/0.0004092, allocations: 16.27 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9013/0.9017, allocations: 142.4 MB / 0.9551 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001502/0.9033, allocations: 0.7272 MB / 0.9558 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002468/0.9058, allocations: 1.338 MB / 0.9571 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.906, allocations: 1.156 kB / 0.9571 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.717e-05/0.906, allocations: 9.094 kB / 0.9571 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.9063, allocations: 22.22 kB / 0.9571 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009372/0.9072, allocations: 249.7 kB / 0.9573 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003808/0.9076, allocations: 285.2 kB / 0.9576 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.9078, allocations: 48.56 kB / 0.9577 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.908, allocations: 97.14 kB / 0.9578 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001715/0.9082, allocations: 92.73 kB / 0.9578 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/0.9082, allocations: 12.62 kB / 0.9579 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001062/0.9084, allocations: 30.5 kB / 0.9579 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.505e-05/0.9084, allocations: 26.16 kB / 0.9579 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.9086, allocations: 125.9 kB / 0.958 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004759/0.9091, allocations: 317.5 kB / 0.9583 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.9091, allocations: 4 kB / 0.9583 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.126e-06/0.9091, allocations: 0 / 0.9583 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.999e-06/0.9091, allocations: 1.375 kB / 0.9583 GB, free: 5.234 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.001062/0.9102, allocations: 0.5223 MB / 0.9589 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.822e-05/0.9102, allocations: 9.062 kB / 0.9589 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.9104, allocations: 27.28 kB / 0.9589 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008887/0.9113, allocations: 316.3 kB / 0.9592 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.163e-05/0.9113, allocations: 17.61 kB / 0.9592 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.271e-05/0.9114, allocations: 17.72 kB / 0.9592 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003205/0.9117, allocations: 137.6 kB / 0.9594 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.9118, allocations: 7.938 kB / 0.9594 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.9118, allocations: 6.219 kB / 0.9594 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.707e-06/0.9118, allocations: 5.125 kB / 0.9594 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002822/0.9121, allocations: 87.27 kB / 0.9595 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008474/0.913, allocations: 0.6344 MB / 0.9601 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004232/0.9134, allocations: 147.3 kB / 0.9602 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.9135, allocations: 54.48 kB / 0.9603 GB, free: 3.477 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.9136, allocations: 9.375 kB / 0.9603 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002969/0.9139, allocations: 157.2 kB / 0.9604 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 2.004e-06/0.9139, allocations: 0 / 0.9604 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0006192/0.9145, allocations: 211.3 kB / 0.9606 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/0.9146, allocations: 113.5 kB / 0.9607 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.9148, allocations: 192 kB / 0.9609 GB, free: 2.949 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.9149, allocations: 44.56 kB / 0.961 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.9149, allocations: 122 kB / 0.9611 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.855e-05/0.915, allocations: 36.95 kB / 0.9611 GB, free: 2.762 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.139e-05/0.915, allocations: 32.7 kB / 0.9611 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.056e-05/0.9151, allocations: 326.5 kB / 0.9615 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.9154, allocations: 98.97 kB / 0.9615 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002725/0.9157, allocations: 160.6 kB / 0.9617 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.9161, allocations: 237.9 kB / 0.9619 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.9161, allocations: 5.125 kB / 0.9619 GB, free: 2.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000764/0.9169, allocations: 353.8 kB / 0.9623 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.188e-05/0.917, allocations: 64.36 kB / 0.9623 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.917, allocations: 6.203 kB / 0.9623 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.759e-05/0.917, allocations: 3.125 kB / 0.9623 GB, free: 1.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.9171, allocations: 30.14 kB / 0.9624 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.9171, allocations: 6.156 kB / 0.9624 GB, free: 1.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004709/0.9176, allocations: 89.45 kB / 0.9625 GB, free: 1.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/0.9177, allocations: 20.08 kB / 0.9625 GB, free: 1.695 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.0001352/0.9178, allocations: 135.3 kB / 0.9626 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.9179, allocations: 24.97 kB / 0.9626 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002934/0.9182, allocations: 101.1 kB / 0.9627 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.9182, allocations: 2.625 kB / 0.9627 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.9182, allocations: 5.188 kB / 0.9627 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.9182, allocations: 1.344 kB / 0.9627 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002006/0.9184, allocations: 240.8 kB / 0.963 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.9184, allocations: 5.312 kB / 0.963 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.001e-05/0.9185, allocations: 21.05 kB / 0.963 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.9185, allocations: 1.062 kB / 0.963 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.9185, allocations: 2.156 kB / 0.963 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.9186, allocations: 2.062 kB / 0.963 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.9186, allocations: 5.125 kB / 0.963 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003867/0.919, allocations: 197.8 kB / 0.9632 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.026e-05/0.919, allocations: 97.88 kB / 0.9633 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.9191, allocations: 3.531 kB / 0.9633 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.9192, allocations: 19.48 kB / 0.9633 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.811e-05/0.9193, allocations: 34.38 kB / 0.9633 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.9193, allocations: 8.875 kB / 0.9633 GB, free: 0.9219 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001105/0.9194, allocations: 144.1 kB / 0.9635 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9194, allocations: 0 / 0.9635 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000321/0.9197, allocations: 46.38 kB / 0.9635 GB, free: 0.8047 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.0001919/0.9199, allocations: 114 kB / 0.9636 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005821/0.9205, allocations: 325.5 kB / 0.9639 GB, free: 500 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.9205, allocations: 0 / 0.9639 GB, free: 500 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002036/0.9207, allocations: 70.31 kB / 0.964 GB, free: 472 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.9211, allocations: 48.72 kB / 0.9641 GB, free: 444 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004997/0.9216, allocations: 325.8 kB / 0.9644 GB, free: 172 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.9219, allocations: 0.7281 MB / 0.9651 GB, free: 15.45 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001114/0.922, allocations: 22.33 kB / 0.9651 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.686e-05/0.9221, allocations: 23.48 kB / 0.9651 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of SimCode: time 4.61e-07/0.9221, allocations: 0 / 0.9651 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of Templates: time 0.008038/0.9302, allocations: 2.983 MB / 0.968 GB, free: 13.93 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