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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001139/0.001139, allocations: 109.4 kB / 15.69 MB, free: 128 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.001397/0.001397, allocations: 188.4 kB / 16.62 MB, free: 6.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.377/1.377, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.731/1.731, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001397/0.001397, allocations: 70.75 kB / 0.6718 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2152/0.2166, allocations: 114.5 MB / 0.7836 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002455/0.2191, allocations: 1.033 MB / 0.7847 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001794/0.2209, allocations: 1.305 MB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.445e-05/0.221, allocations: 4 kB / 0.7859 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 7.736e-05/0.2211, allocations: 19.8 kB / 0.786 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.2213, allocations: 31.66 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007476/0.222, allocations: 265.7 kB / 0.7862 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00038/0.2224, allocations: 339.3 kB / 0.7866 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.2226, allocations: 49.66 kB / 0.7866 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.2228, allocations: 123.7 kB / 0.7867 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.2229, allocations: 123.5 kB / 0.7868 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.789e-05/0.223, allocations: 32 kB / 0.7869 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.2231, allocations: 47.98 kB / 0.7869 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.2232, allocations: 39.84 kB / 0.787 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.2233, allocations: 119.5 kB / 0.7871 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003932/0.2237, allocations: 335.3 kB / 0.7874 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.2237, allocations: 0 / 0.7874 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.635e-06/0.2237, allocations: 4 kB / 0.7874 GB, free: 9.371 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.107e-06/0.2237, allocations: 0 / 0.7874 GB, free: 9.371 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.0009928/0.2247, allocations: 0.5643 MB / 0.7879 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.2248, allocations: 8.031 kB / 0.788 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.27e-05/0.2248, allocations: 46.67 kB / 0.788 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.269e-05/0.2249, allocations: 24.75 kB / 0.788 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008041/0.2257, allocations: 308 kB / 0.7883 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.2258, allocations: 12.38 kB / 0.7883 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.2258, allocations: 20.38 kB / 0.7883 GB, free: 8.285 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.2261, allocations: 140.4 kB / 0.7885 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2261, allocations: 0 / 0.7885 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.2262, allocations: 0 / 0.7885 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.2262, allocations: 4 kB / 0.7885 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.2264, allocations: 71.94 kB / 0.7886 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008103/0.2272, allocations: 0.6451 MB / 0.7892 GB, free: 7.355 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003896/0.2276, allocations: 135.8 kB / 0.7893 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/0.2278, allocations: 58.72 kB / 0.7894 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/0.2278, allocations: 3.984 kB / 0.7894 GB, free: 7.125 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003467/0.2282, allocations: 145.2 kB / 0.7895 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.2282, allocations: 0 / 0.7895 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14): time 0.0005653/0.2288, allocations: 205.7 kB / 0.7897 GB, free: 6.758 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.754e-05/0.2288, allocations: 110.8 kB / 0.7898 GB, free: 6.625 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.229, allocations: 194.6 kB / 0.79 GB, free: 6.426 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.4e-05/0.2291, allocations: 33.7 kB / 0.79 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.2292, allocations: 132.3 kB / 0.7902 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.872e-05/0.2293, allocations: 31.61 kB / 0.7902 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.2294, allocations: 65.67 kB / 0.7902 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2295, allocations: 326.8 kB / 0.7906 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.2298, allocations: 99.95 kB / 0.7907 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002754/0.23, allocations: 166.3 kB / 0.7908 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003821/0.2304, allocations: 233.3 kB / 0.791 GB, free: 5.277 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2305, allocations: 3.938 kB / 0.791 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006847/0.2311, allocations: 344.7 kB / 0.7914 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.974e-05/0.2312, allocations: 63.41 kB / 0.7914 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.2312, allocations: 3.938 kB / 0.7914 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.2313, allocations: 12.06 kB / 0.7914 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.909e-05/0.2314, allocations: 19.92 kB / 0.7915 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.2314, allocations: 7.938 kB / 0.7915 GB, free: 4.801 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.2318, allocations: 67.77 kB / 0.7915 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.851e-05/0.2318, allocations: 19.98 kB / 0.7916 GB, free: 4.715 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.0001483/0.232, allocations: 133.8 kB / 0.7917 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.232, allocations: 19.8 kB / 0.7917 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002909/0.2323, allocations: 98.52 kB / 0.7918 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2323, allocations: 4 kB / 0.7918 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.2323, allocations: 3.938 kB / 0.7918 GB, free: 4.441 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.2324, allocations: 4 kB / 0.7918 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.2326, allocations: 241.5 kB / 0.792 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2326, allocations: 0 / 0.792 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.412e-05/0.2327, allocations: 19.98 kB / 0.7921 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2327, allocations: 0 / 0.7921 GB, free: 4.133 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.485e-05/0.2327, allocations: 4 kB / 0.7921 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.999e-06/0.2327, allocations: 3.938 kB / 0.7921 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.2328, allocations: 3.938 kB / 0.7921 GB, free: 4.121 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003826/0.2331, allocations: 190.8 kB / 0.7923 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.2332, allocations: 100.9 kB / 0.7923 GB, free: 3.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.2332, allocations: 4 kB / 0.7924 GB, free: 3.789 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.2334, allocations: 15.98 kB / 0.7924 GB, free: 3.773 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.648e-05/0.2334, allocations: 27.89 kB / 0.7924 GB, free: 3.746 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/0.2335, allocations: 4 kB / 0.7924 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001088/0.2336, allocations: 144.4 kB / 0.7925 GB, free: 3.602 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2336, allocations: 4 kB / 0.7925 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00027/0.2339, allocations: 43.94 kB / 0.7926 GB, free: 3.555 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.000769/0.2346, allocations: 0.7493 MB / 0.7933 GB, free: 2.77 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000598/0.2353, allocations: 310.6 kB / 0.7936 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2353, allocations: 0 / 0.7936 GB, free: 2.441 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001742/0.2354, allocations: 64.16 kB / 0.7937 GB, free: 2.379 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.2358, allocations: 47.84 kB / 0.7937 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002993/0.2388, allocations: 2.31 MB / 0.796 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.2391, allocations: 0.7242 MB / 0.7967 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.94e-05/0.2392, allocations: 21.92 kB / 0.7967 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2393, allocations: 63.41 kB / 0.7968 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of SimCode: time 7.21e-07/0.2393, allocations: 0 / 0.7968 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.2633, allocations: 4.936 MB / 0.8016 GB, free: 10.24 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.295/8.559, allocations: 0 / 0.8016 GB, free: 10.24 MB / 0.6231 GB (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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1)