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.00143/0.00143, allocations: 104.6 kB / 16.41 MB, free: 6.465 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.001421/0.001421, allocations: 187 kB / 17.34 MB, free: 5.719 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.386/1.386, allocations: 222.9 MB / 241 MB, free: 15.07 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.338/2.338, allocations: 390.3 MB / 0.6655 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 71.89 kB / 0.9516 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9415/0.9431, allocations: 140.4 MB / 1.089 GB, free: 5.77 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002463/0.9456, allocations: 1.027 MB / 1.09 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00188/0.9475, allocations: 1.308 MB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.606e-05/0.9476, allocations: 2.219 kB / 1.091 GB, free: 4.125 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 6.838e-05/0.9477, allocations: 14.11 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.9478, allocations: 45.78 kB / 1.091 GB, free: 4.078 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008072/0.9487, allocations: 259.4 kB / 1.091 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004685/0.9491, allocations: 347.5 kB / 1.092 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.9493, allocations: 49.94 kB / 1.092 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.9495, allocations: 117.7 kB / 1.092 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002124/0.9497, allocations: 122.3 kB / 1.092 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.807e-05/0.9498, allocations: 31.72 kB / 1.092 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.9499, allocations: 49.84 kB / 1.092 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.882e-05/0.95, allocations: 37.27 kB / 1.092 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.9501, allocations: 121.5 kB / 1.092 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005023/0.9506, allocations: 339.1 kB / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.9507, allocations: 1.094 kB / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.436e-06/0.9507, allocations: 0.8438 kB / 1.092 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.035e-06/0.9507, allocations: 7.938 kB / 1.092 GB, free: 3.41 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.0009238/0.9516, allocations: 0.5524 MB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.9517, allocations: 10.45 kB / 1.093 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.999e-05/0.9518, allocations: 26.5 kB / 1.093 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008019/0.9526, allocations: 314.4 kB / 1.093 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.9526, allocations: 13.67 kB / 1.093 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.351e-05/0.9527, allocations: 18.62 kB / 1.093 GB, free: 2.641 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.953, allocations: 128 kB / 1.093 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.953, allocations: 11.86 kB / 1.093 GB, free: 2.551 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.953, allocations: 6.016 kB / 1.093 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.9531, allocations: 2.188 kB / 1.093 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002648/0.9533, allocations: 70.98 kB / 1.094 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007784/0.9541, allocations: 0.6372 MB / 1.094 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.9545, allocations: 135.8 kB / 1.094 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.9547, allocations: 63.53 kB / 1.094 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.9547, allocations: 2.172 kB / 1.094 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003126/0.955, allocations: 137.1 kB / 1.094 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.955, allocations: 8.688 kB / 1.094 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0006327/0.9557, allocations: 206.7 kB / 1.095 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.9558, allocations: 110.7 kB / 1.095 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.956, allocations: 194.2 kB / 1.095 GB, free: 1.41 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.51e-05/0.956, allocations: 36.33 kB / 1.095 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.9561, allocations: 125.2 kB / 1.095 GB, free: 1.266 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.191e-05/0.9562, allocations: 40.94 kB / 1.095 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.9563, allocations: 64.05 kB / 1.095 GB, free: 1.203 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.108e-05/0.9564, allocations: 329 kB / 1.096 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.9567, allocations: 90.03 kB / 1.096 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.957, allocations: 165.4 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004155/0.9575, allocations: 231.2 kB / 1.096 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.9575, allocations: 1.062 kB / 1.096 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007834/0.9583, allocations: 349.9 kB / 1.096 GB, free: 384 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/0.9583, allocations: 63.06 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.9583, allocations: 2 kB / 1.096 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.9584, allocations: 7.578 kB / 1.096 GB, free: 316 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.9585, allocations: 20.09 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.9585, allocations: 6.828 kB / 1.096 GB, free: 308 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004451/0.959, allocations: 68.83 kB / 1.097 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.722e-05/0.959, allocations: 21.33 kB / 1.097 GB, free: 288 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.000141/0.9592, allocations: 135.9 kB / 1.097 GB, free: 160 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.9592, allocations: 15.69 kB / 1.097 GB, free: 152 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003044/0.9595, allocations: 95.17 kB / 1.097 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.9595, allocations: 2.156 kB / 1.097 GB, free: 100 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.697e-06/0.9595, allocations: 5.344 kB / 1.097 GB, free: 96 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.9596, allocations: 2.125 kB / 1.097 GB, free: 96 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.9598, allocations: 234.6 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.9599, allocations: 1.031 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.323e-05/0.96, allocations: 22.83 kB / 1.097 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.925e-06/0.96, allocations: 5.141 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.96, allocations: 8.234 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.96, allocations: 1.516 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.96, allocations: 5.281 kB / 1.097 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004641/0.9605, allocations: 195.4 kB / 1.097 GB, free: 15.73 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.9606, allocations: 98.61 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.9606, allocations: 3.688 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001186/0.9607, allocations: 14.05 kB / 1.097 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.9609, allocations: 29.8 kB / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.9609, allocations: 5.719 kB / 1.097 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001532/0.9611, allocations: 139.6 kB / 1.098 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9611, allocations: 4.531 kB / 1.098 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003354/0.9614, allocations: 47.36 kB / 1.098 GB, free: 15.5 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.00025/0.9617, allocations: 113.9 kB / 1.098 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007026/0.9624, allocations: 318.2 kB / 1.098 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.9624, allocations: 256 / 1.098 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002219/0.9626, allocations: 74.14 kB / 1.098 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.963, allocations: 40.17 kB / 1.098 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000639/0.9636, allocations: 327.9 kB / 1.098 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.964, allocations: 0.7222 MB / 1.099 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.423e-05/0.964, allocations: 22.44 kB / 1.099 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of SimCode: time 4.21e-07/0.964, allocations: 1.094 kB / 1.099 GB, free: 14.22 MB / 0.8731 GB Notification: Performance of Templates: time 0.006679/0.9707, allocations: 2.807 MB / 1.102 GB, free: 13.93 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/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