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.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|unitDelay1.u|unitDelay1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") [: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.327/1.327, allocations: 249.4 MB / 256.7 MB, free: 6.953 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.001101/0.001101, allocations: 185.2 kB / 316 MB, free: 3.57 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.442/1.442, allocations: 205.2 MB / 0.5667 GB, free: 15.64 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.0008693/0.0008693, allocations: 82.45 kB / 0.671 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.784e-06/7.814e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.229/0.229, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6264/0.8554, allocations: 131.9 MB / 1.013 GB, free: 7.105 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.8557, allocations: 67.83 kB / 1.013 GB, free: 7.07 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002283/0.858, allocations: 0.5728 MB / 1.014 GB, free: 6.586 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.858, allocations: 0 / 1.014 GB, free: 6.586 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.0004607/0.8585, allocations: 357.9 kB / 1.014 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.8585, allocations: 8.031 kB / 1.014 GB, free: 6.188 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.862e-05/0.8586, allocations: 11.91 kB / 1.014 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.8587, allocations: 171 kB / 1.015 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.8587, allocations: 0 / 1.015 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.8587, allocations: 4 kB / 1.015 GB, free: 5.965 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.699e-05/0.8588, allocations: 18.97 kB / 1.015 GB, free: 5.953 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.8589, allocations: 57.09 kB / 1.015 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.859, allocations: 0 / 1.015 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.859, allocations: 0 / 1.015 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.859, allocations: 0 / 1.015 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000355/0.8593, allocations: 251.1 kB / 1.015 GB, free: 5.625 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.232e-05/0.8594, allocations: 41.33 kB / 1.015 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.413e-05/0.8595, allocations: 12.17 kB / 1.015 GB, free: 5.574 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.447e-05/0.8595, allocations: 7.938 kB / 1.015 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.107e-05/0.8596, allocations: 58.52 kB / 1.015 GB, free: 5.504 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.8596, allocations: 4 kB / 1.015 GB, free: 5.5 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.0001704/0.8598, allocations: 56.48 kB / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.8598, allocations: 59.22 kB / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.404e-05/0.8599, allocations: 99.12 kB / 1.015 GB, free: 5.281 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.8599, allocations: 25.7 kB / 1.015 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.86, allocations: 80.14 kB / 1.015 GB, free: 5.168 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.86, allocations: 19.38 kB / 1.015 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.86, allocations: 0 / 1.015 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.8601, allocations: 321.8 kB / 1.016 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.847e-05/0.8602, allocations: 7.625 kB / 1.016 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.864e-05/0.8602, allocations: 50.91 kB / 1.016 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.926e-05/0.8603, allocations: 11.94 kB / 1.016 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.8603, allocations: 7.906 kB / 1.016 GB, free: 4.754 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001249/0.8604, allocations: 69.59 kB / 1.016 GB, free: 4.688 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.8605, allocations: 4 kB / 1.016 GB, free: 4.684 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.8605, allocations: 4 kB / 1.016 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.8605, allocations: 0 / 1.016 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.8606, allocations: 20.08 kB / 1.016 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.8606, allocations: 11.91 kB / 1.016 GB, free: 4.648 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.645e-05/0.8607, allocations: 18.86 kB / 1.016 GB, free: 4.633 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.8607, allocations: 4.188 kB / 1.016 GB, free: 4.629 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 5.943e-05/0.8608, allocations: 101 kB / 1.016 GB, free: 4.523 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.39e-05/0.8608, allocations: 11.84 kB / 1.016 GB, free: 4.512 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.861, allocations: 77.16 kB / 1.016 GB, free: 4.438 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.861, allocations: 4 kB / 1.016 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.861, allocations: 0 / 1.016 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.861, allocations: 0 / 1.016 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.8612, allocations: 292 kB / 1.016 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.8612, allocations: 3.984 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.943e-05/0.8613, allocations: 15.92 kB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.8613, allocations: 8 kB / 1.016 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.8614, allocations: 0 / 1.016 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.8614, allocations: 0 / 1.016 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.8614, allocations: 0 / 1.016 GB, free: 4.098 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001297/0.8615, allocations: 154.4 kB / 1.016 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.864e-05/0.8615, allocations: 89 kB / 1.017 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.8616, allocations: 0 / 1.017 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.8617, allocations: 18.72 kB / 1.017 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.39e-05/0.8617, allocations: 6.438 kB / 1.017 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.79e-06/0.8617, allocations: 0 / 1.017 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.002e-05/0.8618, allocations: 87.08 kB / 1.017 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002278/0.862, allocations: 11.91 kB / 1.017 GB, free: 3.723 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * 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.0001461/0.8622, allocations: 99.25 kB / 1.017 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001122/0.8623, allocations: 42.31 kB / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.8623, allocations: 2.438 kB / 1.017 GB, free: 3.586 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.548e-05/0.8624, allocations: 19.06 kB / 1.017 GB, free: 3.57 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.8626, allocations: 7.984 kB / 1.017 GB, free: 3.562 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002713/0.8629, allocations: 74.52 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003159/0.8632, allocations: 0.7 MB / 1.018 GB, free: 2.746 MB / 0.6355 GB Notification: Performance of SimCode: time 2.6e-07/0.8632, allocations: 4 kB / 1.018 GB, free: 2.742 MB / 0.6355 GB Notification: Performance of Templates: time 0.002412/0.8656, allocations: 0.6321 MB / 1.018 GB, free: 2.125 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches