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"}) [: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 7.0.3-maint.7.0.x/package.mo): time 1.277/1.277, allocations: 249.4 MB / 256.7 MB, free: 7.055 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 196.3 kB / 316 MB, free: 3.566 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.144/1.144, allocations: 205.1 MB / 0.5667 GB, free: 15.73 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.0008833/0.0008833, allocations: 88.45 kB / 0.671 GB, free: 4.852 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3125/0.3134, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.4618, allocations: 106.3 MB / 0.8847 GB, free: 12.58 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4487/0.9105, allocations: 131.9 MB / 1.013 GB, free: 7.008 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.9107, allocations: 67.03 kB / 1.014 GB, free: 6.973 MB / 0.6355 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.002512/0.9132, allocations: 0.9298 MB / 1.014 GB, free: 6.09 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.9132, allocations: 8 kB / 1.014 GB, free: 6.078 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.9133, allocations: 7.906 kB / 1.014 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.815e-05/0.9134, allocations: 170.9 kB / 1.015 GB, free: 5.867 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.9134, allocations: 4 kB / 1.015 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.9134, allocations: 0 / 1.015 GB, free: 5.863 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.894e-05/0.9135, allocations: 14.69 kB / 1.015 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.197e-05/0.9136, allocations: 49.03 kB / 1.015 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-06/0.9136, allocations: 0 / 1.015 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.9136, allocations: 4 kB / 1.015 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.9136, allocations: 0 / 1.015 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002811/0.9139, allocations: 254.5 kB / 1.015 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.022e-05/0.914, allocations: 41.75 kB / 1.015 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.59e-05/0.914, allocations: 16.73 kB / 1.015 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.914, allocations: 0 / 1.015 GB, free: 5.469 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.875e-05/0.9141, allocations: 58.09 kB / 1.015 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.9141, allocations: 0 / 1.015 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001394/0.9143, allocations: 71.22 kB / 1.015 GB, free: 5.34 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.555e-05/0.9143, allocations: 51.41 kB / 1.015 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.958e-05/0.9144, allocations: 95.94 kB / 1.015 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.9144, allocations: 33.2 kB / 1.015 GB, free: 5.148 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.645e-05/0.9144, allocations: 90.8 kB / 1.015 GB, free: 5.059 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.591e-05/0.9144, allocations: 11.5 kB / 1.015 GB, free: 5.051 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.9145, allocations: 4 kB / 1.015 GB, free: 5.047 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.296e-05/0.9145, allocations: 310.8 kB / 1.016 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.102e-05/0.9146, allocations: 11.44 kB / 1.016 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.777e-05/0.9146, allocations: 47.11 kB / 1.016 GB, free: 4.676 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.625e-05/0.9147, allocations: 7.125 kB / 1.016 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.9147, allocations: 4 kB / 1.016 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001043/0.9148, allocations: 80.5 kB / 1.016 GB, free: 4.59 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 8.455e-06/0.9148, allocations: 8.094 kB / 1.016 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.9148, allocations: 0 / 1.016 GB, free: 4.582 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.876e-06/0.9148, allocations: 4 kB / 1.016 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.9149, allocations: 15.98 kB / 1.016 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.9149, allocations: 0 / 1.016 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.02e-05/0.915, allocations: 15.91 kB / 1.016 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.043e-06/0.915, allocations: 4 kB / 1.016 GB, free: 4.543 MB / 0.6355 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 8.322e-05/0.9151, allocations: 108.9 kB / 1.016 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.9151, allocations: 7.891 kB / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001155/0.9152, allocations: 68.44 kB / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.9153, allocations: 0 / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.9153, allocations: 0 / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.9153, allocations: 0 / 1.016 GB, free: 4.359 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002399/0.9155, allocations: 304 kB / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.9155, allocations: 0 / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.396e-05/0.9156, allocations: 11.94 kB / 1.016 GB, free: 4.023 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.9156, allocations: 3.938 kB / 1.016 GB, free: 4.02 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.277e-06/0.9156, allocations: 3.984 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.9156, allocations: 4 kB / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.9156, allocations: 0 / 1.016 GB, free: 4.012 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001172/0.9158, allocations: 161.8 kB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002147/0.916, allocations: 0.5267 MB / 1.017 GB, free: 3.32 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 2.927e-05/0.916, allocations: 85.52 kB / 1.017 GB, free: 3.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.916, allocations: 7.984 kB / 1.017 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.9162, allocations: 12 kB / 1.017 GB, free: 3.199 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.705e-05/0.9162, allocations: 3.984 kB / 1.017 GB, free: 3.195 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.9162, allocations: 8 kB / 1.017 GB, free: 3.188 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.145e-05/0.9162, allocations: 82.53 kB / 1.017 GB, free: 3.109 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007405/0.917, allocations: 8 kB / 1.017 GB, free: 3.102 MB / 0.6355 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.0001095/0.9171, allocations: 107.2 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.875e-05/0.9172, allocations: 37.81 kB / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.9172, allocations: 0 / 1.017 GB, free: 2.961 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.95e-05/0.9172, allocations: 18.81 kB / 1.017 GB, free: 2.949 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001623/0.9174, allocations: 7.906 kB / 1.017 GB, free: 2.941 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002178/0.9176, allocations: 82.5 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.9179, allocations: 0.696 MB / 1.018 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of SimCode: time 2.11e-07/0.9179, allocations: 4 kB / 1.018 GB, free: 2.117 MB / 0.6355 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)