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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.502/1.502, allocations: 249.3 MB / 261.8 MB, free: 5.848 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.001014/0.001014, allocations: 176.9 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.2 MB / 0.572 GB, free: 10.71 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.0008601/0.00086, allocations: 88.64 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.215e-05/3.217e-05, allocations: 4 kB / 0.788 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2047, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7415/0.9462, allocations: 131.5 MB / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.9465, allocations: 71.45 kB / 1.02 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001922/0.9484, allocations: 0.7448 MB / 1.021 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.223e-06/0.9485, allocations: 0 / 1.021 GB, free: 2.445 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.9485, allocations: 4 kB / 1.021 GB, free: 2.441 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.0003578/0.9488, allocations: 334 kB / 1.021 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.9489, allocations: 8.031 kB / 1.021 GB, free: 2.066 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.247e-05/0.9489, allocations: 7.906 kB / 1.021 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.9491, allocations: 170.9 kB / 1.022 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.9491, allocations: 0 / 1.022 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.25e-05/0.9491, allocations: 6.812 kB / 1.022 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.9492, allocations: 47.44 kB / 1.022 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.9492, allocations: 0 / 1.022 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.9493, allocations: 0 / 1.022 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.9493, allocations: 0 / 1.022 GB, free: 1.801 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.149e-05/0.9493, allocations: 21.31 kB / 1.022 GB, free: 1.785 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003992/0.9497, allocations: 269.7 kB / 1.022 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.433e-05/0.9498, allocations: 37.08 kB / 1.022 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.926e-05/0.9499, allocations: 12.36 kB / 1.022 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.9499, allocations: 0 / 1.022 GB, free: 1.434 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.854e-05/0.95, allocations: 50.75 kB / 1.022 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.95, allocations: 2.734 kB / 1.022 GB, free: 1.375 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001639/0.9502, allocations: 67.53 kB / 1.022 GB, free: 1.312 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.9502, allocations: 51.41 kB / 1.022 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.02e-05/0.9503, allocations: 108.7 kB / 1.022 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.183e-05/0.9503, allocations: 25.7 kB / 1.022 GB, free: 1.109 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.96e-05/0.9504, allocations: 87.64 kB / 1.022 GB, free: 1.023 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.49e-05/0.9504, allocations: 3.906 kB / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/0.9504, allocations: 3.438 kB / 1.022 GB, free: 1.02 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.9505, allocations: 321.4 kB / 1.023 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.941e-05/0.9505, allocations: 7.25 kB / 1.023 GB, free: 0.6953 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.209e-05/0.9506, allocations: 25.83 kB / 1.023 GB, free: 0.6641 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.503e-05/0.9506, allocations: 11.31 kB / 1.023 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.9506, allocations: 0 / 1.023 GB, free: 0.6562 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.742e-05/0.9507, allocations: 64.72 kB / 1.023 GB, free: 0.5938 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.9507, allocations: 8 kB / 1.023 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.9508, allocations: 4.812 kB / 1.023 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.016e-05/0.9508, allocations: 0 / 1.023 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.301e-05/0.9509, allocations: 20.08 kB / 1.023 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.9509, allocations: 0 / 1.023 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.001e-05/0.951, allocations: 11.98 kB / 1.023 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.047e-05/0.951, allocations: 7.328 kB / 1.023 GB, free: 0.5469 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.969e-05/0.951, allocations: 105 kB / 1.023 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.107e-06/0.9511, allocations: 0 / 1.023 GB, free: 448 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.272e-05/0.9511, allocations: 7.469 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.9511, allocations: 13.19 kB / 1.023 GB, free: 428 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.9511, allocations: 48 / 1.023 GB, free: 428 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.9511, allocations: 3.984 kB / 1.023 GB, free: 424 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002705/0.9514, allocations: 304.6 kB / 1.023 GB, free: 76 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.9514, allocations: 4 kB / 1.023 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.161e-05/0.9515, allocations: 11.8 kB / 1.023 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.9515, allocations: 4 kB / 1.023 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.9515, allocations: 0 / 1.023 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.9515, allocations: 8.062 kB / 1.023 GB, free: 52 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.9515, allocations: 4 kB / 1.023 GB, free: 48 kB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001522/0.9517, allocations: 158.5 kB / 1.023 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 3.469e-05/0.9517, allocations: 85.03 kB / 1.023 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.968e-05/0.9518, allocations: 4 kB / 1.023 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.504e-05/0.9519, allocations: 7.5 kB / 1.023 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/0.9519, allocations: 7.984 kB / 1.023 GB, free: 15.77 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.9519, allocations: 4 kB / 1.023 GB, free: 15.76 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.135e-05/0.952, allocations: 87.86 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/0.952, allocations: 4 kB / 1.024 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0001899/0.9522, allocations: 4 kB / 1.024 GB, free: 15.67 MB / 0.6511 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.0001246/0.9523, allocations: 103.2 kB / 1.024 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 9.526e-05/0.9524, allocations: 26.56 kB / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.9524, allocations: 0 / 1.024 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.48e-05/0.9525, allocations: 15.25 kB / 1.024 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001624/0.9526, allocations: 7.188 kB / 1.024 GB, free: 15.52 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002418/0.9529, allocations: 84.12 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.9532, allocations: 0.6809 MB / 1.024 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 2.571e-05/0.9532, allocations: 8.188 kB / 1.024 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.464e-05/0.9532, allocations: 7.438 kB / 1.024 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of SimCode: time 3.11e-07/0.9532, allocations: 0 / 1.024 GB, free: 14.71 MB / 0.6511 GB Notification: Performance of Templates: time 0.00227/0.9555, allocations: 0.49 MB / 1.025 GB, free: 14.24 MB / 0.6511 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