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.00808/0.00808, allocations: 102.3 kB / 15.73 MB, free: 6.039 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.001729/0.001729, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.442/1.442, allocations: 222.9 MB / 240.3 MB, free: 15.16 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.445/2.445, allocations: 390.2 MB / 0.6648 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.91 kB / 0.9509 GB, free: 7.57 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.069/1.07, allocations: 140.4 MB / 1.088 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002926/1.073, allocations: 1.027 MB / 1.089 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002166/1.075, allocations: 1.311 MB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/1.075, allocations: 1.781 kB / 1.09 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.945e-05/1.075, allocations: 17.81 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001669/1.075, allocations: 33.73 kB / 1.09 GB, free: 3.801 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000907/1.076, allocations: 272.3 kB / 1.091 GB, free: 3.656 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004323/1.077, allocations: 338.5 kB / 1.091 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001662/1.077, allocations: 42.42 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00021/1.077, allocations: 121 kB / 1.091 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000212/1.077, allocations: 127.1 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/1.077, allocations: 32.12 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/1.078, allocations: 41.95 kB / 1.091 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.351e-05/1.078, allocations: 45.52 kB / 1.091 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001591/1.078, allocations: 121.5 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005021/1.078, allocations: 336.3 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/1.078, allocations: 1.484 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.055e-06/1.078, allocations: 0 / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.434e-05/1.078, allocations: 4.688 kB / 1.092 GB, free: 3.137 MB / 0.8575 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.0009205/1.079, allocations: 0.5623 MB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/1.079, allocations: 12.94 kB / 1.092 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.221e-05/1.079, allocations: 27.64 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007409/1.08, allocations: 306.4 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/1.08, allocations: 8.906 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.984e-05/1.08, allocations: 19.5 kB / 1.093 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000291/1.081, allocations: 131.3 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/1.081, allocations: 4.719 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.847e-05/1.081, allocations: 5.672 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/1.081, allocations: 2.906 kB / 1.093 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/1.081, allocations: 73.95 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008178/1.082, allocations: 0.6413 MB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000403/1.082, allocations: 144.4 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/1.082, allocations: 50.12 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/1.082, allocations: 2.172 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003355/1.083, allocations: 146.4 kB / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/1.083, allocations: 0 / 1.094 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006102/1.083, allocations: 206.5 kB / 1.094 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/1.083, allocations: 110.8 kB / 1.094 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/1.084, allocations: 194.8 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/1.084, allocations: 36.28 kB / 1.094 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.826e-05/1.084, allocations: 128.5 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.614e-05/1.084, allocations: 40.56 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001437/1.084, allocations: 61.06 kB / 1.095 GB, free: 0.9297 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.091e-05/1.084, allocations: 328.6 kB / 1.095 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/1.084, allocations: 97.98 kB / 1.095 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002911/1.085, allocations: 157.8 kB / 1.095 GB, free: 476 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/1.085, allocations: 227.1 kB / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.085, allocations: 0 / 1.095 GB, free: 300 kB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007762/1.086, allocations: 354.1 kB / 1.096 GB, free: 108 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.273e-05/1.086, allocations: 67.58 kB / 1.096 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/1.086, allocations: 2.516 kB / 1.096 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/1.086, allocations: 6.625 kB / 1.096 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/1.086, allocations: 20.19 kB / 1.096 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/1.086, allocations: 7.062 kB / 1.096 GB, free: 28 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003903/1.086, allocations: 72.67 kB / 1.096 GB, free: 12 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.807e-05/1.087, allocations: 14.22 kB / 1.096 GB, free: 12 kB / 0.8575 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.0001776/1.087, allocations: 142.9 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.314e-05/1.087, allocations: 15.94 kB / 1.096 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002965/1.087, allocations: 95.92 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/1.087, allocations: 1.688 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/1.087, allocations: 5.062 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/1.087, allocations: 2.094 kB / 1.096 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002633/1.087, allocations: 233.1 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.087, allocations: 1.578 kB / 1.096 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.881e-05/1.087, allocations: 18.48 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/1.087, allocations: 1.719 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.309e-05/1.088, allocations: 7.75 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/1.088, allocations: 1.828 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/1.088, allocations: 5.031 kB / 1.096 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/1.088, allocations: 199.4 kB / 1.097 GB, free: 15.46 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.955e-05/1.088, allocations: 94.94 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/1.088, allocations: 8.234 kB / 1.097 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/1.088, allocations: 14.25 kB / 1.097 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.991e-05/1.088, allocations: 29.69 kB / 1.097 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/1.088, allocations: 9.672 kB / 1.097 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001408/1.088, allocations: 139.7 kB / 1.097 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.3e-07/1.088, allocations: 0 / 1.097 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003063/1.089, allocations: 47.3 kB / 1.097 GB, free: 15.23 MB / 0.8731 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.0002318/1.089, allocations: 110.2 kB / 1.097 GB, free: 15.14 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006472/1.09, allocations: 326.4 kB / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/1.09, allocations: 0 / 1.097 GB, free: 14.94 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001974/1.09, allocations: 71.3 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/1.09, allocations: 49.94 kB / 1.097 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006285/1.091, allocations: 294.1 kB / 1.098 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/1.091, allocations: 0.7254 MB / 1.098 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001121/1.091, allocations: 23.7 kB / 1.098 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/1.091, allocations: 22.06 kB / 1.098 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of SimCode: time 1.9e-07/1.091, allocations: 0 / 1.098 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of Templates: time 0.009967/1.101, allocations: 3.278 MB / 1.102 GB, free: 13.7 MB / 0.8731 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