Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.7/1.7, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0009298/0.0009298, allocations: 190.4 kB / 490.8 MB, free: 1.898 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.05/1.05, allocations: 221.3 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007909/0.000791, allocations: 88 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.631e-06/5.801e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1644/0.1644, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4499/0.6143, allocations: 149.2 MB / 1.357 GB, free: 17.44 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001579/0.6145, allocations: 70.12 kB / 1.357 GB, free: 17.44 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.002507/0.617, allocations: 0.7402 MB / 1.358 GB, free: 17.4 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.6171, allocations: 1.344 kB / 1.358 GB, free: 17.4 MB / 0.823 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.0003241/0.6174, allocations: 355.1 kB / 1.358 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.904e-05/0.6174, allocations: 8.75 kB / 1.358 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.853e-05/0.6175, allocations: 7.266 kB / 1.358 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.35e-05/0.6175, allocations: 166.2 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.6175, allocations: 1.469 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.6176, allocations: 2.016 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.023e-05/0.6176, allocations: 19.64 kB / 1.359 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.448e-05/0.6177, allocations: 44.36 kB / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.6177, allocations: 0 / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.925e-06/0.6177, allocations: 0 / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.6177, allocations: 5.875 kB / 1.359 GB, free: 32.8 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002433/0.618, allocations: 241.9 kB / 1.359 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.186e-05/0.618, allocations: 33.56 kB / 1.359 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.381e-05/0.618, allocations: 11.3 kB / 1.359 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.6181, allocations: 17.17 kB / 1.359 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.6181, allocations: 54.36 kB / 1.359 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.6181, allocations: 0 / 1.359 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.0001188/0.6183, allocations: 56.03 kB / 1.359 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.465e-05/0.6183, allocations: 53.61 kB / 1.359 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.535e-05/0.6183, allocations: 97.53 kB / 1.359 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.217e-06/0.6184, allocations: 26.98 kB / 1.359 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 3.657e-05/0.6184, allocations: 89.69 kB / 1.359 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.385e-05/0.6184, allocations: 11.69 kB / 1.359 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-06/0.6184, allocations: 4 kB / 1.359 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.212e-05/0.6185, allocations: 317.5 kB / 1.36 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.264e-05/0.6185, allocations: 9.812 kB / 1.36 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.093e-05/0.6186, allocations: 38.88 kB / 1.36 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.6187, allocations: 26.7 kB / 1.36 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.6187, allocations: 0 / 1.36 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001674/0.6189, allocations: 78.8 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.6189, allocations: 5.531 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.688e-06/0.6189, allocations: 1.188 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.6189, allocations: 5.766 kB / 1.36 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.619, allocations: 21.12 kB / 1.36 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.6191, allocations: 2.922 kB / 1.36 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.998e-05/0.6191, allocations: 13.8 kB / 1.36 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.6192, allocations: 8.531 kB / 1.36 GB, free: 31.76 MB / 0.8386 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 5.242e-05/0.6192, allocations: 111.7 kB / 1.36 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.051e-05/0.6192, allocations: 5.969 kB / 1.36 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.779e-05/0.6193, allocations: 64.77 kB / 1.36 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.6193, allocations: 1.062 kB / 1.36 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.6193, allocations: 0 / 1.36 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.6193, allocations: 0.75 kB / 1.36 GB, free: 31.6 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001827/0.6195, allocations: 286.5 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.6195, allocations: 1.188 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.6196, allocations: 16.06 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.6196, allocations: 2.172 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.6196, allocations: 0 / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.6196, allocations: 1.281 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.6197, allocations: 0.7969 kB / 1.36 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.316e-05/0.6198, allocations: 149.7 kB / 1.36 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.544e-05/0.6198, allocations: 83.92 kB / 1.361 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.6198, allocations: 6.438 kB / 1.361 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.059e-05/0.6199, allocations: 14.75 kB / 1.361 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.885e-05/0.6199, allocations: 2.812 kB / 1.361 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.6199, allocations: 3.203 kB / 1.361 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.24e-05/0.62, allocations: 90.72 kB / 1.361 GB, free: 31.01 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002081/0.6202, allocations: 18.72 kB / 1.361 GB, free: 31 MB / 0.8386 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.0001025/0.6203, allocations: 106.8 kB / 1.361 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.137e-05/0.6204, allocations: 29.14 kB / 1.361 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 9.52e-07/0.6204, allocations: 1 kB / 1.361 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.125e-05/0.6204, allocations: 15.61 kB / 1.361 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001497/0.6206, allocations: 9.203 kB / 1.361 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000173/0.6208, allocations: 80.08 kB / 1.361 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.621, allocations: 0.7 MB / 1.362 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/0.621, allocations: 0 / 1.362 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of Templates: time 0.002241/0.6233, allocations: 0.7122 MB / 1.362 GB, free: 30.06 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches