Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.52/1.52, allocations: 249.5 MB / 257 MB, free: 6.898 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.001098/0.001098, allocations: 183.5 kB / 316.3 MB, free: 3.238 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.463/1.463, allocations: 205.3 MB / 0.5671 GB, free: 15.88 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.0008616/0.0008617, allocations: 94.34 kB / 0.6714 GB, free: 4.992 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.702e-05/1.705e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2317, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8215/1.053, allocations: 131.9 MB / 1.014 GB, free: 5.875 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/1.054, allocations: 70.58 kB / 1.014 GB, free: 5.836 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.002425/1.056, allocations: 0.8698 MB / 1.015 GB, free: 5.051 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.964e-06/1.056, allocations: 0 / 1.015 GB, free: 5.051 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.913e-06/1.056, allocations: 0 / 1.015 GB, free: 5.051 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004686/1.057, allocations: 350.3 kB / 1.015 GB, free: 4.668 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.057, allocations: 12.03 kB / 1.015 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/1.057, allocations: 3.906 kB / 1.015 GB, free: 4.652 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/1.057, allocations: 175 kB / 1.015 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/1.057, allocations: 0 / 1.015 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.458e-05/1.057, allocations: 4 kB / 1.015 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.649e-05/1.057, allocations: 18.12 kB / 1.015 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.406e-05/1.057, allocations: 52.44 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/1.057, allocations: 0 / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/1.057, allocations: 0 / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.348e-06/1.057, allocations: 0 / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000391/1.058, allocations: 252.2 kB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.689e-05/1.058, allocations: 48.75 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.971e-05/1.058, allocations: 16.23 kB / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/1.058, allocations: 0 / 1.016 GB, free: 4.043 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/1.058, allocations: 62.22 kB / 1.016 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 3.457e-06/1.058, allocations: 0 / 1.016 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.000182/1.058, allocations: 69.64 kB / 1.016 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.61e-05/1.058, allocations: 55.03 kB / 1.016 GB, free: 3.852 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.322e-05/1.058, allocations: 104 kB / 1.016 GB, free: 3.746 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/1.058, allocations: 25.7 kB / 1.016 GB, free: 3.715 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.84e-05/1.058, allocations: 80.14 kB / 1.016 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.241e-05/1.058, allocations: 18.98 kB / 1.016 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-06/1.058, allocations: 0 / 1.016 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001185/1.058, allocations: 317.6 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.328e-05/1.058, allocations: 11.31 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.551e-05/1.059, allocations: 35.38 kB / 1.017 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.577e-05/1.059, allocations: 19.86 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/1.059, allocations: 0 / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001109/1.059, allocations: 71.66 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/1.059, allocations: 8 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/1.059, allocations: 1.297 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/1.059, allocations: 4 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/1.059, allocations: 20.08 kB / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/1.059, allocations: 0 / 1.017 GB, free: 3.137 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.699e-05/1.059, allocations: 11.98 kB / 1.017 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/1.059, allocations: 0 / 1.017 GB, free: 3.125 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.61e-05/1.059, allocations: 112.9 kB / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/1.059, allocations: 0 / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001576/1.059, allocations: 88.75 kB / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/1.059, allocations: 0 / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/1.059, allocations: 0 / 1.017 GB, free: 2.926 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/1.059, allocations: 7.969 kB / 1.017 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002673/1.06, allocations: 309.9 kB / 1.017 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/1.06, allocations: 4.875 kB / 1.017 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.009e-05/1.06, allocations: 11.98 kB / 1.017 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/1.06, allocations: 0 / 1.017 GB, free: 2.574 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/1.06, allocations: 4 kB / 1.017 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/1.06, allocations: 0 / 1.017 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/1.06, allocations: 0 / 1.017 GB, free: 2.57 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001493/1.06, allocations: 175.2 kB / 1.017 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/1.06, allocations: 85.02 kB / 1.017 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/1.06, allocations: 0 / 1.017 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/1.06, allocations: 11.98 kB / 1.017 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/1.06, allocations: 4 kB / 1.017 GB, free: 2.281 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/1.06, allocations: 7.984 kB / 1.017 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.459e-05/1.06, allocations: 87.16 kB / 1.018 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1.6e-07/1.06, allocations: 0 / 1.018 GB, free: 2.191 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002083/1.06, allocations: 8 kB / 1.018 GB, free: 2.184 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001329/1.06, allocations: 95.25 kB / 1.018 GB, free: 2.082 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000111/1.061, allocations: 31 kB / 1.018 GB, free: 2.062 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/1.061, allocations: 10.72 kB / 1.018 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.556e-05/1.061, allocations: 23.48 kB / 1.018 GB, free: 2.035 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000195/1.061, allocations: 8.094 kB / 1.018 GB, free: 2.027 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002322/1.061, allocations: 82.7 kB / 1.018 GB, free: 1.934 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/1.061, allocations: 0.6846 MB / 1.018 GB, free: 1.223 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 3.096e-05/1.061, allocations: 4.188 kB / 1.018 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.809e-05/1.061, allocations: 11.44 kB / 1.018 GB, free: 1.207 MB / 0.6355 GB Notification: Performance of SimCode: time 2.81e-07/1.061, allocations: 4 kB / 1.018 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of Templates: time 0.002547/1.064, allocations: 0.5008 MB / 1.019 GB, free: 0.7188 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches