Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Discrete.Examples.Sampler,fileNamePrefix="Buildings_maint_7_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_7_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 7.0.3-maint.7.0.x/package.mo): time 1.354/1.354, 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.001065/0.001065, allocations: 177.3 kB / 326.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.986/1.986, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0009417/0.0009419, allocations: 90.11 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003609, allocations: 9.312 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2684, allocations: 106.3 MB / 0.9002 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1861/0.4547, allocations: 131.7 MB / 1.029 GB, free: 12 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002777/0.455, allocations: 63.97 kB / 1.029 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002619/0.4576, allocations: 0.8761 MB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.808e-06/0.4576, allocations: 4 kB / 1.03 GB, free: 11.05 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.215e-05/0.4577, allocations: 0 / 1.03 GB, free: 11.05 MB / 0.6823 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.0005863/0.4583, allocations: 371 kB / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.798e-05/0.4583, allocations: 8.031 kB / 1.03 GB, free: 10.63 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.086e-05/0.4584, allocations: 38.55 kB / 1.03 GB, free: 10.59 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.527e-05/0.4584, allocations: 4 kB / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.4586, allocations: 178.9 kB / 1.03 GB, free: 10.37 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.4586, allocations: 3.984 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.777e-05/0.4587, allocations: 4 kB / 1.03 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.4589, allocations: 65.66 kB / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.4589, allocations: 0 / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.459, allocations: 0 / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.459, allocations: 4 kB / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.4592, allocations: 55.95 kB / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005133/0.4597, allocations: 272.7 kB / 1.031 GB, free: 9.914 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.4599, allocations: 66.55 kB / 1.031 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.4599, allocations: 0 / 1.031 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/0.4602, allocations: 79.5 kB / 1.031 GB, free: 9.75 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 2.275e-06/0.4602, allocations: 0 / 1.031 GB, free: 9.75 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0004424/0.4607, allocations: 141.6 kB / 1.031 GB, free: 9.605 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.792e-05/0.4607, allocations: 55.41 kB / 1.031 GB, free: 9.539 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.738e-05/0.4609, allocations: 104.9 kB / 1.031 GB, free: 9.43 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.4609, allocations: 25.7 kB / 1.031 GB, free: 9.398 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.096e-05/0.461, allocations: 88.05 kB / 1.031 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.461, allocations: 11.97 kB / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.461, allocations: 4 kB / 1.031 GB, free: 9.293 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.4612, allocations: 314.8 kB / 1.031 GB, free: 8.977 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.4613, allocations: 31.98 kB / 1.032 GB, free: 8.945 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.4614, allocations: 55.41 kB / 1.032 GB, free: 8.879 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001135/0.4615, allocations: 31.98 kB / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4615, allocations: 0 / 1.032 GB, free: 8.848 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002746/0.4618, allocations: 117.5 kB / 1.032 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.4619, allocations: 12 kB / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.4619, allocations: 0 / 1.032 GB, free: 8.715 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.4619, allocations: 3.938 kB / 1.032 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.462, allocations: 15.98 kB / 1.032 GB, free: 8.695 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.462, allocations: 4 kB / 1.032 GB, free: 8.691 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.49e-05/0.4621, allocations: 19.92 kB / 1.032 GB, free: 8.672 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.617e-06/0.4621, allocations: 3.953 kB / 1.032 GB, free: 8.668 MB / 0.6823 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 0.0001026/0.4622, allocations: 122.5 kB / 1.032 GB, free: 8.539 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.723e-05/0.4622, allocations: 7.906 kB / 1.032 GB, free: 8.531 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002968/0.4625, allocations: 110 kB / 1.032 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4626, allocations: 0 / 1.032 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.788e-06/0.4626, allocations: 4 kB / 1.032 GB, free: 8.418 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.4626, allocations: 3.938 kB / 1.032 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000472/0.4631, allocations: 362.5 kB / 1.032 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.4631, allocations: 0 / 1.032 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.846e-05/0.4632, allocations: 15.98 kB / 1.032 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.4632, allocations: 4 kB / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.4632, allocations: 0 / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4632, allocations: 0 / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4632, allocations: 0.625 kB / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003085/0.4635, allocations: 211.5 kB / 1.033 GB, free: 7.762 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.11e-05/0.4636, allocations: 85.02 kB / 1.033 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.4636, allocations: 4 kB / 1.033 GB, free: 7.656 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.4637, allocations: 11.98 kB / 1.033 GB, free: 7.645 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.621e-05/0.4638, allocations: 4 kB / 1.033 GB, free: 7.641 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.4638, allocations: 3.984 kB / 1.033 GB, free: 7.637 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.018e-05/0.4638, allocations: 95.23 kB / 1.033 GB, free: 7.543 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4638, allocations: 0 / 1.033 GB, free: 7.543 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002191/0.4641, allocations: 8 kB / 1.033 GB, free: 7.535 MB / 0.6823 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.0006714/0.4648, allocations: 0.7397 MB / 1.033 GB, free: 6.766 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002643/0.465, allocations: 64.08 kB / 1.034 GB, free: 6.703 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.465, allocations: 4.062 kB / 1.034 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.4652, allocations: 39.91 kB / 1.034 GB, free: 6.66 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001842/0.4654, allocations: 8 kB / 1.034 GB, free: 6.652 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000815/0.4662, allocations: 0.8033 MB / 1.034 GB, free: 5.785 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.4665, allocations: 0.687 MB / 1.035 GB, free: 5.074 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.1e-05/0.4666, allocations: 8.172 kB / 1.035 GB, free: 5.062 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.4666, allocations: 15.44 kB / 1.035 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of SimCode: time 2.3e-07/0.4666, allocations: 0 / 1.035 GB, free: 5.047 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0118/0.4784, allocations: 1.312 MB / 1.036 GB, free: 3.883 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001627/0.4786, allocations: 188.1 kB / 1.037 GB, free: 3.645 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.483/1.961, allocations: 1.5 kB / 1.037 GB, free: 3.645 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)