Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime") [: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 9.1.1-maint.9.1.x/package.mo): time 1.764/1.764, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009127/0.0009127, allocations: 188.5 kB / 487 MB, free: 5.402 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.116/1.116, allocations: 221.3 MB / 0.7819 GB, free: 1.418 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008803/0.0008803, allocations: 111.2 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.662e-06/6.692e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1812, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.495/0.6762, allocations: 148.5 MB / 1.35 GB, free: 16.17 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001805/0.6764, allocations: 76 kB / 1.35 GB, free: 16.16 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.005827/0.6823, allocations: 2.164 MB / 1.352 GB, free: 16.04 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.6823, allocations: 1.344 kB / 1.352 GB, free: 16.04 MB / 0.8073 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.0003255/0.6826, allocations: 376.8 kB / 1.353 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.6826, allocations: 10.81 kB / 1.353 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.376e-05/0.6827, allocations: 7.625 kB / 1.353 GB, free: 15.68 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.409e-05/0.6828, allocations: 175.5 kB / 1.353 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.6828, allocations: 3.25 kB / 1.353 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.6828, allocations: 2.562 kB / 1.353 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.537e-05/0.6829, allocations: 22.75 kB / 1.353 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.18e-05/0.683, allocations: 48.91 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.683, allocations: 5.281 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.683, allocations: 0.75 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.683, allocations: 1.281 kB / 1.353 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000288/0.6833, allocations: 270.1 kB / 1.353 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.589e-05/0.6834, allocations: 45.34 kB / 1.353 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.871e-05/0.6834, allocations: 16.17 kB / 1.353 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.6834, allocations: 6 kB / 1.353 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.502e-05/0.6835, allocations: 62.22 kB / 1.353 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.6835, allocations: 0.9688 kB / 1.353 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001502/0.6837, allocations: 70.73 kB / 1.353 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.756e-05/0.6837, allocations: 53.64 kB / 1.354 GB, free: 15 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.388e-05/0.6838, allocations: 106.9 kB / 1.354 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.6838, allocations: 26.39 kB / 1.354 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/0.6838, allocations: 96.92 kB / 1.354 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.6838, allocations: 14.33 kB / 1.354 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-06/0.6838, allocations: 1.219 kB / 1.354 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.012e-05/0.6839, allocations: 319 kB / 1.354 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.492e-05/0.6839, allocations: 16.03 kB / 1.354 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.883e-05/0.684, allocations: 58.77 kB / 1.354 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.6842, allocations: 46.59 kB / 1.354 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.6842, allocations: 4.969 kB / 1.354 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003215/0.6846, allocations: 126 kB / 1.354 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.6846, allocations: 5.031 kB / 1.354 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.6846, allocations: 4.578 kB / 1.354 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.6846, allocations: 2.031 kB / 1.354 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.6847, allocations: 28.98 kB / 1.354 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.6848, allocations: 3.734 kB / 1.354 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.119e-05/0.6849, allocations: 13.98 kB / 1.354 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.6849, allocations: 6.047 kB / 1.354 GB, free: 14.34 MB / 0.8073 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 4.63e-05/0.6849, allocations: 110.8 kB / 1.354 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.6849, allocations: 14.81 kB / 1.354 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.91e-05/0.685, allocations: 11.3 kB / 1.354 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.685, allocations: 1.031 kB / 1.354 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.685, allocations: 0 / 1.354 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.685, allocations: 1.875 kB / 1.355 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.6852, allocations: 307.5 kB / 1.355 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.6852, allocations: 0 / 1.355 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.791e-05/0.6853, allocations: 22.19 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.706e-06/0.6853, allocations: 5.031 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.6853, allocations: 0 / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.6853, allocations: 2.891 kB / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.6853, allocations: 0 / 1.355 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.709e-05/0.6854, allocations: 164 kB / 1.355 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.873e-05/0.6855, allocations: 85.12 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.6855, allocations: 8 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.27e-05/0.6856, allocations: 9.172 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.117e-05/0.6856, allocations: 5.141 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.6856, allocations: 6.469 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.671e-05/0.6857, allocations: 88.44 kB / 1.355 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.00023/0.6859, allocations: 23.72 kB / 1.355 GB, free: 13.62 MB / 0.8073 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.0001241/0.686, allocations: 125 kB / 1.355 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001098/0.6861, allocations: 52.78 kB / 1.355 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.6862, allocations: 0 / 1.355 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.301e-05/0.6862, allocations: 19.33 kB / 1.355 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.6864, allocations: 13.62 kB / 1.355 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002242/0.6866, allocations: 98.41 kB / 1.355 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002323/0.6869, allocations: 0.7089 MB / 1.356 GB, free: 28.72 MB / 0.823 GB Notification: Performance of SimCode: time 2.21e-07/0.6869, allocations: 3.938 kB / 1.356 GB, free: 28.72 MB / 0.823 GB Notification: Performance of Templates: time 0.002784/0.6897, allocations: 0.9108 MB / 1.357 GB, free: 28.67 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerNegativeStartTime.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerNegativeStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start