Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00106/0.001061, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009008/0.009008, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.391/1.391, allocations: 223.3 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.673/2.673, allocations: 437.8 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004114/0.0004115, allocations: 12.23 kB / 0.8728 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7512/0.7516, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001457/0.7532, allocations: 0.56 MB / 1.024 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001467/0.7547, allocations: 0.8818 MB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.313e-05/0.7547, allocations: 0 / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 3.689e-05/0.7548, allocations: 7.922 kB / 1.024 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.7549, allocations: 15.88 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001962/0.7551, allocations: 35.95 kB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001511/0.7553, allocations: 115.6 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.7554, allocations: 25.11 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.7556, allocations: 39.83 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.657e-05/0.7557, allocations: 51.77 kB / 1.025 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.7557, allocations: 4 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.675e-05/0.7557, allocations: 4 kB / 1.025 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.29e-05/0.7558, allocations: 23.89 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.544e-05/0.7559, allocations: 65.44 kB / 1.025 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.756, allocations: 105.5 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.756, allocations: 7.938 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.192e-06/0.756, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.123e-06/0.756, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 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.000844/0.7569, allocations: 443 kB / 1.025 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.204e-05/0.757, allocations: 8.031 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.162e-05/0.7571, allocations: 12.84 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006495/0.7577, allocations: 279.9 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.855e-05/0.7578, allocations: 8.375 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.7578, allocations: 4.375 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003892/0.7582, allocations: 132.8 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.7582, allocations: 7.875 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.7583, allocations: 4 kB / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.7583, allocations: 0 / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003592/0.7586, allocations: 91.92 kB / 1.026 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000912/0.7596, allocations: 0.5009 MB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.7598, allocations: 119.8 kB / 1.026 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.76, allocations: 62.61 kB / 1.027 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.7601, allocations: 3.984 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.7601, allocations: 46.5 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.7601, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0006504/0.7608, allocations: 181.4 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.7608, allocations: 102.8 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.761, allocations: 152.7 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.761, allocations: 29.7 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.7611, allocations: 112.3 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.546e-05/0.7611, allocations: 23.64 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.072e-05/0.7612, allocations: 13.72 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.7613, allocations: 330.8 kB / 1.027 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.7615, allocations: 51.95 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.7617, allocations: 89 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.762, allocations: 114.5 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.762, allocations: 0 / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003932/0.7624, allocations: 153.5 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.7624, allocations: 4 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.7624, allocations: 8 kB / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.7624, allocations: 336 / 1.028 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001441/0.7626, allocations: 27.91 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.7626, allocations: 4 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001306/0.7627, allocations: 19.89 kB / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.7628, allocations: 4 kB / 1.028 GB, free: 10.51 MB / 0.7794 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.0001135/0.7629, allocations: 130.2 kB / 1.028 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.954e-05/0.763, allocations: 15.89 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002636/0.7632, allocations: 97.77 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.7632, allocations: 4.062 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.7633, allocations: 8 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.7633, allocations: 3.984 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002995/0.7636, allocations: 201.6 kB / 1.028 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.7636, allocations: 0 / 1.028 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.7637, allocations: 19.98 kB / 1.028 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.484e-05/0.7637, allocations: 4 kB / 1.028 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/0.7637, allocations: 3.984 kB / 1.028 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.7637, allocations: 0 / 1.028 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.7638, allocations: 4 kB / 1.028 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004598/0.7642, allocations: 397.8 kB / 1.029 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.666e-05/0.7643, allocations: 85.02 kB / 1.029 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.717e-05/0.7643, allocations: 3.984 kB / 1.029 GB, free: 9.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.7645, allocations: 19.98 kB / 1.029 GB, free: 9.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.27e-05/0.7646, allocations: 23.95 kB / 1.029 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.218e-06/0.7646, allocations: 8 kB / 1.029 GB, free: 9.398 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.826e-05/0.7647, allocations: 116.6 kB / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7647, allocations: 0 / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003105/0.765, allocations: 12 kB / 1.029 GB, free: 9.273 MB / 0.7794 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.0001722/0.7652, allocations: 111.2 kB / 1.029 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003951/0.7656, allocations: 115.9 kB / 1.029 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.7656, allocations: 0 / 1.029 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001906/0.7658, allocations: 59.91 kB / 1.029 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.7663, allocations: 15.92 kB / 1.029 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004536/0.7668, allocations: 233.3 kB / 1.03 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.767, allocations: 0.7004 MB / 1.03 GB, free: 7.973 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.945e-05/0.7671, allocations: 16.64 kB / 1.03 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.457e-05/0.7672, allocations: 19.42 kB / 1.03 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of SimCode: time 4.01e-07/0.7672, allocations: 4 kB / 1.03 GB, free: 7.934 MB / 0.7794 GB Notification: Performance of Templates: time 0.003742/0.7709, allocations: 1.106 MB / 1.031 GB, free: 6.832 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches