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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.607/1.607, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001569, allocations: 167 kB / 326.5 MB, free: 2.266 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.119/2.119, allocations: 205.4 MB / 0.5775 GB, free: 20.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001054/0.001054, allocations: 91.98 kB / 0.6821 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003717/0.0003717, allocations: 11.94 kB / 0.7963 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2595, allocations: 106.3 MB / 0.9002 GB, free: 64.38 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001716/0.2613, allocations: 1.292 MB / 0.9014 GB, free: 63.07 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004693/0.2618, allocations: 238.3 kB / 0.9017 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.566e-05/0.2619, allocations: 4 kB / 0.9017 GB, free: 62.84 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.521e-05/0.2619, allocations: 7.922 kB / 0.9017 GB, free: 62.83 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001124/0.262, allocations: 27.91 kB / 0.9017 GB, free: 62.8 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.2623, allocations: 43.86 kB / 0.9017 GB, free: 62.76 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.2624, allocations: 91.81 kB / 0.9018 GB, free: 62.67 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.2625, allocations: 17.5 kB / 0.9018 GB, free: 62.64 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 9.457e-05/0.2626, allocations: 59.77 kB / 0.9019 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 9.72e-05/0.2627, allocations: 79.7 kB / 0.902 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/0.2627, allocations: 8 kB / 0.902 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.968e-05/0.2628, allocations: 8 kB / 0.902 GB, free: 62.49 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.498e-05/0.2628, allocations: 31.83 kB / 0.902 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.967e-05/0.2628, allocations: 41.64 kB / 0.9021 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001234/0.263, allocations: 112 kB / 0.9022 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.263, allocations: 0 / 0.9022 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.164e-06/0.263, allocations: 0 / 0.9022 GB, free: 62.3 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.129e-06/0.263, allocations: 0 / 0.9022 GB, free: 62.3 MB / 0.6042 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.0008514/0.2639, allocations: 490.7 kB / 0.9026 GB, free: 61.78 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/0.2639, allocations: 12.03 kB / 0.9026 GB, free: 61.77 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.264, allocations: 50.48 kB / 0.9027 GB, free: 61.71 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.297e-05/0.264, allocations: 11.91 kB / 0.9027 GB, free: 61.7 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009206/0.2649, allocations: 342.6 kB / 0.903 GB, free: 61.32 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.265, allocations: 8 kB / 0.903 GB, free: 61.31 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.265, allocations: 12 kB / 0.9031 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004089/0.2654, allocations: 182.3 kB / 0.9032 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.2655, allocations: 3.953 kB / 0.9032 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.2655, allocations: 12 kB / 0.9032 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.2655, allocations: 0 / 0.9032 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004981/0.266, allocations: 163.8 kB / 0.9034 GB, free: 60.93 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007923/0.2668, allocations: 0.5867 MB / 0.904 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004918/0.2673, allocations: 211.8 kB / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.2673, allocations: 4.078 kB / 0.9042 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004259/0.2678, allocations: 193.8 kB / 0.9044 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.2678, allocations: 0 / 0.9044 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14): time 0.0008952/0.2687, allocations: 321.2 kB / 0.9047 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.2687, allocations: 110.8 kB / 0.9048 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.2689, allocations: 158.2 kB / 0.9049 GB, free: 59.22 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.2689, allocations: 37.7 kB / 0.905 GB, free: 59.18 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 5.901e-05/0.269, allocations: 116.3 kB / 0.9051 GB, free: 59.06 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.269, allocations: 39.45 kB / 0.9051 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/0.269, allocations: 4 kB / 0.9051 GB, free: 59.02 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.435e-05/0.2691, allocations: 326.8 kB / 0.9054 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002751/0.2693, allocations: 107.8 kB / 0.9055 GB, free: 58.59 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.2696, allocations: 144.1 kB / 0.9057 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.2699, allocations: 103.9 kB / 0.9058 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2699, allocations: 0 / 0.9058 GB, free: 58.33 MB / 0.6042 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006065/0.2705, allocations: 261.2 kB / 0.906 GB, free: 58.07 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.2706, allocations: 8 kB / 0.906 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2706, allocations: 0 / 0.906 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.2706, allocations: 0 / 0.906 GB, free: 58.06 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.2708, allocations: 55.95 kB / 0.9061 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.2708, allocations: 3.938 kB / 0.9061 GB, free: 58 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002283/0.2711, allocations: 39.81 kB / 0.9061 GB, free: 57.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.2711, allocations: 20.55 kB / 0.9061 GB, free: 57.94 MB / 0.6042 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 9.631e-05/0.2712, allocations: 125.8 kB / 0.9063 GB, free: 57.81 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.2712, allocations: 11.91 kB / 0.9063 GB, free: 57.8 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/0.2715, allocations: 102.6 kB / 0.9064 GB, free: 57.7 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2715, allocations: 4 kB / 0.9064 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2715, allocations: 0 / 0.9064 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2715, allocations: 288 / 0.9064 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.2717, allocations: 237.5 kB / 0.9066 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2717, allocations: 0 / 0.9066 GB, free: 57.41 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.2719, allocations: 31.97 kB / 0.9066 GB, free: 57.38 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.2719, allocations: 11.98 kB / 0.9066 GB, free: 57.37 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.283e-05/0.272, allocations: 4 kB / 0.9066 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.272, allocations: 7.922 kB / 0.9067 GB, free: 57.36 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.272, allocations: 4 kB / 0.9067 GB, free: 57.35 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006019/0.2726, allocations: 289.8 kB / 0.9069 GB, free: 57.03 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.2726, allocations: 88.95 kB / 0.907 GB, free: 56.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/0.2727, allocations: 11.98 kB / 0.907 GB, free: 56.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.2729, allocations: 35.97 kB / 0.9071 GB, free: 56.88 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.702e-05/0.273, allocations: 48.09 kB / 0.9071 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.273, allocations: 4 kB / 0.9071 GB, free: 56.83 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 6.001e-05/0.2731, allocations: 120.8 kB / 0.9072 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2731, allocations: 0 / 0.9072 GB, free: 56.71 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002101/0.2733, allocations: 28 kB / 0.9073 GB, free: 56.68 MB / 0.6042 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.0009022/0.2742, allocations: 0.9812 MB / 0.9082 GB, free: 55.66 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000614/0.2748, allocations: 215.7 kB / 0.9084 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2749, allocations: 0 / 0.9084 GB, free: 55.45 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.2752, allocations: 119.9 kB / 0.9085 GB, free: 55.33 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002363/0.2754, allocations: 23.94 kB / 0.9086 GB, free: 55.3 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001987/0.2774, allocations: 1.315 MB / 0.9098 GB, free: 53.92 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001353/0.2776, allocations: 0.7206 MB / 0.9105 GB, free: 53.18 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001213/0.2777, allocations: 21.55 kB / 0.9106 GB, free: 53.16 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.411e-05/0.2778, allocations: 39.42 kB / 0.9106 GB, free: 53.12 MB / 0.6042 GB Notification: Performance of SimCode: time 6.82e-07/0.2778, allocations: 0 / 0.9106 GB, free: 53.12 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01344/0.2912, allocations: 3.432 MB / 0.914 GB, free: 49.86 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.2914, allocations: 198.2 kB / 0.9141 GB, free: 49.63 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/2.012, allocations: 0 / 0.9141 GB, free: 49.63 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1)