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.001232/0.001233, allocations: 105.2 kB / 15.99 MB, free: 6.348 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.001175/0.001175, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.407/1.407, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.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.307/2.307, allocations: 390.3 MB / 0.665 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 68.8 kB / 0.8127 GB, free: 33.22 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3269, allocations: 140.4 MB / 0.9498 GB, free: 9.199 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002869/0.3298, allocations: 1.075 MB / 0.9508 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.3319, allocations: 1.307 MB / 0.9521 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000164/0.3321, allocations: 4 kB / 0.9521 GB, free: 6.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 7.884e-05/0.3322, allocations: 7.875 kB / 0.9521 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.3324, allocations: 27.78 kB / 0.9522 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008495/0.3333, allocations: 246.8 kB / 0.9524 GB, free: 6.52 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.3337, allocations: 339.4 kB / 0.9527 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.3339, allocations: 45.66 kB / 0.9528 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002586/0.3341, allocations: 127.6 kB / 0.9529 GB, free: 6.016 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.3343, allocations: 111.5 kB / 0.953 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.78e-05/0.3344, allocations: 32 kB / 0.953 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001207/0.3345, allocations: 43.98 kB / 0.9531 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.738e-05/0.3346, allocations: 31.92 kB / 0.9531 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001509/0.3347, allocations: 127.4 kB / 0.9532 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003398/0.3351, allocations: 259.7 kB / 0.9535 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3351, allocations: 0 / 0.9535 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3351, allocations: 0 / 0.9535 GB, free: 5.422 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.3351, allocations: 0 / 0.9535 GB, free: 5.422 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.001039/0.3362, allocations: 0.5643 MB / 0.954 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3362, allocations: 15.97 kB / 0.954 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.602e-05/0.3363, allocations: 24.75 kB / 0.9541 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009286/0.3373, allocations: 304 kB / 0.9543 GB, free: 4.418 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.3373, allocations: 12.38 kB / 0.9544 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.039e-05/0.3374, allocations: 24.34 kB / 0.9544 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.3377, allocations: 140.6 kB / 0.9545 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.3377, allocations: 3.938 kB / 0.9545 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.3377, allocations: 8 kB / 0.9545 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3377, allocations: 0 / 0.9545 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.338, allocations: 75.88 kB / 0.9546 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.339, allocations: 0.6413 MB / 0.9552 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004434/0.3395, allocations: 135.9 kB / 0.9554 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.3396, allocations: 54.7 kB / 0.9554 GB, free: 3.223 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.3396, allocations: 4 kB / 0.9554 GB, free: 3.219 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003912/0.34, allocations: 145.8 kB / 0.9555 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.462e-06/0.3401, allocations: 0 / 0.9555 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0005925/0.3407, allocations: 205.3 kB / 0.9557 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.3407, allocations: 110.8 kB / 0.9558 GB, free: 2.715 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.3409, allocations: 198.4 kB / 0.956 GB, free: 2.508 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.033e-05/0.341, allocations: 33.7 kB / 0.9561 GB, free: 2.469 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.3411, allocations: 124.5 kB / 0.9562 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.3412, allocations: 39.61 kB / 0.9562 GB, free: 2.305 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.3413, allocations: 65.69 kB / 0.9563 GB, free: 2.234 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.3414, allocations: 334.8 kB / 0.9566 GB, free: 1.898 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002432/0.3417, allocations: 83.95 kB / 0.9567 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002793/0.342, allocations: 162.1 kB / 0.9568 GB, free: 1.629 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.3424, allocations: 233.2 kB / 0.9571 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3425, allocations: 4 kB / 0.9571 GB, free: 1.363 MB / 0.7325 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006916/0.3431, allocations: 352.5 kB / 0.9574 GB, free: 1 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.071e-05/0.3432, allocations: 67.39 kB / 0.9575 GB, free: 0.9219 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3432, allocations: 4 kB / 0.9575 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.3433, allocations: 0 / 0.9575 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001004/0.3434, allocations: 23.92 kB / 0.9575 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3434, allocations: 3.938 kB / 0.9575 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003876/0.3438, allocations: 75.89 kB / 0.9576 GB, free: 0.8164 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.533e-05/0.3438, allocations: 8 kB / 0.9576 GB, free: 0.8086 MB / 0.7325 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.0001496/0.344, allocations: 147.7 kB / 0.9577 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.149e-05/0.344, allocations: 19.75 kB / 0.9577 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002662/0.3443, allocations: 94.88 kB / 0.9578 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.3443, allocations: 8.031 kB / 0.9578 GB, free: 0.5352 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.3443, allocations: 3.938 kB / 0.9578 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.3443, allocations: 0 / 0.9578 GB, free: 0.5312 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.3446, allocations: 234.2 kB / 0.9581 GB, free: 260 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3446, allocations: 0 / 0.9581 GB, free: 260 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.6e-05/0.3447, allocations: 19.92 kB / 0.9581 GB, free: 240 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.3447, allocations: 4 kB / 0.9581 GB, free: 236 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.3447, allocations: 7.984 kB / 0.9581 GB, free: 228 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.3447, allocations: 8 kB / 0.9581 GB, free: 220 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3447, allocations: 3.938 kB / 0.9581 GB, free: 216 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.3451, allocations: 186.6 kB / 0.9583 GB, free: 4 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 7.752e-05/0.3452, allocations: 88.92 kB / 0.9584 GB, free: 15.9 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.685e-05/0.3452, allocations: 12 kB / 0.9584 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.3453, allocations: 7.984 kB / 0.9584 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.452e-05/0.3454, allocations: 35.83 kB / 0.9584 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.494e-05/0.3455, allocations: 7.984 kB / 0.9584 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001789/0.3456, allocations: 144 kB / 0.9586 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.31e-07/0.3456, allocations: 0 / 0.9586 GB, free: 15.7 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002949/0.3459, allocations: 51.89 kB / 0.9586 GB, free: 15.64 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.0002084/0.3462, allocations: 119.2 kB / 0.9587 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0005872/0.3468, allocations: 318.6 kB / 0.959 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3468, allocations: 3.938 kB / 0.959 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001813/0.347, allocations: 63.91 kB / 0.9591 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000336/0.3473, allocations: 51.94 kB / 0.9591 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006143/0.3479, allocations: 370.1 kB / 0.9595 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3483, allocations: 0.7241 MB / 0.9602 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.089e-05/0.3483, allocations: 23.42 kB / 0.9602 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of SimCode: time 5.31e-07/0.3483, allocations: 4 kB / 0.9602 GB, free: 13.89 MB / 0.7481 GB Notification: Performance of Templates: time 0.006128/0.3545, allocations: 2.776 MB / 0.9629 GB, free: 11.13 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 -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