Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001454/0.001454, allocations: 108 kB / 15.61 MB, free: 152 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.001379/0.001379, allocations: 195.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.744/1.744, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.838/1.838, allocations: 292.3 MB / 0.5489 GB, free: 12.8 MB / 462.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.00187/0.00187, allocations: 68.86 kB / 0.6715 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.301, allocations: 114.5 MB / 0.7834 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002562/0.3036, allocations: 1.028 MB / 0.7844 GB, free: 12.42 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001933/0.3056, allocations: 1.313 MB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.911e-05/0.3057, allocations: 0 / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.643e-05/0.3058, allocations: 19.73 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001484/0.306, allocations: 35.66 kB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008386/0.3068, allocations: 265.4 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003978/0.3072, allocations: 339.3 kB / 0.7863 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.3074, allocations: 37.67 kB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001942/0.3076, allocations: 123.7 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.3078, allocations: 111.5 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.524e-05/0.3079, allocations: 35.98 kB / 0.7866 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.308, allocations: 47.98 kB / 0.7866 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.976e-05/0.3081, allocations: 35.84 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.3082, allocations: 119.5 kB / 0.7868 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.3086, allocations: 339.3 kB / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.3087, allocations: 0 / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3087, allocations: 0 / 0.7871 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.3087, allocations: 0 / 0.7871 GB, free: 9.613 MB / 0.6075 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.001106/0.3098, allocations: 0.5643 MB / 0.7877 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.3098, allocations: 8.031 kB / 0.7877 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.563e-05/0.3099, allocations: 24.75 kB / 0.7877 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008962/0.3109, allocations: 315.7 kB / 0.788 GB, free: 8.605 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/0.3109, allocations: 20.36 kB / 0.788 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.3109, allocations: 16.38 kB / 0.788 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003145/0.3113, allocations: 139.6 kB / 0.7882 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3113, allocations: 3.938 kB / 0.7882 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.3113, allocations: 0 / 0.7882 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.3113, allocations: 4 kB / 0.7882 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.3116, allocations: 75.88 kB / 0.7882 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008592/0.3124, allocations: 0.6374 MB / 0.7889 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.3128, allocations: 143.8 kB / 0.789 GB, free: 7.477 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.313, allocations: 54.7 kB / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.313, allocations: 0 / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003836/0.3134, allocations: 153.5 kB / 0.7892 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.3134, allocations: 4 kB / 0.7892 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0005785/0.314, allocations: 205.8 kB / 0.7894 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.14e-05/0.3141, allocations: 110.8 kB / 0.7895 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001828/0.3143, allocations: 194.5 kB / 0.7897 GB, free: 6.703 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.916e-05/0.3144, allocations: 41.69 kB / 0.7897 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.3145, allocations: 124.4 kB / 0.7898 GB, free: 6.531 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.151e-05/0.3145, allocations: 31.55 kB / 0.7899 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.3147, allocations: 61.69 kB / 0.7899 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3148, allocations: 334.8 kB / 0.7903 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.3151, allocations: 99.89 kB / 0.7904 GB, free: 6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002876/0.3154, allocations: 155.6 kB / 0.7905 GB, free: 5.82 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004148/0.3158, allocations: 233.2 kB / 0.7907 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3158, allocations: 0 / 0.7907 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000697/0.3165, allocations: 352.7 kB / 0.7911 GB, free: 5.195 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.377e-05/0.3166, allocations: 63.39 kB / 0.7911 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.3166, allocations: 0 / 0.7911 GB, free: 5.121 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.3166, allocations: 4 kB / 0.7911 GB, free: 5.117 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.079e-05/0.3167, allocations: 19.92 kB / 0.7911 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.3167, allocations: 7.938 kB / 0.7911 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000383/0.3171, allocations: 71.89 kB / 0.7912 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.522e-05/0.3172, allocations: 19.98 kB / 0.7912 GB, free: 5 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001432/0.3173, allocations: 133.8 kB / 0.7914 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.055e-05/0.3173, allocations: 15.81 kB / 0.7914 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002856/0.3176, allocations: 98.58 kB / 0.7915 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.3177, allocations: 0 / 0.7915 GB, free: 4.738 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.3177, allocations: 7.938 kB / 0.7915 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3177, allocations: 3.938 kB / 0.7915 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002309/0.3179, allocations: 241.4 kB / 0.7917 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.3179, allocations: 0 / 0.7917 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.928e-05/0.318, allocations: 19.98 kB / 0.7917 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.318, allocations: 0 / 0.7917 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.318, allocations: 7.984 kB / 0.7917 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.318, allocations: 4.188 kB / 0.7917 GB, free: 4.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.3181, allocations: 7.938 kB / 0.7918 GB, free: 4.402 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/0.3184, allocations: 186.6 kB / 0.7919 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.443e-05/0.3185, allocations: 96.92 kB / 0.792 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.317e-05/0.3185, allocations: 0 / 0.792 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.3187, allocations: 27.91 kB / 0.792 GB, free: 4.055 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.574e-05/0.3187, allocations: 28.19 kB / 0.7921 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.3188, allocations: 7.984 kB / 0.7921 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001185/0.3189, allocations: 135.2 kB / 0.7922 GB, free: 3.887 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3189, allocations: 0 / 0.7922 GB, free: 3.887 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002726/0.3192, allocations: 47.98 kB / 0.7923 GB, free: 3.84 MB / 0.6075 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 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002042/0.3194, allocations: 120.1 kB / 0.7924 GB, free: 3.711 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005776/0.32, allocations: 318.6 kB / 0.7927 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.32, allocations: 0 / 0.7927 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.3202, allocations: 67.89 kB / 0.7927 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3205, allocations: 42.88 kB / 0.7928 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005312/0.321, allocations: 308.5 kB / 0.7931 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002906/0.3213, allocations: 0.7203 MB / 0.7938 GB, free: 2.188 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001023/0.3214, allocations: 21.55 kB / 0.7938 GB, free: 2.168 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.038e-05/0.3215, allocations: 23.42 kB / 0.7938 GB, free: 2.148 MB / 0.6075 GB Notification: Performance of SimCode: time 1.623e-06/0.3215, allocations: 3.938 kB / 0.7938 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of Templates: time 0.00736/0.3289, allocations: 3.264 MB / 0.797 GB, free: 14.91 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1)