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.599/1.599, allocations: 249.3 MB / 261.8 MB, free: 5.812 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 190 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.687/1.687, allocations: 205.2 MB / 0.572 GB, free: 10.65 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.0008891/0.000889, allocations: 98.45 kB / 0.6764 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.041e-05/4.049e-05, allocations: 8 kB / 0.7881 GB, free: 96.97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1893/0.1894, allocations: 106.3 MB / 0.8919 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6659/0.8553, allocations: 132.1 MB / 1.021 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.8556, allocations: 73.02 kB / 1.021 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.00682/0.8624, allocations: 2.138 MB / 1.023 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.084e-06/0.8625, allocations: 0 / 1.023 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.8625, allocations: 4 kB / 1.023 GB, free: 0.6484 MB / 0.6355 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.0008889/0.8634, allocations: 482 kB / 1.023 GB, free: 144 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.8634, allocations: 8.031 kB / 1.023 GB, free: 136 kB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.448e-05/0.8635, allocations: 44.81 kB / 1.024 GB, free: 92 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.856e-05/0.8636, allocations: 15.84 kB / 1.024 GB, free: 76 kB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002171/0.8638, allocations: 199.5 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.8638, allocations: 7.312 kB / 1.024 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.199e-05/0.8638, allocations: 11.81 kB / 1.024 GB, free: 15.83 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.8641, allocations: 141.9 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.8641, allocations: 0 / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.8641, allocations: 3.953 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.8642, allocations: 4 kB / 1.024 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.8643, allocations: 64.8 kB / 1.024 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009887/0.8653, allocations: 0.5993 MB / 1.025 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.8655, allocations: 124.2 kB / 1.025 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.561e-05/0.8656, allocations: 56.58 kB / 1.025 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.991e-05/0.8657, allocations: 3.5 kB / 1.025 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.8659, allocations: 143 kB / 1.025 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=14): time 1.944e-06/0.8659, allocations: 0 / 1.025 GB, free: 14.73 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14): time 0.0003046/0.8663, allocations: 133.6 kB / 1.025 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.8663, allocations: 110.8 kB / 1.025 GB, free: 14.49 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.8665, allocations: 145.9 kB / 1.025 GB, free: 14.35 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.8665, allocations: 37.14 kB / 1.025 GB, free: 14.31 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.292e-05/0.8666, allocations: 112.2 kB / 1.025 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.8666, allocations: 38.64 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/0.8667, allocations: 3.312 kB / 1.025 GB, free: 14.18 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.8668, allocations: 326.4 kB / 1.026 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.9e-05/0.8669, allocations: 48.44 kB / 1.026 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001396/0.867, allocations: 95.05 kB / 1.026 GB, free: 13.74 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.002e-05/0.8671, allocations: 42.36 kB / 1.026 GB, free: 13.71 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.8671, allocations: 11.89 kB / 1.026 GB, free: 13.7 MB / 0.6511 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002874/0.8674, allocations: 169.8 kB / 1.026 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.8675, allocations: 4 kB / 1.026 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.8675, allocations: 192 / 1.026 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.8675, allocations: 4 kB / 1.026 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.8678, allocations: 55.39 kB / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.8678, allocations: 4 kB / 1.026 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003013/0.8681, allocations: 63.02 kB / 1.026 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.427e-05/0.8681, allocations: 10.98 kB / 1.026 GB, free: 13.43 MB / 0.6511 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 () * 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 0.000109/0.8683, allocations: 117.3 kB / 1.026 GB, free: 13.31 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.849e-05/0.8683, allocations: 19.02 kB / 1.026 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001614/0.8685, allocations: 83.23 kB / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.8685, allocations: 144 / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.8685, allocations: 0 / 1.026 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.603e-06/0.8685, allocations: 11.98 kB / 1.026 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002175/0.8687, allocations: 229.8 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.8687, allocations: 4 kB / 1.027 GB, free: 12.96 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.8689, allocations: 35.92 kB / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.8689, allocations: 0 / 1.027 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.869, allocations: 7.984 kB / 1.027 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.869, allocations: 0 / 1.027 GB, free: 12.92 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.869, allocations: 8 kB / 1.027 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002707/0.8693, allocations: 190.7 kB / 1.027 GB, free: 12.71 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.563e-05/0.8693, allocations: 92.36 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.439e-05/0.8694, allocations: 4 kB / 1.027 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002568/0.8696, allocations: 51.7 kB / 1.027 GB, free: 12.56 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.8698, allocations: 47.03 kB / 1.027 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.8698, allocations: 4 kB / 1.027 GB, free: 12.52 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.98e-05/0.8699, allocations: 121.1 kB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8699, allocations: 8 kB / 1.027 GB, free: 12.4 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002243/0.8701, allocations: 27.56 kB / 1.027 GB, free: 12.38 MB / 0.6511 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) * 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.0006522/0.8708, allocations: 0.8896 MB / 1.028 GB, free: 11.48 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002687/0.8711, allocations: 121.9 kB / 1.028 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.8711, allocations: 0 / 1.028 GB, free: 11.4 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.8712, allocations: 69 kB / 1.028 GB, free: 11.35 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.8715, allocations: 26.44 kB / 1.028 GB, free: 11.33 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006409/0.8721, allocations: 242.3 kB / 1.029 GB, free: 11.08 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002869/0.8724, allocations: 0.7088 MB / 1.029 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001009/0.8725, allocations: 25.31 kB / 1.029 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.56e-05/0.8726, allocations: 39.67 kB / 1.029 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of SimCode: time 4.31e-07/0.8726, allocations: 0 / 1.029 GB, free: 10.31 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0139/0.8865, allocations: 3.577 MB / 1.033 GB, free: 6.863 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.8868, allocations: 173.4 kB / 1.033 GB, free: 6.641 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.64/2.527, allocations: 0 / 1.033 GB, free: 6.641 MB / 0.6511 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)