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.001167/0.001167, allocations: 116.6 kB / 16.38 MB, free: 6.012 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.001211/0.001211, allocations: 192.5 kB / 17.31 MB, free: 5.613 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.411/1.411, allocations: 205.1 MB / 223.2 MB, free: 12.27 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 1.855/1.855, allocations: 292.3 MB / 0.5496 GB, free: 17.56 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.001461/0.001462, allocations: 72.12 kB / 0.6729 GB, free: 5.816 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2595, allocations: 114.6 MB / 0.7848 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.00238/0.2619, allocations: 1.029 MB / 0.7858 GB, free: 2.113 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001703/0.2636, allocations: 1.312 MB / 0.7871 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.962e-05/0.2637, allocations: 0 / 0.7871 GB, free: 0.7852 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 5.303e-05/0.2638, allocations: 15.8 kB / 0.7871 GB, free: 0.7695 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.2639, allocations: 35.66 kB / 0.7871 GB, free: 0.7344 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007413/0.2647, allocations: 271.9 kB / 0.7874 GB, free: 484 kB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0003442/0.265, allocations: 339.3 kB / 0.7877 GB, free: 144 kB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001457/0.2652, allocations: 41.66 kB / 0.7878 GB, free: 104 kB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.4602/0.7253, allocations: 122.8 kB / 0.7879 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/0.7257, allocations: 117.1 kB / 0.788 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 8.536e-05/0.7258, allocations: 30.62 kB / 0.788 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.7259, allocations: 55.98 kB / 0.7881 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.109e-05/0.726, allocations: 36.34 kB / 0.7881 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.7261, allocations: 126 kB / 0.7882 GB, free: 47.06 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.7265, allocations: 339.1 kB / 0.7886 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.7265, allocations: 2.469 kB / 0.7886 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.474e-06/0.7265, allocations: 0 / 0.7886 GB, free: 47.04 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.7265, allocations: 0 / 0.7886 GB, free: 47.04 MB / 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.0008075/0.7273, allocations: 0.5598 MB / 0.7891 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.7274, allocations: 8.875 kB / 0.7891 GB, free: 46.58 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.75e-05/0.7274, allocations: 21.88 kB / 0.7891 GB, free: 46.57 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006858/0.7281, allocations: 309.2 kB / 0.7894 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.7282, allocations: 14.5 kB / 0.7894 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.518e-05/0.7282, allocations: 16.56 kB / 0.7895 GB, free: 46.36 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.7285, allocations: 134.4 kB / 0.7896 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.7285, allocations: 4.938 kB / 0.7896 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.7285, allocations: 3.875 kB / 0.7896 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.81e-06/0.7285, allocations: 4.562 kB / 0.7896 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.7287, allocations: 71.83 kB / 0.7897 GB, free: 46.3 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006035/0.7294, allocations: 0.6405 MB / 0.7903 GB, free: 45.86 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003361/0.7297, allocations: 148.7 kB / 0.7904 GB, free: 45.78 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.7298, allocations: 50.94 kB / 0.7905 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.7299, allocations: 8.594 kB / 0.7905 GB, free: 45.76 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.7301, allocations: 153.8 kB / 0.7906 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=14): time 1.453e-06/0.7301, allocations: 1.125 kB / 0.7906 GB, free: 45.68 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14): time 0.000515/0.7307, allocations: 198.5 kB / 0.7908 GB, free: 45.64 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.7307, allocations: 107.1 kB / 0.7909 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.7309, allocations: 195.3 kB / 0.7911 GB, free: 45.41 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.7309, allocations: 37.2 kB / 0.7912 GB, free: 45.38 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 6.829e-05/0.731, allocations: 132.8 kB / 0.7913 GB, free: 45.29 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.731, allocations: 36.11 kB / 0.7913 GB, free: 45.27 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.7311, allocations: 65.22 kB / 0.7914 GB, free: 45.25 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.559e-05/0.7312, allocations: 326.2 kB / 0.7917 GB, free: 44.94 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002125/0.7314, allocations: 97.05 kB / 0.7918 GB, free: 44.94 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.7316, allocations: 158.1 kB / 0.7919 GB, free: 44.86 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/0.7319, allocations: 228.7 kB / 0.7922 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.7319, allocations: 0 / 0.7922 GB, free: 44.74 MB / 0.6544 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005806/0.7325, allocations: 350.8 kB / 0.7925 GB, free: 44.64 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.252e-05/0.7326, allocations: 68.62 kB / 0.7926 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.7326, allocations: 1.375 kB / 0.7926 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.7326, allocations: 3.094 kB / 0.7926 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.898e-05/0.7327, allocations: 15.22 kB / 0.7926 GB, free: 44.58 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.7327, allocations: 16.5 kB / 0.7926 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003631/0.7331, allocations: 65.05 kB / 0.7926 GB, free: 44.57 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.7331, allocations: 15.8 kB / 0.7927 GB, free: 44.57 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 0.0001087/0.7333, allocations: 145.2 kB / 0.7928 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.7333, allocations: 15.41 kB / 0.7928 GB, free: 44.45 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000245/0.7335, allocations: 90.78 kB / 0.7929 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.7336, allocations: 4.922 kB / 0.7929 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.7336, allocations: 6.188 kB / 0.7929 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.7336, allocations: 4.266 kB / 0.7929 GB, free: 44.41 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.7337, allocations: 237.1 kB / 0.7931 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.7338, allocations: 2.625 kB / 0.7931 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.933e-05/0.7338, allocations: 20.88 kB / 0.7932 GB, free: 44.22 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.7339, allocations: 3.938 kB / 0.7932 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.7339, allocations: 5.5 kB / 0.7932 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.7339, allocations: 2.625 kB / 0.7932 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.7339, allocations: 3.938 kB / 0.7932 GB, free: 44.21 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.7342, allocations: 198.2 kB / 0.7934 GB, free: 44.12 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.457e-05/0.7343, allocations: 88.23 kB / 0.7935 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.7343, allocations: 6.688 kB / 0.7935 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.7344, allocations: 11.12 kB / 0.7935 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.7345, allocations: 32.44 kB / 0.7935 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.7345, allocations: 3.438 kB / 0.7935 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.149e-05/0.7346, allocations: 140.3 kB / 0.7936 GB, free: 43.95 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7346, allocations: 4.125 kB / 0.7936 GB, free: 43.94 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.000265/0.7348, allocations: 47.89 kB / 0.7937 GB, free: 43.94 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.0001574/0.735, allocations: 119.8 kB / 0.7938 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005017/0.7355, allocations: 318.1 kB / 0.7941 GB, free: 43.72 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.7355, allocations: 0 / 0.7941 GB, free: 43.72 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.7357, allocations: 73.92 kB / 0.7942 GB, free: 43.72 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.736, allocations: 38.72 kB / 0.7942 GB, free: 43.72 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004972/0.7365, allocations: 318.2 kB / 0.7945 GB, free: 43.51 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000133/0.7367, allocations: 0.7238 MB / 0.7952 GB, free: 42.81 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/0.7367, allocations: 24.22 kB / 0.7952 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of SimCode: time 4.91e-07/0.7367, allocations: 0 / 0.7952 GB, free: 42.8 MB / 0.6544 GB Notification: Performance of Templates: time 0.004538/0.7413, allocations: 2.78 MB / 0.798 GB, free: 42.65 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 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1)