Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001186/0.001186, allocations: 110.6 kB / 16.37 MB, free: 6.008 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.001363/0.001363, allocations: 192.1 kB / 17.3 MB, free: 5.617 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.469/2.469, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 67.98 kB / 0.8774 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.333, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis): time 0.002325/0.3354, allocations: 0.8501 MB / 1.028 GB, free: 1.184 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001181/0.3366, allocations: 0.8741 MB / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.001e-05/0.3366, allocations: 0 / 1.028 GB, free: 304 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.966e-05/0.3367, allocations: 11.86 kB / 1.028 GB, free: 292 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.3368, allocations: 23.73 kB / 1.028 GB, free: 268 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.337, allocations: 31.95 kB / 1.029 GB, free: 236 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001556/0.3372, allocations: 115.7 kB / 1.029 GB, free: 120 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.3373, allocations: 37.09 kB / 1.029 GB, free: 80 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001356/0.3375, allocations: 59.7 kB / 1.029 GB, free: 20 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 9.849e-05/0.3376, allocations: 47.77 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.3376, allocations: 12 kB / 1.029 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.793e-05/0.3376, allocations: 8 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.54e-05/0.3377, allocations: 35.89 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.479e-05/0.3377, allocations: 47.73 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.3379, allocations: 119.6 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.3379, allocations: 0 / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.036e-06/0.3379, allocations: 3.938 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.3379, allocations: 0 / 1.029 GB, free: 15.75 MB / 0.8106 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.0006798/0.3386, allocations: 438.9 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3387, allocations: 12.03 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.599e-05/0.3387, allocations: 12.84 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.3392, allocations: 261.1 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.3393, allocations: 4.375 kB / 1.03 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.3393, allocations: 8.375 kB / 1.03 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.3396, allocations: 116.7 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.3396, allocations: 3.938 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.3396, allocations: 11.92 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.3396, allocations: 4 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.3399, allocations: 67.94 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000657/0.3406, allocations: 0.4931 MB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.3408, allocations: 111.8 kB / 1.03 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.341, allocations: 62.59 kB / 1.031 GB, free: 13.97 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.341, allocations: 4.062 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.341, allocations: 42.5 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.3411, allocations: 0 / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0005785/0.3416, allocations: 157.3 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.801e-05/0.3417, allocations: 115 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.3418, allocations: 145.3 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/0.3419, allocations: 25.7 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.926e-05/0.3419, allocations: 112.3 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.384e-05/0.342, allocations: 27.64 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.334e-05/0.342, allocations: 25.7 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3422, allocations: 326.7 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.3423, allocations: 47.95 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.3425, allocations: 77.11 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002551/0.3428, allocations: 94.52 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3428, allocations: 3.938 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003236/0.3431, allocations: 141.6 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.3431, allocations: 8 kB / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.3431, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3432, allocations: 0 / 1.032 GB, free: 12.54 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.3433, allocations: 31.97 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3433, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.3434, allocations: 11.98 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.3434, allocations: 4 kB / 1.032 GB, free: 12.49 MB / 0.8106 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 9.285e-05/0.3435, allocations: 129.8 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.35e-05/0.3436, allocations: 7.906 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002449/0.3439, allocations: 93.83 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3439, allocations: 0 / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.3439, allocations: 4.062 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.3439, allocations: 4 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003154/0.3442, allocations: 201.5 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3442, allocations: 0 / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.3443, allocations: 23.97 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3444, allocations: 0 / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.3444, allocations: 4 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.3444, allocations: 7.938 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3444, allocations: 0 / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004275/0.3448, allocations: 377.8 kB / 1.033 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.49e-05/0.3449, allocations: 92.95 kB / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.355e-05/0.3449, allocations: 0 / 1.033 GB, free: 11.46 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000205/0.3451, allocations: 15.98 kB / 1.033 GB, free: 11.44 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.033e-05/0.3452, allocations: 27.95 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-06/0.3452, allocations: 0 / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 8.456e-05/0.3453, allocations: 117 kB / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3453, allocations: 0 / 1.033 GB, free: 11.3 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003107/0.3456, allocations: 16 kB / 1.033 GB, free: 11.29 MB / 0.8106 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.0001882/0.3458, allocations: 114 kB / 1.033 GB, free: 11.16 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003613/0.3462, allocations: 99.86 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3462, allocations: 0 / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001641/0.3464, allocations: 56.02 kB / 1.033 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.3468, allocations: 16 kB / 1.033 GB, free: 11 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.3473, allocations: 199.5 kB / 1.033 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.3476, allocations: 0.704 MB / 1.034 GB, free: 10.04 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 7.921e-05/0.3477, allocations: 21.02 kB / 1.034 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.387e-05/0.3477, allocations: 19.42 kB / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.3477, allocations: 0 / 1.034 GB, free: 9.996 MB / 0.8106 GB Notification: Performance of Templates: time 0.004521/0.3522, allocations: 1.349 MB / 1.035 GB, free: 8.652 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches