Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.811/1.811, allocations: 387.2 MB / 394.5 MB, free: 13.59 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 173.3 kB / 487 MB, free: 5.34 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.117/1.117, allocations: 221.3 MB / 0.7819 GB, free: 1.434 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007696/0.0007697, allocations: 98.11 kB / 0.9213 GB, free: 2.68 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/5.931e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1852, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.497/0.6822, allocations: 148.4 MB / 1.35 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001693/0.6824, allocations: 73.72 kB / 1.35 GB, free: 15.87 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002705/0.6852, allocations: 0.7435 MB / 1.351 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.6852, allocations: 1.344 kB / 1.351 GB, free: 15.83 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003004/0.6855, allocations: 355.7 kB / 1.351 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.6855, allocations: 8.25 kB / 1.351 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.6856, allocations: 10.22 kB / 1.351 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.883e-05/0.6857, allocations: 167.3 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.185e-05/0.6857, allocations: 4 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.6857, allocations: 9.438 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.296e-05/0.6858, allocations: 12.06 kB / 1.351 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.727e-05/0.6858, allocations: 49.11 kB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.281e-06/0.6858, allocations: 1.375 kB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.867e-06/0.6859, allocations: 0 / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.6859, allocations: 1.375 kB / 1.352 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000247/0.6861, allocations: 248.5 kB / 1.352 GB, free: 14.99 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.132e-05/0.6862, allocations: 36.53 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.513e-05/0.6862, allocations: 13.86 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.6862, allocations: 1.375 kB / 1.352 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.511e-05/0.6863, allocations: 55.8 kB / 1.352 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.6863, allocations: 1.641 kB / 1.352 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5): time 0.0001271/0.6864, allocations: 56.11 kB / 1.352 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.898e-05/0.6865, allocations: 52.72 kB / 1.352 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.249e-05/0.6865, allocations: 96.98 kB / 1.352 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.6865, allocations: 27.02 kB / 1.352 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.809e-05/0.6865, allocations: 90.66 kB / 1.352 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.6866, allocations: 11.05 kB / 1.352 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-06/0.6866, allocations: 5.219 kB / 1.352 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.411e-05/0.6866, allocations: 321.4 kB / 1.352 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.343e-05/0.6866, allocations: 8.75 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.201e-05/0.6867, allocations: 36.86 kB / 1.353 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/0.6868, allocations: 19.97 kB / 1.353 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.6868, allocations: 2.516 kB / 1.353 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001776/0.687, allocations: 80.44 kB / 1.353 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.687, allocations: 3.938 kB / 1.353 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.868e-06/0.687, allocations: 2.734 kB / 1.353 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.687, allocations: 1.375 kB / 1.353 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001141/0.6872, allocations: 20.78 kB / 1.353 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.6872, allocations: 9.688 kB / 1.353 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.778e-05/0.6873, allocations: 14.2 kB / 1.353 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.6873, allocations: 2.719 kB / 1.353 GB, free: 14.19 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 3.935e-05/0.6873, allocations: 102.8 kB / 1.353 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.136e-05/0.6874, allocations: 7.281 kB / 1.353 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.6875, allocations: 67.95 kB / 1.353 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.6875, allocations: 0 / 1.353 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.6875, allocations: 2.297 kB / 1.353 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.6875, allocations: 7.938 kB / 1.353 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.6877, allocations: 285.8 kB / 1.353 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.6877, allocations: 0 / 1.353 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.341e-05/0.6877, allocations: 16.92 kB / 1.353 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.6878, allocations: 1.281 kB / 1.353 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.6878, allocations: 0 / 1.353 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.6878, allocations: 2.375 kB / 1.353 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.6878, allocations: 5.312 kB / 1.353 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.338e-05/0.6879, allocations: 154.5 kB / 1.353 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.454e-05/0.6879, allocations: 83.34 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.6879, allocations: 1.594 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.404e-05/0.688, allocations: 12.61 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.886e-05/0.688, allocations: 8.406 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.6881, allocations: 2.547 kB / 1.353 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.046e-05/0.6881, allocations: 85.41 kB / 1.353 GB, free: 13.44 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002317/0.6883, allocations: 18 kB / 1.354 GB, free: 13.43 MB / 0.8073 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * 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.0001129/0.6884, allocations: 111.9 kB / 1.354 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.889e-05/0.6885, allocations: 32.3 kB / 1.354 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.6885, allocations: 0.9688 kB / 1.354 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.431e-05/0.6886, allocations: 17.66 kB / 1.354 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001758/0.6888, allocations: 4.953 kB / 1.354 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002009/0.689, allocations: 77.14 kB / 1.354 GB, free: 13.27 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.6891, allocations: 0.6961 MB / 1.354 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of SimCode: time 2.4e-07/0.6891, allocations: 0 / 1.354 GB, free: 12.56 MB / 0.8073 GB Notification: Performance of Templates: time 0.002396/0.6915, allocations: 0.7014 MB / 1.355 GB, free: 12.5 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches