Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") [: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.35/1.35, allocations: 289.8 MB / 297.1 MB, free: 6.629 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.001107/0.001107, allocations: 181.3 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.066/1.066, allocations: 205.1 MB / 0.6256 GB, free: 5.746 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.0008066/0.0008067, allocations: 89.45 kB / 0.7396 GB, free: 39.58 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.995e-06/8.015e-06, allocations: 4 kB / 0.859 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4296/0.4296, allocations: 116.3 MB / 0.9726 GB, free: 68.2 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.5752, allocations: 138.2 MB / 1.107 GB, free: 10.33 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001999/0.5755, allocations: 77.64 kB / 1.108 GB, free: 10.25 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.00648/0.5819, allocations: 2.149 MB / 1.11 GB, free: 8.125 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.682e-06/0.582, allocations: 0 / 1.11 GB, free: 8.125 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000425/0.5824, allocations: 370.3 kB / 1.11 GB, free: 7.719 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.5825, allocations: 8.031 kB / 1.11 GB, free: 7.711 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.611e-05/0.5825, allocations: 11.91 kB / 1.11 GB, free: 7.699 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.5826, allocations: 176.9 kB / 1.11 GB, free: 7.488 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.5827, allocations: 4.562 kB / 1.11 GB, free: 7.484 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.5827, allocations: 4 kB / 1.11 GB, free: 7.48 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.338e-05/0.5828, allocations: 16 kB / 1.11 GB, free: 7.465 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.849e-05/0.5828, allocations: 46.53 kB / 1.11 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.5828, allocations: 0 / 1.11 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.078e-05/0.5829, allocations: 7.984 kB / 1.11 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.5829, allocations: 0 / 1.11 GB, free: 7.406 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003485/0.5832, allocations: 281.2 kB / 1.111 GB, free: 7.094 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.711e-05/0.5833, allocations: 42.98 kB / 1.111 GB, free: 7.043 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.126e-05/0.5834, allocations: 12.98 kB / 1.111 GB, free: 7.027 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.5834, allocations: 4 kB / 1.111 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.311e-05/0.5835, allocations: 69.34 kB / 1.111 GB, free: 6.945 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.5835, allocations: 4 kB / 1.111 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0001694/0.5836, allocations: 65.59 kB / 1.111 GB, free: 6.871 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.5837, allocations: 55.41 kB / 1.111 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.108e-05/0.5838, allocations: 111.8 kB / 1.111 GB, free: 6.691 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/0.5838, allocations: 25.7 kB / 1.111 GB, free: 6.66 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 3.822e-05/0.5838, allocations: 92.03 kB / 1.111 GB, free: 6.566 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.5839, allocations: 15.75 kB / 1.111 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-06/0.5839, allocations: 0 / 1.111 GB, free: 6.551 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.584, allocations: 326.8 kB / 1.111 GB, free: 6.223 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.382e-05/0.584, allocations: 12 kB / 1.111 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.355e-05/0.5841, allocations: 54.02 kB / 1.111 GB, free: 6.137 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.5844, allocations: 55.88 kB / 1.111 GB, free: 6.082 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.5844, allocations: 4 kB / 1.111 GB, free: 6.078 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003363/0.5847, allocations: 125.5 kB / 1.112 GB, free: 5.949 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.918e-06/0.5847, allocations: 4 kB / 1.112 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.5848, allocations: 0.5625 kB / 1.112 GB, free: 5.945 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.5848, allocations: 4 kB / 1.112 GB, free: 5.941 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.5849, allocations: 19.98 kB / 1.112 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5849, allocations: 0 / 1.112 GB, free: 5.922 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.21e-05/0.585, allocations: 24.02 kB / 1.112 GB, free: 5.898 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.379e-05/0.585, allocations: 5.125 kB / 1.112 GB, free: 5.895 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 6.653e-05/0.5851, allocations: 110.6 kB / 1.112 GB, free: 5.781 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/0.5851, allocations: 7.906 kB / 1.112 GB, free: 5.773 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.965e-05/0.5852, allocations: 12.36 kB / 1.112 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.5852, allocations: 0 / 1.112 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.5852, allocations: 0 / 1.112 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.5852, allocations: 0.8438 kB / 1.112 GB, free: 5.758 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002763/0.5855, allocations: 329.4 kB / 1.112 GB, free: 5.395 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.5855, allocations: 0 / 1.112 GB, free: 5.395 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.625e-05/0.5856, allocations: 11.98 kB / 1.112 GB, free: 5.383 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.5856, allocations: 7.906 kB / 1.112 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.5856, allocations: 0 / 1.112 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.5856, allocations: 0 / 1.112 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.5856, allocations: 4 kB / 1.112 GB, free: 5.371 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001267/0.5857, allocations: 163.4 kB / 1.112 GB, free: 5.195 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.5858, allocations: 86.05 kB / 1.112 GB, free: 5.094 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.561e-05/0.5858, allocations: 0 / 1.112 GB, free: 5.094 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.467e-05/0.5859, allocations: 11.98 kB / 1.112 GB, free: 5.082 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/0.5859, allocations: 7.984 kB / 1.112 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.5859, allocations: 7.938 kB / 1.112 GB, free: 5.066 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.643e-05/0.586, allocations: 91.28 kB / 1.112 GB, free: 4.977 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002319/0.5862, allocations: 19.94 kB / 1.112 GB, free: 4.957 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.000146/0.5864, allocations: 107.2 kB / 1.113 GB, free: 4.844 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001105/0.5865, allocations: 51.92 kB / 1.113 GB, free: 4.793 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.5865, allocations: 448 / 1.113 GB, free: 4.793 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.818e-05/0.5866, allocations: 20 kB / 1.113 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00018/0.5868, allocations: 13.22 kB / 1.113 GB, free: 4.762 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002441/0.587, allocations: 99.61 kB / 1.113 GB, free: 4.637 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002555/0.5873, allocations: 0.7075 MB / 1.113 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/0.5873, allocations: 0 / 1.113 GB, free: 3.902 MB / 0.7136 GB Notification: Performance of Templates: time 0.002681/0.59, allocations: 0.9109 MB / 1.114 GB, free: 3.027 MB / 0.7136 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)