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") [: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 7.0.3-maint.7.0.x/package.mo): time 1.294/1.294, allocations: 249.4 MB / 256.7 MB, free: 7.027 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.0009921/0.0009921, allocations: 177 kB / 316 MB, free: 3.461 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.451/1.451, allocations: 205.2 MB / 0.5667 GB, free: 15.52 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.0008311/0.000831, allocations: 91.31 kB / 0.671 GB, free: 4.648 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.365e-06/8.406e-06, allocations: 4 kB / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2396, allocations: 106.3 MB / 0.8846 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.64/0.8797, allocations: 131.9 MB / 1.013 GB, free: 6.66 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.88, allocations: 72.41 kB / 1.013 GB, free: 6.621 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002696/0.8827, allocations: 0.5743 MB / 1.014 GB, free: 6.133 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.182e-05/0.8828, allocations: 0 / 1.014 GB, free: 6.133 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.0005173/0.8833, allocations: 358.1 kB / 1.014 GB, free: 5.742 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.8834, allocations: 8.031 kB / 1.014 GB, free: 5.734 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.321e-05/0.8834, allocations: 7.906 kB / 1.014 GB, free: 5.727 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.8836, allocations: 159.1 kB / 1.015 GB, free: 5.531 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.8836, allocations: 4 kB / 1.015 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.8836, allocations: 3.984 kB / 1.015 GB, free: 5.523 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.272e-05/0.8837, allocations: 15.56 kB / 1.015 GB, free: 5.512 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.477e-05/0.8838, allocations: 55.84 kB / 1.015 GB, free: 5.457 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.8838, allocations: 4 kB / 1.015 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.8839, allocations: 0 / 1.015 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.8839, allocations: 0 / 1.015 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003701/0.8842, allocations: 252.8 kB / 1.015 GB, free: 5.18 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.174e-05/0.8843, allocations: 40.89 kB / 1.015 GB, free: 5.141 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.773e-05/0.8844, allocations: 21.23 kB / 1.015 GB, free: 5.121 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.8844, allocations: 3.984 kB / 1.015 GB, free: 5.117 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.923e-05/0.8845, allocations: 62.84 kB / 1.015 GB, free: 5.051 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 2.454e-06/0.8845, allocations: 0 / 1.015 GB, free: 5.051 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001904/0.8847, allocations: 70.66 kB / 1.015 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.8847, allocations: 51.41 kB / 1.015 GB, free: 4.926 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.46e-05/0.8848, allocations: 96.69 kB / 1.015 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.8849, allocations: 29.7 kB / 1.015 GB, free: 4.793 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.399e-05/0.8849, allocations: 84.12 kB / 1.015 GB, free: 4.707 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.206e-05/0.8849, allocations: 15.62 kB / 1.015 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.448e-06/0.8849, allocations: 0 / 1.015 GB, free: 4.695 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.8851, allocations: 310.8 kB / 1.016 GB, free: 4.383 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.672e-05/0.8851, allocations: 14.75 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.314e-05/0.8851, allocations: 39.22 kB / 1.016 GB, free: 4.328 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.305e-05/0.8852, allocations: 19.88 kB / 1.016 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.8852, allocations: 0 / 1.016 GB, free: 4.312 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001109/0.8853, allocations: 68.16 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.8853, allocations: 4 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.8853, allocations: 0.75 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.8854, allocations: 4 kB / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.8855, allocations: 20.08 kB / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.8855, allocations: 0 / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.987e-05/0.8856, allocations: 15.89 kB / 1.016 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.8856, allocations: 4 kB / 1.016 GB, free: 4.199 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.439e-05/0.8857, allocations: 112.7 kB / 1.016 GB, free: 4.086 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.127e-05/0.8857, allocations: 7.906 kB / 1.016 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.8858, allocations: 71.8 kB / 1.016 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.8858, allocations: 0 / 1.016 GB, free: 4.008 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.8859, allocations: 3.938 kB / 1.016 GB, free: 4.004 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.8859, allocations: 4 kB / 1.016 GB, free: 4 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.8862, allocations: 297.2 kB / 1.016 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.8862, allocations: 0 / 1.016 GB, free: 3.684 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.961e-05/0.8863, allocations: 15.98 kB / 1.016 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.8863, allocations: 0 / 1.016 GB, free: 3.668 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.8863, allocations: 4 kB / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.8863, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.8863, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001408/0.8865, allocations: 165.2 kB / 1.016 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-05/0.8865, allocations: 85.02 kB / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.8865, allocations: 0 / 1.017 GB, free: 3.398 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.8867, allocations: 15.98 kB / 1.017 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.8867, allocations: 4 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.347e-06/0.8867, allocations: 0 / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.949e-05/0.8868, allocations: 87.14 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002125/0.887, allocations: 8 kB / 1.017 GB, free: 3.289 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.0001206/0.8871, allocations: 103.2 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001099/0.8872, allocations: 34 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.8872, allocations: 0 / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.469e-05/0.8873, allocations: 19.88 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002018/0.8875, allocations: 15.83 kB / 1.017 GB, free: 3.129 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002639/0.8878, allocations: 81.89 kB / 1.017 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.888, allocations: 0.7036 MB / 1.018 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of SimCode: time 2.41e-07/0.888, allocations: 0 / 1.018 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of Templates: time 0.002565/0.8906, allocations: 0.6127 MB / 1.018 GB, free: 1.703 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