Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.00121/0.001211, allocations: 97.91 kB / 15.05 MB, free: 1.105 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.00139/0.00139, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.785/1.785, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.693/1.693, allocations: 251.9 MB / 0.51 GB, free: 4.859 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008374/0.0008374, allocations: 16 kB / 0.6241 GB, free: 1.156 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7112/0.7121, allocations: 106.3 MB / 0.728 GB, free: 11.59 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002047/0.7142, allocations: 1.292 MB / 0.7293 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005278/0.7147, allocations: 232.2 kB / 0.7295 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.454e-05/0.7148, allocations: 4 kB / 0.7295 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.3e-05/0.7148, allocations: 7.875 kB / 0.7295 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.715, allocations: 27.95 kB / 0.7295 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002711/0.7153, allocations: 43.81 kB / 0.7296 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001391/0.7154, allocations: 91.81 kB / 0.7296 GB, free: 9.887 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.7155, allocations: 21.48 kB / 0.7297 GB, free: 9.859 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.956e-05/0.7156, allocations: 59.81 kB / 0.7297 GB, free: 9.801 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.7158, allocations: 75.72 kB / 0.7298 GB, free: 9.727 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.6e-05/0.7158, allocations: 8 kB / 0.7298 GB, free: 9.719 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 2.221e-05/0.7158, allocations: 8 kB / 0.7298 GB, free: 9.711 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.382e-05/0.7159, allocations: 27.84 kB / 0.7298 GB, free: 9.684 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.513e-05/0.7159, allocations: 45.58 kB / 0.7299 GB, free: 9.633 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.7161, allocations: 117.8 kB / 0.73 GB, free: 9.52 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.7161, allocations: 0 / 0.73 GB, free: 9.52 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7161, allocations: 0 / 0.73 GB, free: 9.52 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.7161, allocations: 0 / 0.73 GB, free: 9.52 MB / 0.545 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.0009418/0.717, allocations: 0.4908 MB / 0.7305 GB, free: 8.98 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.7171, allocations: 16.02 kB / 0.7305 GB, free: 8.965 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.254e-05/0.7171, allocations: 11.91 kB / 0.7305 GB, free: 8.953 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.7182, allocations: 326.6 kB / 0.7308 GB, free: 8.594 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.059e-05/0.7182, allocations: 15.92 kB / 0.7308 GB, free: 8.578 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/0.7182, allocations: 16 kB / 0.7308 GB, free: 8.562 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.7187, allocations: 178.9 kB / 0.731 GB, free: 8.375 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.7187, allocations: 0 / 0.731 GB, free: 8.375 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.7188, allocations: 7.953 kB / 0.731 GB, free: 8.367 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.7188, allocations: 4 kB / 0.731 GB, free: 8.363 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005562/0.7193, allocations: 163.8 kB / 0.7312 GB, free: 8.203 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009821/0.7203, allocations: 0.5867 MB / 0.7318 GB, free: 7.559 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006083/0.7209, allocations: 211.8 kB / 0.732 GB, free: 7.324 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.721, allocations: 3.938 kB / 0.732 GB, free: 7.32 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004995/0.7215, allocations: 196.4 kB / 0.7321 GB, free: 7.109 MB / 0.545 GB Notification: Performance of pre-optimization done (n=14): time 1.503e-06/0.7215, allocations: 3.938 kB / 0.7322 GB, free: 7.105 MB / 0.545 GB Notification: Performance of matching and sorting (n=14): time 0.00101/0.7225, allocations: 317.8 kB / 0.7325 GB, free: 6.789 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.062e-05/0.7226, allocations: 110.8 kB / 0.7326 GB, free: 6.656 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.7228, allocations: 160.8 kB / 0.7327 GB, free: 6.488 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.7228, allocations: 33.7 kB / 0.7327 GB, free: 6.449 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.7229, allocations: 116.3 kB / 0.7329 GB, free: 6.332 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/0.7229, allocations: 47.52 kB / 0.7329 GB, free: 6.285 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.723, allocations: 4 kB / 0.7329 GB, free: 6.281 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.7231, allocations: 326.8 kB / 0.7332 GB, free: 5.953 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003112/0.7234, allocations: 103.8 kB / 0.7333 GB, free: 5.852 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/0.7238, allocations: 145 kB / 0.7335 GB, free: 5.691 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003148/0.7241, allocations: 95.91 kB / 0.7335 GB, free: 5.598 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.7241, allocations: 3.984 kB / 0.7335 GB, free: 5.594 MB / 0.545 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007377/0.7248, allocations: 265.2 kB / 0.7338 GB, free: 5.328 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.7249, allocations: 8 kB / 0.7338 GB, free: 5.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.7249, allocations: 0 / 0.7338 GB, free: 5.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.7249, allocations: 4.031 kB / 0.7338 GB, free: 5.316 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002415/0.7252, allocations: 55.91 kB / 0.7339 GB, free: 5.262 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.7252, allocations: 0 / 0.7339 GB, free: 5.262 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002474/0.7254, allocations: 47.8 kB / 0.7339 GB, free: 5.215 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.7255, allocations: 8 kB / 0.7339 GB, free: 5.207 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.7256, allocations: 137.7 kB / 0.7341 GB, free: 5.062 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.7256, allocations: 11.91 kB / 0.7341 GB, free: 5.051 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002735/0.7259, allocations: 98.64 kB / 0.7342 GB, free: 4.953 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.7259, allocations: 8 kB / 0.7342 GB, free: 4.945 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.7259, allocations: 0 / 0.7342 GB, free: 4.945 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.726, allocations: 4 kB / 0.7342 GB, free: 4.941 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.7263, allocations: 217.5 kB / 0.7344 GB, free: 4.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.7263, allocations: 3.953 kB / 0.7344 GB, free: 4.676 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001631/0.7264, allocations: 35.95 kB / 0.7344 GB, free: 4.641 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.7264, allocations: 7.938 kB / 0.7344 GB, free: 4.633 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.7265, allocations: 8 kB / 0.7344 GB, free: 4.625 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.7265, allocations: 4 kB / 0.7344 GB, free: 4.621 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.7265, allocations: 0 / 0.7344 GB, free: 4.621 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006801/0.7272, allocations: 301.8 kB / 0.7347 GB, free: 4.289 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.7273, allocations: 88.95 kB / 0.7348 GB, free: 4.184 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.7274, allocations: 8 kB / 0.7348 GB, free: 4.176 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000226/0.7276, allocations: 31.95 kB / 0.7348 GB, free: 4.145 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001228/0.7277, allocations: 51.86 kB / 0.7349 GB, free: 4.094 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.7277, allocations: 7.984 kB / 0.7349 GB, free: 4.086 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.225e-05/0.7278, allocations: 120.1 kB / 0.735 GB, free: 3.969 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7279, allocations: 0 / 0.735 GB, free: 3.969 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002327/0.7281, allocations: 31.94 kB / 0.735 GB, free: 3.938 MB / 0.545 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 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001803/0.7283, allocations: 107.2 kB / 0.7351 GB, free: 3.82 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007217/0.729, allocations: 219.8 kB / 0.7354 GB, free: 3.605 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.729, allocations: 0 / 0.7354 GB, free: 3.605 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003967/0.7294, allocations: 120 kB / 0.7355 GB, free: 3.488 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.7297, allocations: 30.56 kB / 0.7355 GB, free: 3.461 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007308/0.7304, allocations: 297.9 kB / 0.7358 GB, free: 3.141 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.7309, allocations: 0.7128 MB / 0.7365 GB, free: 2.398 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001208/0.731, allocations: 25.53 kB / 0.7365 GB, free: 2.375 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.216e-05/0.7311, allocations: 23.44 kB / 0.7365 GB, free: 2.352 MB / 0.545 GB Notification: Performance of SimCode: time 9.82e-07/0.7311, allocations: 4 kB / 0.7365 GB, free: 2.348 MB / 0.545 GB Notification: Performance of Templates: time 0.006054/0.7371, allocations: 1.952 MB / 0.7384 GB, free: 420 kB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) Environment - environmentSimulation: