Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_0_0_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_0_0_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.0/package.mo): time 2.391/2.391, allocations: 284.9 MB / 292.4 MB, free: 10.55 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.001478/0.001478, allocations: 176.9 kB / 360.6 MB, free: 7.324 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.31/2.31, allocations: 205.3 MB / 0.6191 GB, free: 12.24 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.000995/0.0009947, allocations: 95.95 kB / 0.7321 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.234e-05/3.233e-05, allocations: 8 kB / 0.8509 GB, free: 3.371 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8634/0.8635, allocations: 115.3 MB / 0.9634 GB, free: 78.65 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2942/1.158, allocations: 137.1 MB / 1.097 GB, free: 3.414 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002517/1.158, allocations: 72.7 kB / 1.097 GB, free: 3.344 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.004989/1.163, allocations: 1.085 MB / 1.098 GB, free: 2.285 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.493e-06/1.163, allocations: 1.156 kB / 1.098 GB, free: 2.285 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.155e-06/1.163, allocations: 0 / 1.098 GB, free: 2.285 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.0006349/1.164, allocations: 364.5 kB / 1.099 GB, free: 1.887 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/1.164, allocations: 12.03 kB / 1.099 GB, free: 1.875 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.98e-05/1.164, allocations: 6.188 kB / 1.099 GB, free: 1.871 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000145/1.164, allocations: 174.9 kB / 1.099 GB, free: 1.66 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/1.164, allocations: 0.8438 kB / 1.099 GB, free: 1.66 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.27e-05/1.164, allocations: 4 kB / 1.099 GB, free: 1.656 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001124/1.164, allocations: 12.5 kB / 1.099 GB, free: 1.645 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/1.164, allocations: 54.27 kB / 1.099 GB, free: 1.586 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/1.164, allocations: 1.312 kB / 1.099 GB, free: 1.586 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/1.164, allocations: 0.625 kB / 1.099 GB, free: 1.586 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/1.164, allocations: 0 / 1.099 GB, free: 1.586 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005726/1.165, allocations: 259.4 kB / 1.099 GB, free: 1.297 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001676/1.165, allocations: 39.2 kB / 1.099 GB, free: 1.25 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.422e-05/1.165, allocations: 17.48 kB / 1.099 GB, free: 1.23 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.744e-05/1.165, allocations: 0.5625 kB / 1.099 GB, free: 1.23 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002409/1.166, allocations: 72.14 kB / 1.099 GB, free: 1.156 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 5.62e-06/1.166, allocations: 0 / 1.099 GB, free: 1.156 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0004205/1.166, allocations: 70.16 kB / 1.099 GB, free: 1.082 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/1.166, allocations: 52.12 kB / 1.099 GB, free: 1.02 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/1.166, allocations: 101.5 kB / 1.1 GB, free: 0.9141 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.609e-05/1.166, allocations: 26.77 kB / 1.1 GB, free: 0.8828 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.559e-05/1.167, allocations: 92.03 kB / 1.1 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/1.167, allocations: 11.84 kB / 1.1 GB, free: 0.7773 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.119e-05/1.167, allocations: 0.7188 kB / 1.1 GB, free: 0.7773 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002284/1.167, allocations: 319.5 kB / 1.1 GB, free: 468 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.187e-05/1.167, allocations: 8 kB / 1.1 GB, free: 460 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/1.167, allocations: 44.3 kB / 1.1 GB, free: 408 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/1.167, allocations: 24.8 kB / 1.1 GB, free: 388 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/1.168, allocations: 4 kB / 1.1 GB, free: 384 kB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004969/1.168, allocations: 82.81 kB / 1.1 GB, free: 296 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/1.168, allocations: 11.31 kB / 1.1 GB, free: 288 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/1.168, allocations: 0 / 1.1 GB, free: 288 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/1.168, allocations: 0 / 1.1 GB, free: 288 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002776/1.168, allocations: 23.92 kB / 1.1 GB, free: 264 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/1.168, allocations: 0 / 1.1 GB, free: 264 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/1.169, allocations: 8 kB / 1.1 GB, free: 256 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/1.169, allocations: 4.984 kB / 1.1 GB, free: 252 kB / 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 () * 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.0001713/1.169, allocations: 116.7 kB / 1.1 GB, free: 128 kB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003321/1.169, allocations: 72.03 kB / 1.1 GB, free: 52 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/1.169, allocations: 4 kB / 1.1 GB, free: 48 kB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004018/1.17, allocations: 74.3 kB / 1.1 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/1.17, allocations: 0 / 1.1 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/1.17, allocations: 0 / 1.1 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/1.17, allocations: 4 kB / 1.1 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007271/1.171, allocations: 313.8 kB / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/1.171, allocations: 0 / 1.101 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002079/1.171, allocations: 11.98 kB / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-06/1.171, allocations: 0 / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/1.171, allocations: 4 kB / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/1.171, allocations: 0 / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.171, allocations: 3.047 kB / 1.101 GB, free: 15.6 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/1.171, allocations: 175.5 kB / 1.101 GB, free: 15.41 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.098e-05/1.171, allocations: 77.11 kB / 1.101 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/1.172, allocations: 0 / 1.101 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003154/1.172, allocations: 14.14 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.21e-05/1.172, allocations: 7.938 kB / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/1.172, allocations: 0 / 1.101 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.000104/1.172, allocations: 94.22 kB / 1.101 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.01e-07/1.172, allocations: 7.938 kB / 1.101 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008301/1.173, allocations: 19.91 kB / 1.101 GB, free: 15.18 MB / 0.7136 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 () * 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.001099/1.174, allocations: 0.7007 MB / 1.102 GB, free: 14.45 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003008/1.174, allocations: 35.94 kB / 1.102 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.174, allocations: 192 / 1.102 GB, free: 14.42 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000142/1.175, allocations: 20 kB / 1.102 GB, free: 14.4 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004802/1.175, allocations: 14.62 kB / 1.102 GB, free: 14.39 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007748/1.176, allocations: 115.8 kB / 1.102 GB, free: 14.24 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005042/1.176, allocations: 0.6846 MB / 1.103 GB, free: 13.53 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 8.906e-05/1.177, allocations: 1.438 kB / 1.103 GB, free: 13.53 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/1.177, allocations: 19.42 kB / 1.103 GB, free: 13.51 MB / 0.7136 GB Notification: Performance of SimCode: time 1.653e-06/1.177, allocations: 7.844 kB / 1.103 GB, free: 13.5 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/1.215, allocations: 1.125 MB / 1.104 GB, free: 12.42 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003855/1.215, allocations: 148.2 kB / 1.104 GB, free: 12.23 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.393/3.608, allocations: 0 / 1.104 GB, free: 12.23 MB / 0.7136 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)