Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",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.234/1.234, allocations: 249.4 MB / 256.7 MB, free: 6.945 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.0009915/0.0009915, allocations: 184.4 kB / 316 MB, free: 3.543 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.111/1.111, allocations: 205.2 MB / 0.5667 GB, free: 15.63 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.0009095/0.0009097, allocations: 88.62 kB / 0.671 GB, free: 4.758 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3258/0.3267, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.4982, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4653/0.9636, allocations: 131.8 MB / 1.013 GB, free: 6.758 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.9638, allocations: 78.69 kB / 1.014 GB, free: 6.715 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.002124/0.966, allocations: 0.7738 MB / 1.014 GB, free: 5.965 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.966, allocations: 8 kB / 1.014 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.9661, allocations: 7.906 kB / 1.014 GB, free: 5.949 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.9662, allocations: 167 kB / 1.014 GB, free: 5.746 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.9662, allocations: 4 kB / 1.014 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.9662, allocations: 0 / 1.014 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.783e-05/0.9663, allocations: 15.44 kB / 1.014 GB, free: 5.73 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.763e-05/0.9664, allocations: 45.03 kB / 1.014 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.9664, allocations: 0 / 1.014 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.9664, allocations: 0 / 1.014 GB, free: 5.684 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.9664, allocations: 8.969 kB / 1.015 GB, free: 5.68 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003137/0.9668, allocations: 242.2 kB / 1.015 GB, free: 5.418 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 6.354e-05/0.9668, allocations: 25.95 kB / 1.015 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.808e-05/0.9669, allocations: 16.67 kB / 1.015 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.666e-05/0.9669, allocations: 0 / 1.015 GB, free: 5.371 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.841e-05/0.9669, allocations: 54.88 kB / 1.015 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.312e-06/0.967, allocations: 0 / 1.015 GB, free: 5.309 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001346/0.9671, allocations: 52.69 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.9671, allocations: 55.31 kB / 1.015 GB, free: 5.191 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.539e-05/0.9672, allocations: 104.9 kB / 1.015 GB, free: 5.086 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.9672, allocations: 28.44 kB / 1.015 GB, free: 5.055 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.364e-05/0.9673, allocations: 87.27 kB / 1.015 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.9673, allocations: 7.906 kB / 1.015 GB, free: 4.961 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.038e-06/0.9673, allocations: 4 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.759e-05/0.9674, allocations: 314.4 kB / 1.015 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.206e-05/0.9674, allocations: 11.81 kB / 1.015 GB, free: 4.637 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.168e-05/0.9675, allocations: 30.31 kB / 1.015 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.259e-05/0.9675, allocations: 4 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.9675, allocations: 0 / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.197e-05/0.9676, allocations: 68.09 kB / 1.016 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.9676, allocations: 4 kB / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.9676, allocations: 0 / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.9677, allocations: 0 / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.9678, allocations: 15.98 kB / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.9678, allocations: 0 / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.779e-05/0.9679, allocations: 16 kB / 1.016 GB, free: 4.496 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.9679, allocations: 0 / 1.016 GB, free: 4.496 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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.0001033/0.968, allocations: 105 kB / 1.016 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.968, allocations: 7.672 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.385e-05/0.968, allocations: 11.91 kB / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.968, allocations: 0 / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.968, allocations: 0 / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.9681, allocations: 0 / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002208/0.9683, allocations: 284.5 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.9683, allocations: 7.922 kB / 1.016 GB, free: 4.051 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.477e-05/0.9684, allocations: 8 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.9684, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.9684, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.9684, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.9684, allocations: 4 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001135/0.9685, allocations: 154 kB / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002179/0.9687, allocations: 0.5199 MB / 1.017 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.157e-05/0.9688, allocations: 81.05 kB / 1.017 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.9688, allocations: 4.094 kB / 1.017 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.274e-05/0.9689, allocations: 15.98 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.969, allocations: 3.984 kB / 1.017 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.969, allocations: 8.188 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.177e-05/0.969, allocations: 83.89 kB / 1.017 GB, free: 3.145 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0007523/0.9698, allocations: 4 kB / 1.017 GB, free: 3.141 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: 3 (samTri.y,$whenCondition1,triggeredSampler.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000116/0.9699, allocations: 110.4 kB / 1.017 GB, free: 3.027 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.8e-05/0.97, allocations: 26.56 kB / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.97, allocations: 0 / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.529e-05/0.97, allocations: 10.81 kB / 1.017 GB, free: 3 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001858/0.9702, allocations: 8.531 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002903/0.9705, allocations: 82.55 kB / 1.017 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.9708, allocations: 0.6956 MB / 1.018 GB, free: 2.176 MB / 0.6355 GB Notification: Performance of SimCode: time 5.51e-07/0.9708, allocations: 4 kB / 1.018 GB, free: 2.172 MB / 0.6355 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)