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.357/1.357, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 182.5 kB / 326.5 MB, free: 2.219 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.985/1.985, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0009061/0.0009061, allocations: 87.05 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003355/0.0003354, allocations: 9 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.25, allocations: 106.3 MB / 0.9001 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1727/0.4227, allocations: 131.6 MB / 1.029 GB, free: 12.09 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.423, allocations: 75.95 kB / 1.029 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00193/0.425, allocations: 0.7472 MB / 1.029 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.446e-06/0.425, allocations: 0 / 1.029 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.835e-06/0.425, allocations: 0 / 1.029 GB, free: 11.26 MB / 0.6823 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.0004046/0.4254, allocations: 343.2 kB / 1.03 GB, free: 10.88 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.4255, allocations: 15.97 kB / 1.03 GB, free: 10.86 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/0.4255, allocations: 11.91 kB / 1.03 GB, free: 10.85 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.4256, allocations: 167 kB / 1.03 GB, free: 10.65 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.796e-05/0.4257, allocations: 0 / 1.03 GB, free: 10.65 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.462e-05/0.4257, allocations: 7.984 kB / 1.03 GB, free: 10.64 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001843/0.4259, allocations: 57.67 kB / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.4259, allocations: 0 / 1.03 GB, free: 10.58 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.4259, allocations: 8 kB / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-06/0.4259, allocations: 0 / 1.03 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.4261, allocations: 47.91 kB / 1.03 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003948/0.4265, allocations: 264.9 kB / 1.03 GB, free: 10.21 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001361/0.4266, allocations: 50.55 kB / 1.03 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.462e-05/0.4267, allocations: 4 kB / 1.03 GB, free: 10.15 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001955/0.4269, allocations: 75.33 kB / 1.03 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.312e-06/0.4269, allocations: 0 / 1.03 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0003753/0.4273, allocations: 113.6 kB / 1.031 GB, free: 9.949 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.4273, allocations: 59.39 kB / 1.031 GB, free: 9.879 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.814e-05/0.4274, allocations: 97 kB / 1.031 GB, free: 9.777 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.4274, allocations: 25.7 kB / 1.031 GB, free: 9.746 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.834e-05/0.4275, allocations: 88.12 kB / 1.031 GB, free: 9.656 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.803e-05/0.4275, allocations: 15.75 kB / 1.031 GB, free: 9.641 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.639e-06/0.4275, allocations: 4 kB / 1.031 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.4276, allocations: 314.8 kB / 1.031 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.07e-05/0.4277, allocations: 31.97 kB / 1.031 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.099e-05/0.4278, allocations: 46.5 kB / 1.031 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.69e-05/0.4279, allocations: 31.98 kB / 1.031 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4279, allocations: 0 / 1.031 GB, free: 9.203 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002077/0.4281, allocations: 93.66 kB / 1.031 GB, free: 9.105 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.4281, allocations: 8 kB / 1.031 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.4282, allocations: 0 / 1.031 GB, free: 9.098 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.4282, allocations: 3.984 kB / 1.031 GB, free: 9.094 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.498e-05/0.4283, allocations: 8 kB / 1.031 GB, free: 9.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.4283, allocations: 4 kB / 1.031 GB, free: 9.082 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.786e-05/0.4284, allocations: 11.92 kB / 1.031 GB, free: 9.07 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.4284, allocations: 4 kB / 1.031 GB, free: 9.066 MB / 0.6823 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 () * Number of clocked 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 8.009e-05/0.4285, allocations: 125.8 kB / 1.031 GB, free: 8.934 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.029e-05/0.4285, allocations: 3.906 kB / 1.031 GB, free: 8.93 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.966e-05/0.4285, allocations: 11.89 kB / 1.031 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4285, allocations: 7.938 kB / 1.031 GB, free: 8.906 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.4285, allocations: 0 / 1.031 GB, free: 8.906 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.4285, allocations: 0 / 1.031 GB, free: 8.906 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.4289, allocations: 342.7 kB / 1.032 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.429, allocations: 0 / 1.032 GB, free: 8.516 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.662e-05/0.429, allocations: 12.03 kB / 1.032 GB, free: 8.504 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.429, allocations: 3.984 kB / 1.032 GB, free: 8.5 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.429, allocations: 0 / 1.032 GB, free: 8.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.429, allocations: 0 / 1.032 GB, free: 8.5 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.4291, allocations: 8 kB / 1.032 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.4293, allocations: 187.4 kB / 1.032 GB, free: 8.293 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.541e-05/0.4294, allocations: 81.02 kB / 1.032 GB, free: 8.195 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.4294, allocations: 7.984 kB / 1.032 GB, free: 8.188 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.769e-05/0.4295, allocations: 12 kB / 1.032 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.4295, allocations: 7.984 kB / 1.032 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-06/0.4295, allocations: 0 / 1.032 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.963e-05/0.4296, allocations: 79.28 kB / 1.032 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of sort global known variables: time 9e-08/0.4296, allocations: 0 / 1.032 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002006/0.4298, allocations: 15.95 kB / 1.032 GB, free: 8.074 MB / 0.6823 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 () * Number of clocked 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.0001242/0.4299, allocations: 103.2 kB / 1.032 GB, free: 7.965 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000223/0.4301, allocations: 67.83 kB / 1.032 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4302, allocations: 0.6719 kB / 1.032 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 9.937e-05/0.4303, allocations: 32.17 kB / 1.032 GB, free: 7.867 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001685/0.4304, allocations: 6.625 kB / 1.032 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002964/0.4307, allocations: 141.8 kB / 1.033 GB, free: 7.695 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002441/0.431, allocations: 0.6848 MB / 1.033 GB, free: 6.984 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.403e-05/0.431, allocations: 4 kB / 1.033 GB, free: 6.98 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.672e-05/0.4311, allocations: 11.44 kB / 1.033 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of SimCode: time 4.21e-07/0.4311, allocations: 0 / 1.033 GB, free: 6.969 MB / 0.6823 GB Notification: Performance of Templates: time 0.002342/0.4334, allocations: 480.3 kB / 1.034 GB, free: 6.512 MB / 0.6823 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