Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.664/1.664, allocations: 288.2 MB / 303.2 MB, free: 8.145 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001169/0.001169, allocations: 167.1 kB / 371.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.683/1.683, allocations: 205.4 MB / 0.6305 GB, free: 10.02 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009121/0.0009121, allocations: 94.3 kB / 0.7439 GB, free: 5.945 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004454/0.0004453, allocations: 15.25 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2204, allocations: 115.3 MB / 0.9795 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6164/0.8369, allocations: 138 MB / 1.114 GB, free: 16.43 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000199/0.8371, allocations: 68.77 kB / 1.114 GB, free: 16.43 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003309/0.8404, allocations: 1.093 MB / 1.115 GB, free: 32.08 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.633e-06/0.8405, allocations: 0 / 1.115 GB, free: 32.08 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.03e-05/0.8405, allocations: 0 / 1.115 GB, free: 32.08 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004291/0.8409, allocations: 386.9 kB / 1.116 GB, free: 31.71 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.841, allocations: 11.67 kB / 1.116 GB, free: 31.7 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.289e-05/0.841, allocations: 34.31 kB / 1.116 GB, free: 31.66 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.492e-05/0.841, allocations: 3.812 kB / 1.116 GB, free: 31.66 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.368e-05/0.8411, allocations: 171.1 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.8411, allocations: 3.875 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.145e-05/0.8411, allocations: 3.812 kB / 1.116 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.8413, allocations: 75.16 kB / 1.116 GB, free: 31.42 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-06/0.8413, allocations: 0 / 1.116 GB, free: 31.42 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.8414, allocations: 0 / 1.116 GB, free: 31.42 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.8414, allocations: 3.844 kB / 1.116 GB, free: 31.42 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.8416, allocations: 50.12 kB / 1.116 GB, free: 31.42 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003636/0.8419, allocations: 276.7 kB / 1.116 GB, free: 31.15 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.8421, allocations: 65.8 kB / 1.116 GB, free: 31.12 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.8421, allocations: 3.438 kB / 1.116 GB, free: 31.12 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001824/0.8423, allocations: 81.61 kB / 1.116 GB, free: 31.07 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.443e-06/0.8423, allocations: 0 / 1.116 GB, free: 31.07 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0004129/0.8427, allocations: 143.4 kB / 1.117 GB, free: 31.03 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.8428, allocations: 51.41 kB / 1.117 GB, free: 30.96 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.988e-05/0.8428, allocations: 99.39 kB / 1.117 GB, free: 30.88 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.8429, allocations: 25.7 kB / 1.117 GB, free: 30.84 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.023e-05/0.8429, allocations: 90.59 kB / 1.117 GB, free: 30.76 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.8429, allocations: 16.84 kB / 1.117 GB, free: 30.75 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-06/0.8429, allocations: 0 / 1.117 GB, free: 30.75 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.843, allocations: 332.1 kB / 1.117 GB, free: 30.43 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.782e-05/0.8431, allocations: 24.83 kB / 1.117 GB, free: 30.43 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.604e-05/0.8433, allocations: 51.66 kB / 1.117 GB, free: 30.4 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.892e-05/0.8434, allocations: 35.92 kB / 1.117 GB, free: 30.39 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.8434, allocations: 0 / 1.117 GB, free: 30.39 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002412/0.8436, allocations: 118.6 kB / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.8436, allocations: 9.156 kB / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.187e-06/0.8436, allocations: 3.938 kB / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.8437, allocations: 3.875 kB / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.8438, allocations: 17.16 kB / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.8438, allocations: 0 / 1.117 GB, free: 30.35 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.185e-05/0.8439, allocations: 18.94 kB / 1.117 GB, free: 30.34 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.8439, allocations: 7.906 kB / 1.117 GB, free: 30.34 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.849e-05/0.844, allocations: 118.4 kB / 1.118 GB, free: 30.22 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.844, allocations: 3.938 kB / 1.118 GB, free: 30.21 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002672/0.8442, allocations: 119.6 kB / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.8443, allocations: 0 / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.8443, allocations: 0 / 1.118 GB, free: 30.18 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.8443, allocations: 4.031 kB / 1.118 GB, free: 30.17 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003822/0.8447, allocations: 366.8 kB / 1.118 GB, free: 29.87 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.8447, allocations: 0 / 1.118 GB, free: 29.87 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.453e-05/0.8447, allocations: 17.48 kB / 1.118 GB, free: 29.87 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.8448, allocations: 0 / 1.118 GB, free: 29.87 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.8448, allocations: 0 / 1.118 GB, free: 29.87 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.8448, allocations: 0 / 1.118 GB, free: 29.87 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.8448, allocations: 0.6875 kB / 1.118 GB, free: 29.87 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000259/0.845, allocations: 211.4 kB / 1.118 GB, free: 29.73 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 2.844e-05/0.8451, allocations: 77.11 kB / 1.118 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.8451, allocations: 4.312 kB / 1.118 GB, free: 29.63 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.8452, allocations: 20.98 kB / 1.118 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.8453, allocations: 3.812 kB / 1.118 GB, free: 29.62 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.8453, allocations: 3.172 kB / 1.118 GB, free: 29.62 MB / 0.698 GB Notification: Performance of sorting global known variables: time 4.148e-05/0.8453, allocations: 85.78 kB / 1.118 GB, free: 29.55 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8453, allocations: 0 / 1.118 GB, free: 29.55 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002366/0.8456, allocations: 26.86 kB / 1.118 GB, free: 29.54 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005574/0.8461, allocations: 0.7436 MB / 1.119 GB, free: 28.88 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002422/0.8464, allocations: 77.05 kB / 1.119 GB, free: 28.87 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.8464, allocations: 0 / 1.119 GB, free: 28.87 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001112/0.8465, allocations: 40 kB / 1.119 GB, free: 28.86 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002063/0.8467, allocations: 5.438 kB / 1.119 GB, free: 28.86 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007054/0.8474, allocations: 0.8194 MB / 1.12 GB, free: 28.05 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.8477, allocations: 0.6865 MB / 1.121 GB, free: 27.35 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.712e-05/0.8477, allocations: 5.719 kB / 1.121 GB, free: 27.35 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.391e-05/0.8478, allocations: 12.3 kB / 1.121 GB, free: 27.34 MB / 0.698 GB Notification: Performance of SimCode: time 2.61e-07/0.8478, allocations: 0 / 1.121 GB, free: 27.34 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0107/0.8585, allocations: 1.448 MB / 1.122 GB, free: 27.18 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001935/0.8587, allocations: 196.2 kB / 1.122 GB, free: 26.94 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.437/2.296, allocations: 3.844 kB / 1.122 GB, free: 26.94 MB / 0.698 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)