Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime") [: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 10.0.0-master/package.mo): time 1.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0009012/0.0009013, allocations: 181.2 kB / 490.8 MB, free: 1.961 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.048/1.048, allocations: 221.3 MB / 0.7863 GB, free: 13.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008119/0.0008119, allocations: 87.55 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.693e-06/6.793e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1653, allocations: 143 MB / 1.212 GB, free: 40.09 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4432/0.6086, allocations: 149.3 MB / 1.357 GB, free: 17.44 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001653/0.6088, allocations: 74.97 kB / 1.357 GB, free: 17.44 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.005675/0.6145, allocations: 2.16 MB / 1.36 GB, free: 17.31 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.6145, allocations: 4.938 kB / 1.36 GB, free: 17.31 MB / 0.823 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.0003384/0.6148, allocations: 370.1 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.896e-05/0.6149, allocations: 9.531 kB / 1.36 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.6149, allocations: 8.641 kB / 1.36 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.865e-05/0.615, allocations: 179.9 kB / 1.36 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.615, allocations: 1.25 kB / 1.36 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.615, allocations: 3.406 kB / 1.36 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.775e-05/0.6151, allocations: 18.5 kB / 1.36 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.709e-05/0.6152, allocations: 50.28 kB / 1.36 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.6152, allocations: 1.156 kB / 1.36 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.6152, allocations: 0 / 1.36 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.437e-06/0.6152, allocations: 1.125 kB / 1.36 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002619/0.6155, allocations: 277.1 kB / 1.36 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.563e-05/0.6155, allocations: 40.64 kB / 1.36 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.668e-05/0.6156, allocations: 15.14 kB / 1.36 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.6156, allocations: 2.656 kB / 1.36 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.75e-05/0.6157, allocations: 63.27 kB / 1.361 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.6157, allocations: 0 / 1.361 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0001319/0.6158, allocations: 73.83 kB / 1.361 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.857e-05/0.6158, allocations: 55.62 kB / 1.361 GB, free: 32.27 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.89e-05/0.6159, allocations: 109.7 kB / 1.361 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.092e-05/0.6159, allocations: 33.08 kB / 1.361 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.809e-05/0.6159, allocations: 87.84 kB / 1.361 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.616, allocations: 19.69 kB / 1.361 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.25e-06/0.616, allocations: 5.094 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 7.436e-05/0.6161, allocations: 318.8 kB / 1.361 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.206e-05/0.6161, allocations: 17.62 kB / 1.361 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.081e-05/0.6161, allocations: 58.83 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002318/0.6164, allocations: 51.36 kB / 1.361 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.6164, allocations: 3.938 kB / 1.361 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002988/0.6167, allocations: 119.8 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.6167, allocations: 10.45 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.167e-06/0.6167, allocations: 1.375 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.6167, allocations: 2.594 kB / 1.361 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.6169, allocations: 24.33 kB / 1.361 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.6169, allocations: 3.297 kB / 1.361 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.597e-05/0.617, allocations: 18.66 kB / 1.362 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.617, allocations: 6.422 kB / 1.362 GB, free: 31.61 MB / 0.8386 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 5.232e-05/0.617, allocations: 111.1 kB / 1.362 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.6171, allocations: 7.312 kB / 1.362 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.6171, allocations: 7.219 kB / 1.362 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.6171, allocations: 0.7812 kB / 1.362 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.6171, allocations: 0 / 1.362 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.6171, allocations: 2.531 kB / 1.362 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002447/0.6174, allocations: 320.4 kB / 1.362 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.6174, allocations: 4 kB / 1.362 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.539e-05/0.6174, allocations: 12.47 kB / 1.362 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.6174, allocations: 1.219 kB / 1.362 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.6175, allocations: 0 / 1.362 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.6175, allocations: 6.875 kB / 1.362 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6175, allocations: 3.938 kB / 1.362 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001018/0.6176, allocations: 163.9 kB / 1.362 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.6176, allocations: 84.58 kB / 1.362 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.6176, allocations: 1.281 kB / 1.362 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.237e-05/0.6177, allocations: 13.16 kB / 1.362 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.908e-05/0.6177, allocations: 7.859 kB / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.523e-06/0.6178, allocations: 11.97 kB / 1.362 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.777e-05/0.6178, allocations: 88.83 kB / 1.362 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002218/0.618, allocations: 22.73 kB / 1.362 GB, free: 30.88 MB / 0.8386 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.0001097/0.6181, allocations: 116.8 kB / 1.362 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001013/0.6183, allocations: 46.25 kB / 1.362 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.6183, allocations: 0 / 1.362 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.88e-05/0.6183, allocations: 25.56 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001707/0.6185, allocations: 16.52 kB / 1.363 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002017/0.6187, allocations: 98.5 kB / 1.363 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001897/0.6189, allocations: 0.7093 MB / 1.363 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.6189, allocations: 0 / 1.363 GB, free: 29.98 MB / 0.8386 GB Notification: Performance of Templates: time 0.002521/0.6214, allocations: 0.9059 MB / 1.364 GB, free: 29.93 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTriggerPositiveStartTime.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTriggerPositiveStartTime.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