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: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.475/1.475, allocations: 249.4 MB / 256.7 MB, free: 6.969 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.001123/0.001123, allocations: 180.3 kB / 316 MB, free: 3.52 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.168/1.168, allocations: 205.2 MB / 0.5667 GB, free: 15.59 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.0008829/0.0008829, allocations: 102.1 kB / 0.671 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.975e-06/8.005e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1658, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4882/0.654, allocations: 131.8 MB / 1.013 GB, free: 6.824 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.6544, allocations: 72.27 kB / 1.013 GB, free: 6.785 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.001916/0.6564, allocations: 455.5 kB / 1.014 GB, free: 6.41 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.147e-05/0.6564, allocations: 4 kB / 1.014 GB, free: 6.406 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.0004005/0.6568, allocations: 342 kB / 1.014 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.6568, allocations: 8.031 kB / 1.014 GB, free: 6.023 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.6569, allocations: 3.906 kB / 1.014 GB, free: 6.02 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.657, allocations: 175 kB / 1.014 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.6571, allocations: 0 / 1.014 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.6571, allocations: 4 kB / 1.014 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.66e-05/0.6572, allocations: 16.5 kB / 1.014 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.059e-05/0.6573, allocations: 41.23 kB / 1.014 GB, free: 5.75 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.6573, allocations: 7.984 kB / 1.014 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.6573, allocations: 0 / 1.014 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.6573, allocations: 0 / 1.014 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003581/0.6577, allocations: 236 kB / 1.015 GB, free: 5.484 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.006e-05/0.6577, allocations: 33.33 kB / 1.015 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.358e-05/0.6578, allocations: 16.11 kB / 1.015 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.6578, allocations: 0 / 1.015 GB, free: 5.434 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.986e-05/0.6579, allocations: 50.94 kB / 1.015 GB, free: 5.375 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.6579, allocations: 2.625 kB / 1.015 GB, free: 5.375 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001523/0.6581, allocations: 52.75 kB / 1.015 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.6581, allocations: 55.31 kB / 1.015 GB, free: 5.258 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.687e-05/0.6582, allocations: 96.25 kB / 1.015 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.6582, allocations: 29.69 kB / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.6582, allocations: 87.77 kB / 1.015 GB, free: 5.039 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.6583, allocations: 3.906 kB / 1.015 GB, free: 5.035 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-06/0.6583, allocations: 4 kB / 1.015 GB, free: 5.031 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.6584, allocations: 314.3 kB / 1.015 GB, free: 4.719 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.904e-05/0.6584, allocations: 11.38 kB / 1.015 GB, free: 4.711 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.259e-05/0.6585, allocations: 30 kB / 1.015 GB, free: 4.676 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.872e-05/0.6585, allocations: 12 kB / 1.015 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.6585, allocations: 0 / 1.015 GB, free: 4.664 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 8.618e-05/0.6586, allocations: 59.16 kB / 1.015 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.6586, allocations: 8 kB / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.6586, allocations: 0 / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.6587, allocations: 0 / 1.015 GB, free: 4.598 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.6588, allocations: 24.02 kB / 1.015 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.746e-06/0.6588, allocations: 0 / 1.015 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.502e-05/0.6589, allocations: 15.28 kB / 1.016 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.6589, allocations: 0 / 1.016 GB, free: 4.562 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 6.551e-05/0.6589, allocations: 105 kB / 1.016 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.027e-05/0.659, allocations: 0 / 1.016 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.057e-05/0.659, allocations: 19.83 kB / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.659, allocations: 4 kB / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.659, allocations: 0 / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.659, allocations: 0 / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.6592, allocations: 277.1 kB / 1.016 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.6593, allocations: 96 / 1.016 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.641e-05/0.6593, allocations: 11.98 kB / 1.016 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.6593, allocations: 11.98 kB / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.6594, allocations: 0 / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.6594, allocations: 0 / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.6594, allocations: 0 / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001143/0.6595, allocations: 154 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.378e-05/0.6595, allocations: 85.03 kB / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/0.6596, allocations: 7.906 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.494e-05/0.6597, allocations: 8 kB / 1.016 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.564e-05/0.6597, allocations: 7.984 kB / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.6597, allocations: 0 / 1.016 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.46e-05/0.6597, allocations: 83.47 kB / 1.016 GB, free: 3.742 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002078/0.66, allocations: 8 kB / 1.016 GB, free: 3.734 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.0001152/0.6601, allocations: 99.23 kB / 1.016 GB, free: 3.629 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 8.836e-05/0.6602, allocations: 30.88 kB / 1.016 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6602, allocations: 0 / 1.016 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.431e-05/0.6602, allocations: 11.62 kB / 1.016 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001873/0.6604, allocations: 4.547 kB / 1.016 GB, free: 3.594 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002342/0.6607, allocations: 82.59 kB / 1.016 GB, free: 3.496 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.6609, allocations: 0.6915 MB / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of SimCode: time 2.31e-07/0.661, allocations: 0 / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of Templates: time 0.002254/0.6632, allocations: 0.5469 MB / 1.018 GB, free: 2.254 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (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 & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable samTri1.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat. Warning: Get data of variable samTri1.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat failed! Error: Could not read variable triggeredSampler1.u in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat. Warning: Get data of variable triggeredSampler1.u from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat failed! Error: Could not read variable triggeredSampler1.y in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat. Warning: Get data of variable triggeredSampler1.y from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat failed! " Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,samTri.period,samTri.startTime,samTri.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start