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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.363/1.363, allocations: 289.8 MB / 297.1 MB, free: 6.676 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.001048/0.001048, allocations: 188 kB / 366.3 MB, free: 1.945 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.071/1.071, allocations: 205.2 MB / 0.6256 GB, free: 5.785 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.0008683/0.0008682, allocations: 90.8 kB / 0.7395 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1997/0.2006, allocations: 122.4 MB / 0.8591 GB, free: 13.23 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4472/0.6478, allocations: 116.3 MB / 0.9727 GB, free: 68.41 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1393/0.7871, allocations: 138.1 MB / 1.108 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.7874, allocations: 71.95 kB / 1.108 GB, free: 10.32 MB / 0.7136 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.003296/0.7907, allocations: 1.144 MB / 1.109 GB, free: 9.148 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.7907, allocations: 8 kB / 1.109 GB, free: 9.141 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.237e-05/0.7907, allocations: 4 kB / 1.109 GB, free: 9.137 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.989e-05/0.7908, allocations: 174.9 kB / 1.109 GB, free: 8.926 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.7909, allocations: 4.656 kB / 1.109 GB, free: 8.922 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.7909, allocations: 7.984 kB / 1.109 GB, free: 8.914 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.444e-05/0.791, allocations: 20 kB / 1.109 GB, free: 8.895 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.22e-05/0.791, allocations: 45.69 kB / 1.109 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.791, allocations: 0 / 1.109 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.7911, allocations: 0 / 1.109 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.7911, allocations: 0 / 1.109 GB, free: 8.844 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002849/0.7914, allocations: 253.9 kB / 1.109 GB, free: 8.559 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.052e-05/0.7914, allocations: 42.56 kB / 1.109 GB, free: 8.508 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.166e-05/0.7915, allocations: 16.98 kB / 1.109 GB, free: 8.488 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.7915, allocations: 0 / 1.109 GB, free: 8.488 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.931e-05/0.7916, allocations: 59.39 kB / 1.109 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.7916, allocations: 0 / 1.109 GB, free: 8.418 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.000142/0.7917, allocations: 66.38 kB / 1.109 GB, free: 8.348 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.811e-05/0.7918, allocations: 55.39 kB / 1.109 GB, free: 8.281 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.884e-05/0.7918, allocations: 105 kB / 1.11 GB, free: 8.172 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.7919, allocations: 25.7 kB / 1.11 GB, free: 8.141 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.928e-05/0.7919, allocations: 84.05 kB / 1.11 GB, free: 8.055 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.979e-05/0.7919, allocations: 23.69 kB / 1.11 GB, free: 8.031 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-06/0.7919, allocations: 0 / 1.11 GB, free: 8.031 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.892e-05/0.792, allocations: 314.8 kB / 1.11 GB, free: 7.715 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.75e-05/0.792, allocations: 12.56 kB / 1.11 GB, free: 7.703 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.242e-05/0.7921, allocations: 41.23 kB / 1.11 GB, free: 7.652 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001332/0.7922, allocations: 26.56 kB / 1.11 GB, free: 7.629 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.7922, allocations: 0 / 1.11 GB, free: 7.629 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001859/0.7924, allocations: 85.5 kB / 1.11 GB, free: 7.539 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 8.586e-06/0.7924, allocations: 4 kB / 1.11 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.7925, allocations: 1.219 kB / 1.11 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.828e-06/0.7925, allocations: 8.094 kB / 1.11 GB, free: 7.527 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.7926, allocations: 19.92 kB / 1.11 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.7926, allocations: 0 / 1.11 GB, free: 7.508 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.371e-05/0.7927, allocations: 8 kB / 1.11 GB, free: 7.5 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.7927, allocations: 7.984 kB / 1.11 GB, free: 7.492 MB / 0.7136 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 5.824e-05/0.7928, allocations: 110.5 kB / 1.11 GB, free: 7.379 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.388e-05/0.7928, allocations: 3.906 kB / 1.11 GB, free: 7.375 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.7929, allocations: 70 kB / 1.11 GB, free: 7.297 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.7929, allocations: 0 / 1.11 GB, free: 7.297 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.7929, allocations: 0 / 1.11 GB, free: 7.297 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.793, allocations: 7.984 kB / 1.11 GB, free: 7.289 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002241/0.7932, allocations: 295.5 kB / 1.111 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.7932, allocations: 1.125 kB / 1.111 GB, free: 6.957 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.509e-05/0.7933, allocations: 15.98 kB / 1.111 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.7933, allocations: 48 / 1.111 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.7933, allocations: 15.83 kB / 1.111 GB, free: 6.926 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.7933, allocations: 0 / 1.111 GB, free: 6.926 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.7933, allocations: 0 / 1.111 GB, free: 6.926 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001177/0.7934, allocations: 159.5 kB / 1.111 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001882/0.7936, allocations: 0.5233 MB / 1.111 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.946e-05/0.7937, allocations: 85.09 kB / 1.111 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.628e-05/0.7937, allocations: 0 / 1.111 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.7938, allocations: 15.98 kB / 1.111 GB, free: 6.094 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.7939, allocations: 7.906 kB / 1.111 GB, free: 6.086 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.715e-06/0.7939, allocations: 4.562 kB / 1.111 GB, free: 6.082 MB / 0.7136 GB Notification: Performance of sort global known variables: time 3.067e-05/0.7939, allocations: 83.22 kB / 1.112 GB, free: 6 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008192/0.7947, allocations: 27.92 kB / 1.112 GB, free: 5.973 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.0001253/0.7949, allocations: 108.1 kB / 1.112 GB, free: 5.859 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001002/0.795, allocations: 39.92 kB / 1.112 GB, free: 5.82 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.795, allocations: 4.188 kB / 1.112 GB, free: 5.816 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 3.93e-05/0.795, allocations: 16 kB / 1.112 GB, free: 5.801 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001736/0.7952, allocations: 9.031 kB / 1.112 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002241/0.7954, allocations: 75.77 kB / 1.112 GB, free: 5.695 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.7957, allocations: 0.6997 MB / 1.112 GB, free: 4.969 MB / 0.7136 GB Notification: Performance of SimCode: time 3.01e-07/0.7957, allocations: 0 / 1.112 GB, free: 4.969 MB / 0.7136 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)