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.001427/0.001427, allocations: 110.1 kB / 16.29 MB, free: 6.023 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.001387/0.001387, allocations: 186.4 kB / 17.22 MB, free: 5.629 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.716/1.716, allocations: 205.1 MB / 223.1 MB, free: 12.33 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.068/2.068, allocations: 292.3 MB / 0.5495 GB, free: 17.49 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.001679/0.001679, allocations: 75.89 kB / 0.6722 GB, free: 6.57 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.2722, allocations: 114.5 MB / 0.7841 GB, free: 3.906 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002965/0.2752, allocations: 1.025 MB / 0.7851 GB, free: 2.871 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.002072/0.2773, allocations: 1.308 MB / 0.7864 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.2775, allocations: 4 kB / 0.7864 GB, free: 1.543 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 6.664e-05/0.2776, allocations: 15.8 kB / 0.7864 GB, free: 1.527 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.2778, allocations: 35.66 kB / 0.7864 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009002/0.2787, allocations: 265.1 kB / 0.7867 GB, free: 1.238 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0005022/0.2792, allocations: 339.3 kB / 0.787 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.2794, allocations: 45.67 kB / 0.787 GB, free: 0.8633 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002704/0.2797, allocations: 123.7 kB / 0.7872 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.28, allocations: 127.5 kB / 0.7873 GB, free: 0.6172 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 9.086e-05/0.2801, allocations: 32 kB / 0.7873 GB, free: 0.5859 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.2802, allocations: 47.98 kB / 0.7874 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 6.584e-05/0.2803, allocations: 43.77 kB / 0.7874 GB, free: 0.4961 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.2804, allocations: 115.5 kB / 0.7875 GB, free: 392 kB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.00049/0.2809, allocations: 335.2 kB / 0.7878 GB, free: 56 kB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.281, allocations: 0 / 0.7878 GB, free: 56 kB / 0.6544 GB Notification: Performance of FrontEnd: time 2.094e-06/0.281, allocations: 0 / 0.7878 GB, free: 56 kB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.281, allocations: 0 / 0.7878 GB, free: 56 kB / 0.6544 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.5319/0.8129, allocations: 0.5636 MB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.8129, allocations: 13.84 kB / 0.7884 GB, free: 48.62 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.614e-05/0.813, allocations: 22.38 kB / 0.7884 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006366/0.8136, allocations: 319 kB / 0.7887 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.8137, allocations: 10.66 kB / 0.7887 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.719e-05/0.8137, allocations: 21.41 kB / 0.7888 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.814, allocations: 125.8 kB / 0.7889 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.814, allocations: 4.531 kB / 0.7889 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.814, allocations: 7.547 kB / 0.7889 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.814, allocations: 3.031 kB / 0.7889 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.8142, allocations: 77.36 kB / 0.789 GB, free: 48.33 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005754/0.8148, allocations: 0.6317 MB / 0.7896 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.8151, allocations: 141.1 kB / 0.7897 GB, free: 47.82 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.8153, allocations: 55.41 kB / 0.7898 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.8153, allocations: 3.969 kB / 0.7898 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003695/0.8157, allocations: 148.5 kB / 0.7899 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=14): time 2.154e-06/0.8157, allocations: 0 / 0.7899 GB, free: 47.73 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14): time 0.0005451/0.8162, allocations: 203.4 kB / 0.7901 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.8163, allocations: 108.1 kB / 0.7902 GB, free: 47.56 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.8164, allocations: 200.5 kB / 0.7904 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.8165, allocations: 34.2 kB / 0.7904 GB, free: 47.42 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.183e-05/0.8165, allocations: 134.8 kB / 0.7906 GB, free: 47.33 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/0.8166, allocations: 30.77 kB / 0.7906 GB, free: 47.31 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.8167, allocations: 66.09 kB / 0.7907 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.369e-05/0.8168, allocations: 330.5 kB / 0.791 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002176/0.817, allocations: 99.3 kB / 0.7911 GB, free: 46.98 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002256/0.8172, allocations: 160.6 kB / 0.7912 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003127/0.8175, allocations: 226.8 kB / 0.7914 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.8176, allocations: 2.812 kB / 0.7914 GB, free: 46.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000594/0.8182, allocations: 347.3 kB / 0.7918 GB, free: 46.68 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.458e-05/0.8182, allocations: 70.36 kB / 0.7918 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.8182, allocations: 2.625 kB / 0.7918 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.8183, allocations: 3.125 kB / 0.7918 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.651e-05/0.8183, allocations: 18.05 kB / 0.7919 GB, free: 46.62 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.8184, allocations: 7.469 kB / 0.7919 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003306/0.8187, allocations: 68.61 kB / 0.7919 GB, free: 46.61 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.154e-05/0.8187, allocations: 18.02 kB / 0.7919 GB, free: 46.61 MB / 0.6544 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 9.838e-05/0.8188, allocations: 149.2 kB / 0.7921 GB, free: 46.49 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.8189, allocations: 15.69 kB / 0.7921 GB, free: 46.48 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002286/0.8191, allocations: 91.8 kB / 0.7922 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.8191, allocations: 2.625 kB / 0.7922 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.8191, allocations: 6.562 kB / 0.7922 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.8191, allocations: 0 / 0.7922 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.8193, allocations: 241.1 kB / 0.7924 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.8193, allocations: 3.156 kB / 0.7924 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.302e-05/0.8194, allocations: 19.06 kB / 0.7924 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.8194, allocations: 1.5 kB / 0.7925 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.285e-05/0.8194, allocations: 5.891 kB / 0.7925 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.8194, allocations: 2.562 kB / 0.7925 GB, free: 46.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.8194, allocations: 3.938 kB / 0.7925 GB, free: 46.25 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002826/0.8197, allocations: 198.8 kB / 0.7927 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.098e-05/0.8198, allocations: 92.94 kB / 0.7927 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.92e-05/0.8198, allocations: 4.688 kB / 0.7927 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.475e-05/0.8199, allocations: 12.33 kB / 0.7928 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.227e-05/0.82, allocations: 37.42 kB / 0.7928 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.82, allocations: 3.719 kB / 0.7928 GB, free: 46.06 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.539e-05/0.8201, allocations: 138 kB / 0.7929 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8201, allocations: 2.906 kB / 0.7929 GB, free: 45.98 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000263/0.8204, allocations: 46.25 kB / 0.793 GB, free: 45.98 MB / 0.6544 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.0001491/0.8205, allocations: 116.4 kB / 0.7931 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004569/0.821, allocations: 315.8 kB / 0.7934 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.821, allocations: 0 / 0.7934 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.8211, allocations: 67.98 kB / 0.7935 GB, free: 45.77 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.8214, allocations: 36.66 kB / 0.7935 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004039/0.8218, allocations: 290.4 kB / 0.7938 GB, free: 45.58 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001322/0.822, allocations: 0.7235 MB / 0.7945 GB, free: 44.88 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 7.911e-05/0.8221, allocations: 26.64 kB / 0.7945 GB, free: 44.88 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.833e-05/0.8221, allocations: 23.86 kB / 0.7945 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of SimCode: time 2.3e-07/0.8221, allocations: 0 / 0.7945 GB, free: 44.87 MB / 0.6544 GB Notification: Performance of Templates: time 0.006305/0.8285, allocations: 3.265 MB / 0.7977 GB, free: 44.72 MB / 0.6544 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1)