Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Reals.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_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Reals.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_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008463/0.008463, allocations: 99.53 kB / 15.73 MB, free: 5.988 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.00184/0.00184, allocations: 193.8 kB / 16.67 MB, free: 5.918 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.625/2.625, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 72.11 kB / 1.065 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9592/0.9605, allocations: 159.1 MB / 1.221 GB, free: 2.051 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002244/0.9627, allocations: 0.848 MB / 1.221 GB, free: 1.203 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001342/0.9641, allocations: 0.8857 MB / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.656e-05/0.9641, allocations: 0 / 1.222 GB, free: 312 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.779e-05/0.9642, allocations: 7.875 kB / 1.222 GB, free: 304 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.9643, allocations: 23.78 kB / 1.222 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.9645, allocations: 35.95 kB / 1.222 GB, free: 244 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001508/0.9646, allocations: 115.6 kB / 1.223 GB, free: 128 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.9648, allocations: 21.11 kB / 1.223 GB, free: 108 kB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.9649, allocations: 55.83 kB / 1.223 GB, free: 52 kB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.965, allocations: 55.84 kB / 1.223 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.965, allocations: 8 kB / 1.223 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 2.168e-05/0.965, allocations: 8 kB / 1.223 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.072e-05/0.9651, allocations: 23.83 kB / 1.223 GB, free: 15.96 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.63e-05/0.9651, allocations: 55.66 kB / 1.223 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.9653, allocations: 120 kB / 1.223 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.9653, allocations: 0 / 1.223 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.422e-06/0.9653, allocations: 0 / 1.223 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.9653, allocations: 0 / 1.223 GB, free: 15.79 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007087/0.966, allocations: 450.8 kB / 1.223 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.9661, allocations: 12.03 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.316e-05/0.9661, allocations: 12.84 kB / 1.223 GB, free: 15.27 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004883/0.9666, allocations: 252.3 kB / 1.224 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.9667, allocations: 12.31 kB / 1.224 GB, free: 14.98 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.092e-05/0.9667, allocations: 8.375 kB / 1.224 GB, free: 14.97 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.9669, allocations: 114.9 kB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.967, allocations: 3.938 kB / 1.224 GB, free: 14.84 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.967, allocations: 8 kB / 1.224 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.967, allocations: 4 kB / 1.224 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003653/0.9673, allocations: 79.86 kB / 1.224 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006268/0.968, allocations: 0.4893 MB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002432/0.9682, allocations: 107.8 kB / 1.224 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.9684, allocations: 54.61 kB / 1.224 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.9684, allocations: 4.062 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.719e-05/0.9684, allocations: 34.56 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.9684, allocations: 3.938 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of matching and sorting (n=8): time 0.0005619/0.969, allocations: 169.6 kB / 1.225 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.969, allocations: 110.7 kB / 1.225 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.9692, allocations: 149.1 kB / 1.225 GB, free: 13.5 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.9692, allocations: 29.7 kB / 1.225 GB, free: 13.46 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.83e-05/0.9693, allocations: 112.2 kB / 1.225 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.105e-05/0.9693, allocations: 20.11 kB / 1.225 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.9694, allocations: 29.7 kB / 1.225 GB, free: 13.29 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.9695, allocations: 326.8 kB / 1.225 GB, free: 12.96 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.9697, allocations: 39.97 kB / 1.225 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.9698, allocations: 85.11 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.9701, allocations: 94.45 kB / 1.226 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9701, allocations: 0 / 1.226 GB, free: 12.72 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003461/0.9704, allocations: 145.5 kB / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.9704, allocations: 4 kB / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.9704, allocations: 0 / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/0.9705, allocations: 4 kB / 1.226 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.9706, allocations: 19.98 kB / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.9706, allocations: 0 / 1.226 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.9707, allocations: 23.91 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.9707, allocations: 4 kB / 1.226 GB, free: 12.52 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (hysteresis.y,$PRE.hysteresis.y,hysteresis1.y,$PRE.hysteresis1.y,hysteresis2.y,$PRE.hysteresis2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001218/0.9709, allocations: 130.2 kB / 1.226 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.214e-05/0.9709, allocations: 11.91 kB / 1.226 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002601/0.9712, allocations: 85.89 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.9712, allocations: 4 kB / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.9712, allocations: 0 / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.9712, allocations: 0 / 1.226 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000342/0.9716, allocations: 201.5 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.9716, allocations: 4 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.9717, allocations: 19.92 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.9717, allocations: 4 kB / 1.226 GB, free: 12 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.643e-05/0.9717, allocations: 11.92 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.9717, allocations: 0 / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.9717, allocations: 4 kB / 1.226 GB, free: 11.98 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.9721, allocations: 373.9 kB / 1.227 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.746e-05/0.9722, allocations: 92.95 kB / 1.227 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.9722, allocations: 4 kB / 1.227 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.9724, allocations: 19.97 kB / 1.227 GB, free: 11.46 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.033e-05/0.9725, allocations: 20.27 kB / 1.227 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.289e-05/0.9725, allocations: 15.98 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.022e-05/0.9726, allocations: 109.2 kB / 1.227 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6e-08/0.9726, allocations: 0 / 1.227 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000323/0.9729, allocations: 23.94 kB / 1.227 GB, free: 11.3 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 (hysteresis.y,hysteresis1.y,hysteresis2.y) * Number of discrete states: 3 (hysteresis2.y,hysteresis1.y,hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0002131/0.9731, allocations: 107.2 kB / 1.227 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000381/0.9735, allocations: 103.8 kB / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.9735, allocations: 0 / 1.227 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001579/0.9737, allocations: 47.91 kB / 1.227 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.9741, allocations: 10.34 kB / 1.227 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005215/0.9746, allocations: 215.4 kB / 1.227 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.975, allocations: 0.6963 MB / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 8.93e-05/0.9751, allocations: 16.64 kB / 1.228 GB, free: 10.04 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.751e-05/0.9751, allocations: 19.44 kB / 1.228 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of SimCode: time 2.91e-07/0.9751, allocations: 0 / 1.228 GB, free: 10.02 MB / 0.9512 GB Notification: Performance of Templates: time 0.004176/0.9793, allocations: 1.37 MB / 1.229 GB, free: 8.656 MB / 0.9512 GB make -j1 -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches