Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.821/1.821, allocations: 292.6 MB / 307.5 MB, free: 5.164 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.001202/0.001202, allocations: 180 kB / 377.1 MB, free: 1.527 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.524/1.524, allocations: 205.4 MB / 0.6366 GB, free: 8.648 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008768/0.0008767, allocations: 87.94 kB / 0.7509 GB, free: 63.06 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003141/0.000314, allocations: 12 kB / 0.8749 GB, free: 11.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2325, allocations: 116.3 MB / 0.9884 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6241/0.8566, allocations: 138.9 MB / 1.124 GB, free: 35.65 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/0.8569, allocations: 70.41 kB / 1.124 GB, free: 35.59 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003157/0.8601, allocations: 1.095 MB / 1.125 GB, free: 34.75 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.034e-06/0.8601, allocations: 0 / 1.125 GB, free: 34.75 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.233e-06/0.8601, allocations: 0 / 1.125 GB, free: 34.75 MB / 0.7292 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.0004561/0.8606, allocations: 374 kB / 1.126 GB, free: 34.35 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.8606, allocations: 16.56 kB / 1.126 GB, free: 34.33 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.848e-05/0.8607, allocations: 38.08 kB / 1.126 GB, free: 34.29 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.345e-05/0.8607, allocations: 6.625 kB / 1.126 GB, free: 34.29 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.37e-05/0.8608, allocations: 163 kB / 1.126 GB, free: 34.09 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.8609, allocations: 4.562 kB / 1.126 GB, free: 34.08 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.8609, allocations: 7.375 kB / 1.126 GB, free: 34.08 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002094/0.8611, allocations: 72.42 kB / 1.126 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.8611, allocations: 3.938 kB / 1.126 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.8612, allocations: 0 / 1.126 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.8612, allocations: 0 / 1.126 GB, free: 34.01 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.8614, allocations: 54.48 kB / 1.126 GB, free: 33.97 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004263/0.8618, allocations: 280.3 kB / 1.126 GB, free: 33.66 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.862, allocations: 60.02 kB / 1.126 GB, free: 33.61 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.427e-05/0.862, allocations: 0 / 1.126 GB, free: 33.61 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/0.8622, allocations: 82.55 kB / 1.126 GB, free: 33.52 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=6): time 1.703e-06/0.8622, allocations: 0 / 1.126 GB, free: 33.52 MB / 0.7292 GB Notification: Performance of matching and sorting (n=6): time 0.0004126/0.8626, allocations: 139.4 kB / 1.126 GB, free: 33.4 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.8627, allocations: 55.41 kB / 1.127 GB, free: 33.34 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.116e-05/0.8628, allocations: 96.42 kB / 1.127 GB, free: 33.24 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.8628, allocations: 29.7 kB / 1.127 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.176e-05/0.8628, allocations: 84.14 kB / 1.127 GB, free: 33.12 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.748e-05/0.8628, allocations: 19.22 kB / 1.127 GB, free: 33.1 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-06/0.8628, allocations: 0 / 1.127 GB, free: 33.1 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.909e-05/0.8629, allocations: 330.7 kB / 1.127 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.677e-05/0.863, allocations: 29.72 kB / 1.127 GB, free: 32.75 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.703e-05/0.8631, allocations: 50.88 kB / 1.127 GB, free: 32.7 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.972e-05/0.8632, allocations: 39.69 kB / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.8632, allocations: 4 kB / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002378/0.8635, allocations: 109 kB / 1.127 GB, free: 32.56 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.8635, allocations: 8 kB / 1.127 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.8635, allocations: 0 / 1.127 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.8635, allocations: 0 / 1.127 GB, free: 32.55 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.8637, allocations: 23.55 kB / 1.127 GB, free: 32.54 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.8637, allocations: 0 / 1.127 GB, free: 32.54 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.181e-05/0.8637, allocations: 19.47 kB / 1.127 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.8638, allocations: 2.453 kB / 1.127 GB, free: 32.52 MB / 0.7292 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 6.38e-05/0.8638, allocations: 117.8 kB / 1.127 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.15e-05/0.8639, allocations: 4 kB / 1.127 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002635/0.8641, allocations: 120.2 kB / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.8641, allocations: 1.453 kB / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.8641, allocations: 0 / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.8642, allocations: 4.875 kB / 1.128 GB, free: 32.29 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003553/0.8645, allocations: 371.1 kB / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.8645, allocations: 0 / 1.128 GB, free: 31.89 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.374e-05/0.8646, allocations: 15.36 kB / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.8646, allocations: 4 kB / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.8646, allocations: 0.9375 kB / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.8646, allocations: 0 / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.8646, allocations: 0 / 1.128 GB, free: 31.88 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002775/0.8649, allocations: 212.7 kB / 1.128 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.945e-05/0.865, allocations: 77.11 kB / 1.128 GB, free: 31.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.865, allocations: 0.8438 kB / 1.128 GB, free: 31.58 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.8651, allocations: 15.47 kB / 1.128 GB, free: 31.57 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.212e-05/0.8651, allocations: 11.42 kB / 1.128 GB, free: 31.56 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.8651, allocations: 4.562 kB / 1.128 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.487e-05/0.8652, allocations: 79.84 kB / 1.128 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8652, allocations: 0 / 1.128 GB, free: 31.48 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000235/0.8654, allocations: 27.22 kB / 1.128 GB, free: 31.45 MB / 0.7292 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.0004646/0.8659, allocations: 0.7501 MB / 1.129 GB, free: 30.7 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.00024/0.8661, allocations: 79.23 kB / 1.129 GB, free: 30.63 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.8662, allocations: 1.031 kB / 1.129 GB, free: 30.63 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.8663, allocations: 31.56 kB / 1.129 GB, free: 30.61 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001803/0.8665, allocations: 11.38 kB / 1.129 GB, free: 30.6 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005456/0.867, allocations: 0.8162 MB / 1.13 GB, free: 29.73 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000107/0.8671, allocations: 0.684 MB / 1.131 GB, free: 29.03 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.125e-05/0.8672, allocations: 5.438 kB / 1.131 GB, free: 29.02 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.8672, allocations: 14.95 kB / 1.131 GB, free: 29.02 MB / 0.7292 GB Notification: Performance of SimCode: time 3e-07/0.8672, allocations: 0 / 1.131 GB, free: 29.02 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01188/0.8791, allocations: 1.438 MB / 1.132 GB, free: 28.25 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.8793, allocations: 187 kB / 1.132 GB, free: 28.01 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.626/2.505, allocations: 0 / 1.132 GB, free: 28.01 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)