Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.735/2.735, allocations: 253.1 MB / 260.4 MB, free: 7.535 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001704/0.001704, allocations: 193.2 kB / 319.6 MB, free: 3.316 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.178/2.178, allocations: 205.4 MB / 0.5704 GB, free: 15.13 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001416/0.001416, allocations: 84.97 kB / 0.6746 GB, free: 4.492 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.564e-05/1.584e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2619, allocations: 106.3 MB / 0.8881 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8702/1.132, allocations: 131.6 MB / 1.017 GB, free: 6.699 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003353/1.133, allocations: 74.27 kB / 1.017 GB, free: 6.66 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002945/1.136, allocations: 457.8 kB / 1.017 GB, free: 6.273 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.869e-06/1.136, allocations: 0 / 1.017 GB, free: 6.273 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.0005781/1.136, allocations: 345.3 kB / 1.017 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.117e-05/1.136, allocations: 8.031 kB / 1.017 GB, free: 5.887 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.006e-05/1.136, allocations: 3.906 kB / 1.017 GB, free: 5.883 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/1.137, allocations: 174.4 kB / 1.018 GB, free: 5.676 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/1.137, allocations: 0 / 1.018 GB, free: 5.676 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/1.137, allocations: 4 kB / 1.018 GB, free: 5.672 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.754e-05/1.137, allocations: 11 kB / 1.018 GB, free: 5.664 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/1.137, allocations: 36.88 kB / 1.018 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/1.137, allocations: 3.938 kB / 1.018 GB, free: 5.621 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.903e-05/1.137, allocations: 7.906 kB / 1.018 GB, free: 5.613 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/1.137, allocations: 4 kB / 1.018 GB, free: 5.609 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005075/1.138, allocations: 240.2 kB / 1.018 GB, free: 5.352 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.541e-05/1.138, allocations: 29.61 kB / 1.018 GB, free: 5.316 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.028e-05/1.138, allocations: 11.98 kB / 1.018 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/1.138, allocations: 0 / 1.018 GB, free: 5.305 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/1.138, allocations: 65.77 kB / 1.018 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 2.194e-06/1.138, allocations: 0 / 1.018 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0002179/1.138, allocations: 49.48 kB / 1.018 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/1.138, allocations: 55.41 kB / 1.018 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/1.138, allocations: 100.3 kB / 1.018 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/1.138, allocations: 29.7 kB / 1.018 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.665e-05/1.138, allocations: 83.33 kB / 1.018 GB, free: 4.902 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/1.138, allocations: 3.906 kB / 1.018 GB, free: 4.898 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-06/1.138, allocations: 4 kB / 1.018 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001615/1.139, allocations: 321.8 kB / 1.019 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.452e-05/1.139, allocations: 7.688 kB / 1.019 GB, free: 4.57 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.996e-05/1.139, allocations: 21.77 kB / 1.019 GB, free: 4.543 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.7e-05/1.139, allocations: 12.09 kB / 1.019 GB, free: 4.535 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/1.139, allocations: 3.938 kB / 1.019 GB, free: 4.531 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001582/1.139, allocations: 57.28 kB / 1.019 GB, free: 4.473 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/1.139, allocations: 6.344 kB / 1.019 GB, free: 4.469 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/1.139, allocations: 4 kB / 1.019 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/1.139, allocations: 0 / 1.019 GB, free: 4.465 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/1.139, allocations: 20.67 kB / 1.019 GB, free: 4.449 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/1.139, allocations: 4 kB / 1.019 GB, free: 4.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/1.139, allocations: 12.09 kB / 1.019 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/1.139, allocations: 0 / 1.019 GB, free: 4.434 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.0001269/1.14, allocations: 116.8 kB / 1.019 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/1.14, allocations: 0 / 1.019 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.992e-05/1.14, allocations: 4 kB / 1.019 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/1.14, allocations: 7.906 kB / 1.019 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.535e-06/1.14, allocations: 128 / 1.019 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/1.14, allocations: 4 kB / 1.019 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005505/1.14, allocations: 282.3 kB / 1.019 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/1.14, allocations: 3.984 kB / 1.019 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/1.141, allocations: 8 kB / 1.019 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/1.141, allocations: 0 / 1.019 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.038e-05/1.141, allocations: 4 kB / 1.019 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.286e-06/1.141, allocations: 0 / 1.019 GB, free: 3.973 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5e-06/1.141, allocations: 6.625 kB / 1.019 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000223/1.141, allocations: 152.9 kB / 1.019 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.441e-05/1.141, allocations: 81.05 kB / 1.019 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/1.141, allocations: 0 / 1.019 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/1.141, allocations: 15.89 kB / 1.019 GB, free: 3.699 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/1.141, allocations: 8 kB / 1.019 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/1.141, allocations: 0 / 1.019 GB, free: 3.691 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.947e-05/1.141, allocations: 82.53 kB / 1.02 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003184/1.142, allocations: 11.94 kB / 1.02 GB, free: 3.602 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.0001902/1.142, allocations: 99.23 kB / 1.02 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001618/1.142, allocations: 22.81 kB / 1.02 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/1.142, allocations: 0 / 1.02 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.712e-05/1.142, allocations: 19.81 kB / 1.02 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/1.142, allocations: 4 kB / 1.02 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000368/1.143, allocations: 82.17 kB / 1.02 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004045/1.143, allocations: 0.6876 MB / 1.02 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of SimCode: time 1.533e-06/1.143, allocations: 0 / 1.02 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of Templates: time 0.003887/1.147, allocations: 0.536 MB / 1.021 GB, free: 2.133 MB / 0.6355 GB