Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.37/1.37, allocations: 289.8 MB / 297.1 MB, free: 6.688 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.001021/0.001021, allocations: 181.3 kB / 366.3 MB, free: 2.016 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.063/1.063, allocations: 205.1 MB / 0.6256 GB, free: 5.875 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.0007932/0.0007932, allocations: 95.02 kB / 0.7395 GB, free: 39.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.195/0.1958, allocations: 122.4 MB / 0.8591 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4548/0.6506, allocations: 116.3 MB / 0.9727 GB, free: 68.21 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.7943, allocations: 138.6 MB / 1.108 GB, free: 9.957 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000182/0.7945, allocations: 77.64 kB / 1.108 GB, free: 9.883 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.006743/0.8013, allocations: 2.365 MB / 1.11 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.8013, allocations: 8 kB / 1.11 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.772e-05/0.8014, allocations: 7.906 kB / 1.11 GB, free: 7.473 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.8015, allocations: 170.9 kB / 1.111 GB, free: 7.266 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.8015, allocations: 5.125 kB / 1.111 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.497e-05/0.8016, allocations: 8 kB / 1.111 GB, free: 7.254 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.509e-05/0.8017, allocations: 24.98 kB / 1.111 GB, free: 7.23 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.8018, allocations: 57.62 kB / 1.111 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.8018, allocations: 0 / 1.111 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.8018, allocations: 0 / 1.111 GB, free: 7.168 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.8018, allocations: 4 kB / 1.111 GB, free: 7.164 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004722/0.8023, allocations: 313.2 kB / 1.111 GB, free: 6.82 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 9.061e-05/0.8024, allocations: 47.36 kB / 1.111 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.698e-05/0.8024, allocations: 16.98 kB / 1.111 GB, free: 6.746 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.8025, allocations: 4 kB / 1.111 GB, free: 6.742 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.374e-05/0.8026, allocations: 67.38 kB / 1.111 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 3.156e-06/0.8026, allocations: 0 / 1.111 GB, free: 6.664 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.0001828/0.8028, allocations: 81.53 kB / 1.111 GB, free: 6.578 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.8028, allocations: 55.34 kB / 1.111 GB, free: 6.512 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.874e-05/0.8029, allocations: 113 kB / 1.111 GB, free: 6.395 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/0.8029, allocations: 26.27 kB / 1.111 GB, free: 6.363 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.195e-05/0.803, allocations: 99.97 kB / 1.111 GB, free: 6.262 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.941e-05/0.803, allocations: 15.81 kB / 1.111 GB, free: 6.246 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.245e-05/0.803, allocations: 4 kB / 1.111 GB, free: 6.242 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.8031, allocations: 318.7 kB / 1.112 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.85e-05/0.8032, allocations: 36 kB / 1.112 GB, free: 5.887 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.61e-05/0.8033, allocations: 77.7 kB / 1.112 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002075/0.8035, allocations: 44.83 kB / 1.112 GB, free: 5.75 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.8035, allocations: 0 / 1.112 GB, free: 5.75 MB / 0.7136 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003546/0.8039, allocations: 149.4 kB / 1.112 GB, free: 5.598 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.8039, allocations: 8 kB / 1.112 GB, free: 5.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.8039, allocations: 3.984 kB / 1.112 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.8039, allocations: 1.5 kB / 1.112 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.8041, allocations: 24.73 kB / 1.112 GB, free: 5.562 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.324e-05/0.8041, allocations: 4.094 kB / 1.112 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002321/0.8043, allocations: 55.88 kB / 1.112 GB, free: 5.504 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/0.8044, allocations: 11.98 kB / 1.112 GB, free: 5.492 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 7.506e-05/0.8044, allocations: 108.9 kB / 1.112 GB, free: 5.379 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.502e-05/0.8045, allocations: 7.906 kB / 1.112 GB, free: 5.371 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001432/0.8046, allocations: 83.44 kB / 1.112 GB, free: 5.281 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.8046, allocations: 4 kB / 1.112 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.8046, allocations: 8.5 kB / 1.112 GB, free: 5.27 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.8046, allocations: 0 / 1.112 GB, free: 5.27 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000231/0.8049, allocations: 303.1 kB / 1.113 GB, free: 4.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.8049, allocations: 0.5625 kB / 1.113 GB, free: 4.93 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.817e-05/0.805, allocations: 16.03 kB / 1.113 GB, free: 4.914 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.805, allocations: 3.984 kB / 1.113 GB, free: 4.91 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.805, allocations: 4 kB / 1.113 GB, free: 4.906 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.805, allocations: 5.156 kB / 1.113 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.805, allocations: 0 / 1.113 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001563/0.8052, allocations: 182 kB / 1.113 GB, free: 4.711 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002627/0.8054, allocations: 0.5427 MB / 1.113 GB, free: 4.148 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.056e-05/0.8055, allocations: 85.02 kB / 1.113 GB, free: 4.047 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.8055, allocations: 4.672 kB / 1.113 GB, free: 4.043 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.8056, allocations: 8 kB / 1.114 GB, free: 4.035 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.8057, allocations: 8.547 kB / 1.114 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.232e-06/0.8057, allocations: 0 / 1.114 GB, free: 4.027 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.744e-05/0.8057, allocations: 95.27 kB / 1.114 GB, free: 3.934 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008494/0.8066, allocations: 28 kB / 1.114 GB, free: 3.906 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.000134/0.8067, allocations: 111.8 kB / 1.114 GB, free: 3.789 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001951/0.8069, allocations: 109.6 kB / 1.114 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.8069, allocations: 0 / 1.114 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.914e-05/0.807, allocations: 28 kB / 1.114 GB, free: 3.648 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.8072, allocations: 12.55 kB / 1.114 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002931/0.8075, allocations: 103.8 kB / 1.114 GB, free: 3.512 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002756/0.8078, allocations: 0.7075 MB / 1.115 GB, free: 2.777 MB / 0.7136 GB Notification: Performance of SimCode: time 2.71e-07/0.8078, allocations: 1.031 kB / 1.115 GB, free: 2.777 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)