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.441/1.441, allocations: 249.5 MB / 257 MB, free: 6.879 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.001005/0.001005, allocations: 180.8 kB / 316.3 MB, free: 3.211 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.573/1.573, allocations: 205.3 MB / 0.5671 GB, free: 15.85 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.0008268/0.0008269, allocations: 84.53 kB / 0.6714 GB, free: 4.973 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.768e-05/1.772e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2454, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8128/1.058, allocations: 131.8 MB / 1.014 GB, free: 5.941 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/1.059, allocations: 81.66 kB / 1.014 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002211/1.061, allocations: 0.7442 MB / 1.015 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.733e-06/1.061, allocations: 0 / 1.015 GB, free: 5.215 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.785e-06/1.061, allocations: 0 / 1.015 GB, free: 5.215 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.0004553/1.061, allocations: 334 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.362e-05/1.061, allocations: 16.03 kB / 1.015 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.156e-05/1.062, allocations: 7.891 kB / 1.015 GB, free: 4.824 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001996/1.062, allocations: 171 kB / 1.015 GB, free: 4.617 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.438e-05/1.062, allocations: 3.938 kB / 1.015 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/1.062, allocations: 0 / 1.015 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001012/1.062, allocations: 11.75 kB / 1.015 GB, free: 4.605 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001226/1.062, allocations: 41.81 kB / 1.015 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/1.062, allocations: 0 / 1.015 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/1.062, allocations: 0 / 1.015 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/1.062, allocations: 0 / 1.015 GB, free: 4.562 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004697/1.063, allocations: 247.7 kB / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.977e-05/1.063, allocations: 34 kB / 1.016 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.328e-05/1.063, allocations: 16.5 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.752e-05/1.063, allocations: 0 / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001238/1.063, allocations: 54.41 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 9.81e-07/1.063, allocations: 2.734 kB / 1.016 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0001979/1.063, allocations: 55.05 kB / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/1.063, allocations: 59.39 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.247e-05/1.063, allocations: 93.33 kB / 1.016 GB, free: 3.965 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/1.063, allocations: 29.7 kB / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.668e-05/1.063, allocations: 87.2 kB / 1.016 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/1.063, allocations: 7.891 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/1.063, allocations: 4 kB / 1.016 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001589/1.064, allocations: 322.1 kB / 1.016 GB, free: 3.512 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.991e-05/1.064, allocations: 7.5 kB / 1.016 GB, free: 3.508 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.137e-05/1.064, allocations: 24.83 kB / 1.016 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.722e-05/1.064, allocations: 11.38 kB / 1.016 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/1.064, allocations: 0 / 1.016 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.732e-05/1.064, allocations: 60.78 kB / 1.016 GB, free: 3.41 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/1.064, allocations: 8 kB / 1.016 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/1.064, allocations: 0 / 1.016 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/1.064, allocations: 0 / 1.016 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.801e-05/1.064, allocations: 15.98 kB / 1.016 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/1.064, allocations: 0 / 1.016 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.939e-05/1.064, allocations: 11.98 kB / 1.016 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.383e-06/1.064, allocations: 96 / 1.016 GB, free: 3.375 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 9.154e-05/1.064, allocations: 116.1 kB / 1.017 GB, free: 3.258 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.396e-06/1.064, allocations: 4 kB / 1.017 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/1.064, allocations: 4.344 kB / 1.017 GB, free: 3.242 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/1.064, allocations: 7.875 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/1.064, allocations: 4 kB / 1.017 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/1.064, allocations: 0 / 1.017 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000261/1.064, allocations: 286.7 kB / 1.017 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/1.064, allocations: 0 / 1.017 GB, free: 2.922 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.016e-05/1.065, allocations: 15.98 kB / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/1.065, allocations: 0 / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.925e-06/1.065, allocations: 0 / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/1.065, allocations: 128 / 1.017 GB, free: 2.906 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/1.065, allocations: 4 kB / 1.017 GB, free: 2.902 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/1.065, allocations: 160.9 kB / 1.017 GB, free: 2.738 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/1.065, allocations: 81.05 kB / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/1.065, allocations: 4 kB / 1.017 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.377e-05/1.065, allocations: 11.98 kB / 1.017 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/1.065, allocations: 3.984 kB / 1.017 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/1.065, allocations: 4 kB / 1.017 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 4.564e-05/1.065, allocations: 86.89 kB / 1.017 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.4e-07/1.065, allocations: 0 / 1.017 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002009/1.065, allocations: 8 kB / 1.017 GB, free: 2.527 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.0001544/1.065, allocations: 99.25 kB / 1.017 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 9.466e-05/1.065, allocations: 26.39 kB / 1.017 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/1.065, allocations: 0 / 1.017 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.761e-05/1.066, allocations: 19.09 kB / 1.017 GB, free: 2.387 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001785/1.066, allocations: 14.36 kB / 1.017 GB, free: 2.379 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000238/1.066, allocations: 74.84 kB / 1.017 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/1.066, allocations: 0.6886 MB / 1.018 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.028e-05/1.066, allocations: 0 / 1.018 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.81e-05/1.066, allocations: 11.44 kB / 1.018 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/1.066, allocations: 3.938 kB / 1.018 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of Templates: time 0.002564/1.069, allocations: 456 kB / 1.019 GB, free: 1.137 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