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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0009688/0.0009687, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 186.1 kB / 16.92 MB, free: 6.703 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.383/1.383, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.604/2.604, allocations: 437.8 MB / 0.7128 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.0003691, allocations: 15.98 kB / 0.8735 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6881/0.6885, allocations: 153.8 MB / 1.024 GB, free: 16 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.001031/0.6896, allocations: 0.5603 MB / 1.024 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.6907, allocations: 0.874 MB / 1.025 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.56e-05/0.6908, allocations: 4 kB / 1.025 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.761e-05/0.6909, allocations: 7.922 kB / 1.025 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.691, allocations: 15.86 kB / 1.025 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001953/0.6912, allocations: 31.97 kB / 1.025 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001398/0.6913, allocations: 111.7 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.6915, allocations: 25.11 kB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.6916, allocations: 47.78 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.601e-05/0.6917, allocations: 51.75 kB / 1.025 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.6918, allocations: 8 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.814e-05/0.6918, allocations: 4 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.204e-05/0.6918, allocations: 19.91 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.455e-05/0.6919, allocations: 69.42 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001145/0.692, allocations: 77.92 kB / 1.026 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.692, allocations: 0 / 1.026 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.713e-06/0.692, allocations: 4 kB / 1.026 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.692, allocations: 0 / 1.026 GB, free: 14.07 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.0006754/0.6927, allocations: 438.9 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.6928, allocations: 8.031 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.118e-05/0.6928, allocations: 20.78 kB / 1.026 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005174/0.6934, allocations: 268 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.97e-05/0.6934, allocations: 12.38 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.259e-05/0.6934, allocations: 8.375 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003016/0.6937, allocations: 120.8 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.6938, allocations: 3.938 kB / 1.026 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.6938, allocations: 8 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-06/0.6938, allocations: 4 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003219/0.6941, allocations: 87.86 kB / 1.027 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006666/0.6948, allocations: 0.5126 MB / 1.027 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002691/0.6951, allocations: 115.8 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001736/0.6953, allocations: 62.61 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.6953, allocations: 4 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.625e-05/0.6953, allocations: 38.55 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 2.114e-06/0.6954, allocations: 4 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0006523/0.696, allocations: 189.5 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.6961, allocations: 106.8 kB / 1.028 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001215/0.6962, allocations: 149.1 kB / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.6962, allocations: 25.7 kB / 1.028 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.559e-05/0.6963, allocations: 116.4 kB / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.516e-05/0.6964, allocations: 27.64 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.6964, allocations: 9.719 kB / 1.028 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.6965, allocations: 330.8 kB / 1.028 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.6967, allocations: 47.97 kB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/0.6969, allocations: 89.11 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.6972, allocations: 110.5 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.6972, allocations: 0 / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004126/0.6976, allocations: 157.5 kB / 1.029 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.6977, allocations: 9.875 kB / 1.029 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.6977, allocations: 0 / 1.029 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.6977, allocations: 3.938 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.6979, allocations: 31.92 kB / 1.029 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.6979, allocations: 0 / 1.029 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.698, allocations: 23.88 kB / 1.029 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.698, allocations: 4 kB / 1.029 GB, free: 10.68 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.0001081/0.6982, allocations: 134.2 kB / 1.029 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.631e-05/0.6982, allocations: 7.906 kB / 1.029 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002779/0.6985, allocations: 93.83 kB / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.6985, allocations: 4 kB / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.6985, allocations: 0 / 1.029 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.6986, allocations: 3.938 kB / 1.029 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003194/0.6989, allocations: 213.6 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.6989, allocations: 8.062 kB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.699, allocations: 19.98 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.699, allocations: 0 / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.699, allocations: 3.984 kB / 1.029 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.768e-06/0.6991, allocations: 4 kB / 1.029 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.6991, allocations: 0 / 1.029 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004655/0.6995, allocations: 393.7 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.441e-05/0.6996, allocations: 85.39 kB / 1.03 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.787e-05/0.6996, allocations: 8 kB / 1.03 GB, free: 9.617 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002186/0.6998, allocations: 19.97 kB / 1.03 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/0.6999, allocations: 19.95 kB / 1.03 GB, free: 9.578 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.6999, allocations: 4 kB / 1.03 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.593e-05/0.7, allocations: 120.6 kB / 1.03 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7, allocations: 0 / 1.03 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003316/0.7004, allocations: 16 kB / 1.03 GB, free: 9.441 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.0001415/0.7005, allocations: 103.2 kB / 1.03 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004091/0.7009, allocations: 119.8 kB / 1.03 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.7009, allocations: 0 / 1.03 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.7011, allocations: 60.03 kB / 1.03 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.7016, allocations: 17.95 kB / 1.03 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004719/0.7021, allocations: 262.8 kB / 1.03 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.7024, allocations: 0.7043 MB / 1.031 GB, free: 8.105 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.077e-05/0.7024, allocations: 19.42 kB / 1.031 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of SimCode: time 2.7e-07/0.7024, allocations: 0 / 1.031 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of Templates: time 0.003259/0.7057, allocations: 1.477 MB / 1.032 GB, free: 6.609 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/jenkins1/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