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"}) [: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.0.0/package.mo): time 2.215/2.215, allocations: 284.8 MB / 292.1 MB, free: 10.8 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.001564/0.001564, allocations: 181.3 kB / 360.3 MB, free: 7.582 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.665/1.665, allocations: 205.1 MB / 0.6187 GB, free: 13.26 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.001241/0.00124, allocations: 86.69 kB / 0.7317 GB, free: 2.41 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.2611/0.2624, allocations: 121.4 MB / 0.8502 GB, free: 8.891 MB / 0.6511 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.4991, allocations: 115.3 MB / 0.9628 GB, free: 5.492 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5457/1.045, allocations: 137 MB / 1.097 GB, free: 74.83 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/1.045, allocations: 68.72 kB / 1.097 GB, free: 74.76 MB / 0.7605 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.00486/1.05, allocations: 1.14 MB / 1.098 GB, free: 73.62 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/1.05, allocations: 12.44 kB / 1.098 GB, free: 73.61 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/1.05, allocations: 7.906 kB / 1.098 GB, free: 73.6 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.275e-05/1.05, allocations: 170.9 kB / 1.098 GB, free: 73.39 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/1.05, allocations: 8.812 kB / 1.098 GB, free: 73.39 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/1.05, allocations: 1.422 kB / 1.098 GB, free: 73.39 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.947e-05/1.05, allocations: 16 kB / 1.098 GB, free: 73.38 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/1.051, allocations: 50.33 kB / 1.098 GB, free: 73.32 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/1.051, allocations: 4 kB / 1.098 GB, free: 73.32 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/1.051, allocations: 0 / 1.098 GB, free: 73.32 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/1.051, allocations: 0 / 1.098 GB, free: 73.32 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003289/1.051, allocations: 253.8 kB / 1.098 GB, free: 73.04 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/1.051, allocations: 39.86 kB / 1.098 GB, free: 72.99 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.811e-05/1.051, allocations: 17.8 kB / 1.098 GB, free: 72.97 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/1.051, allocations: 1.219 kB / 1.098 GB, free: 72.97 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.137e-05/1.051, allocations: 60.09 kB / 1.098 GB, free: 72.9 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=6): time 1.764e-06/1.051, allocations: 0 / 1.098 GB, free: 72.9 MB / 0.7605 GB Notification: Performance of matching and sorting (n=6): time 0.000198/1.051, allocations: 68.78 kB / 1.098 GB, free: 72.83 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/1.051, allocations: 52.17 kB / 1.098 GB, free: 72.77 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.961e-05/1.052, allocations: 102 kB / 1.099 GB, free: 72.66 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/1.052, allocations: 25.7 kB / 1.099 GB, free: 72.63 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 2.523e-05/1.052, allocations: 88.05 kB / 1.099 GB, free: 72.54 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/1.052, allocations: 12.81 kB / 1.099 GB, free: 72.53 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-06/1.052, allocations: 0 / 1.099 GB, free: 72.53 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 5.637e-05/1.052, allocations: 323.5 kB / 1.099 GB, free: 72.2 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.048e-05/1.052, allocations: 16.94 kB / 1.099 GB, free: 72.19 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.54e-05/1.052, allocations: 34.34 kB / 1.099 GB, free: 72.14 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001942/1.052, allocations: 28.19 kB / 1.099 GB, free: 72.12 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/1.052, allocations: 0 / 1.099 GB, free: 72.12 MB / 0.7605 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002735/1.052, allocations: 83.56 kB / 1.099 GB, free: 72.04 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/1.052, allocations: 4 kB / 1.099 GB, free: 72.03 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/1.052, allocations: 3.906 kB / 1.099 GB, free: 72.03 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/1.052, allocations: 4.938 kB / 1.099 GB, free: 72.02 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/1.053, allocations: 26.77 kB / 1.099 GB, free: 72 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/1.053, allocations: 0 / 1.099 GB, free: 72 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/1.053, allocations: 11.98 kB / 1.099 GB, free: 71.99 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/1.053, allocations: 6.844 kB / 1.099 GB, free: 71.98 MB / 0.7605 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.965e-05/1.053, allocations: 105 kB / 1.099 GB, free: 71.88 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.567e-05/1.053, allocations: 3.906 kB / 1.099 GB, free: 71.87 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001661/1.053, allocations: 73.98 kB / 1.099 GB, free: 71.8 MB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.658e-06/1.053, allocations: 3.938 kB / 1.099 GB, free: 71.8 MB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/1.053, allocations: 0 / 1.099 GB, free: 71.8 MB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/1.053, allocations: 2.125 kB / 1.099 GB, free: 71.8 MB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/1.053, allocations: 297.6 kB / 1.1 GB, free: 71.46 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.053, allocations: 0 / 1.1 GB, free: 71.46 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/1.054, allocations: 15.92 kB / 1.1 GB, free: 71.45 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/1.054, allocations: 0 / 1.1 GB, free: 71.45 MB / 0.7605 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/1.054, allocations: 1.531 kB / 1.1 GB, free: 71.45 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/1.054, allocations: 4 kB / 1.1 GB, free: 71.45 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.054, allocations: 3.906 kB / 1.1 GB, free: 71.44 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001429/1.054, allocations: 153.5 kB / 1.1 GB, free: 71.28 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000189/1.054, allocations: 0.5331 MB / 1.1 GB, free: 70.73 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 2.57e-05/1.054, allocations: 83.12 kB / 1.1 GB, free: 70.63 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/1.054, allocations: 4.562 kB / 1.1 GB, free: 70.62 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/1.054, allocations: 14.14 kB / 1.1 GB, free: 70.61 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.518e-05/1.054, allocations: 3.938 kB / 1.1 GB, free: 70.61 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/1.054, allocations: 5.188 kB / 1.1 GB, free: 70.61 MB / 0.7605 GB Notification: Performance of sort global known variables: time 3.157e-05/1.054, allocations: 91.52 kB / 1.101 GB, free: 70.52 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.001128/1.055, allocations: 19.91 kB / 1.101 GB, free: 70.5 MB / 0.7605 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.0001476/1.056, allocations: 112.4 kB / 1.101 GB, free: 70.38 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.0001462/1.056, allocations: 40.91 kB / 1.101 GB, free: 70.34 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/1.056, allocations: 0 / 1.101 GB, free: 70.34 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 6.244e-05/1.056, allocations: 19.41 kB / 1.101 GB, free: 70.32 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002431/1.056, allocations: 6.969 kB / 1.101 GB, free: 70.32 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002913/1.056, allocations: 78.58 kB / 1.101 GB, free: 70.23 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/1.057, allocations: 0.7029 MB / 1.101 GB, free: 69.5 MB / 0.7605 GB Notification: Performance of SimCode: time 8.02e-07/1.057, allocations: 0 / 1.101 GB, free: 69.5 MB / 0.7605 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)