Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.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.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay") [: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.781/1.781, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.0009201/0.00092, allocations: 177.3 kB / 487 MB, free: 5.371 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.135/1.135, allocations: 221.3 MB / 0.7819 GB, free: 1.352 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.0008392/0.0008392, allocations: 93.64 kB / 0.9213 GB, free: 2.594 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.27e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1778, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4953/0.6731, allocations: 149 MB / 1.351 GB, free: 16 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001658/0.6733, allocations: 72.11 kB / 1.351 GB, free: 16 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.002645/0.6759, allocations: 0.9244 MB / 1.352 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.066e-06/0.6759, allocations: 0 / 1.352 GB, free: 15.93 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002612/0.6762, allocations: 379.4 kB / 1.352 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.087e-05/0.6762, allocations: 9.031 kB / 1.352 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.023e-05/0.6763, allocations: 2.469 kB / 1.352 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.522e-05/0.6763, allocations: 167.9 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.635e-06/0.6763, allocations: 1.219 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.6763, allocations: 5.906 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.498e-05/0.6764, allocations: 14.38 kB / 1.352 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.587e-05/0.6765, allocations: 51.39 kB / 1.352 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.869e-06/0.6765, allocations: 4 kB / 1.352 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-06/0.6765, allocations: 0 / 1.352 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-06/0.6765, allocations: 5.25 kB / 1.352 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001797/0.6767, allocations: 239.8 kB / 1.353 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.882e-05/0.6767, allocations: 40.52 kB / 1.353 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.826e-05/0.6768, allocations: 15.7 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.504e-05/0.6768, allocations: 1.219 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.555e-05/0.6769, allocations: 102.9 kB / 1.353 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.6769, allocations: 0 / 1.353 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of matching and sorting (n=9): time 0.0001456/0.677, allocations: 68.66 kB / 1.353 GB, free: 14.93 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.6771, allocations: 79.64 kB / 1.353 GB, free: 14.84 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.656e-05/0.6771, allocations: 105.4 kB / 1.353 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.6771, allocations: 30.78 kB / 1.353 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.559e-05/0.6772, allocations: 86.25 kB / 1.353 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.6772, allocations: 18.91 kB / 1.353 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-06/0.6772, allocations: 3.938 kB / 1.353 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.673e-05/0.6772, allocations: 319.9 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.685e-05/0.6773, allocations: 19.19 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.069e-05/0.6773, allocations: 32.25 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.923e-05/0.6773, allocations: 13.08 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.6773, allocations: 4.75 kB / 1.353 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001034/0.6774, allocations: 83.98 kB / 1.353 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.288e-06/0.6775, allocations: 4.75 kB / 1.354 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.6775, allocations: 0.7188 kB / 1.354 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.6775, allocations: 1.906 kB / 1.354 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.499e-05/0.6775, allocations: 3.875 kB / 1.354 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.6775, allocations: 5.906 kB / 1.354 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.513e-05/0.6776, allocations: 12.14 kB / 1.354 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.883e-06/0.6776, allocations: 9.812 kB / 1.354 GB, free: 14.21 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.465e-05/0.6777, allocations: 142.4 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.6777, allocations: 9.25 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.347e-05/0.6777, allocations: 6.094 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6777, allocations: 0.7812 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.6777, allocations: 0 / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.6777, allocations: 2.656 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.678, allocations: 327.7 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.678, allocations: 0 / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.434e-06/0.678, allocations: 2.891 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.678, allocations: 1.469 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.678, allocations: 1.469 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.678, allocations: 0 / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.678, allocations: 2.344 kB / 1.354 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001063/0.6781, allocations: 175.8 kB / 1.354 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.919e-05/0.6782, allocations: 85.02 kB / 1.354 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.162e-05/0.6782, allocations: 11.89 kB / 1.354 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.6783, allocations: 15.77 kB / 1.354 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.6783, allocations: 5.984 kB / 1.354 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.6784, allocations: 2.844 kB / 1.354 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.459e-05/0.6784, allocations: 90.69 kB / 1.354 GB, free: 13.47 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002073/0.6786, allocations: 12.56 kB / 1.354 GB, free: 13.47 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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * 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 6.892e-05/0.6787, allocations: 104 kB / 1.354 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001031/0.6788, allocations: 73.95 kB / 1.355 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.6788, allocations: 3.438 kB / 1.355 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 5.185e-05/0.6789, allocations: 60.69 kB / 1.355 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001856/0.679, allocations: 10.36 kB / 1.355 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001995/0.6793, allocations: 90.92 kB / 1.355 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.6795, allocations: 0.707 MB / 1.355 GB, free: 28.54 MB / 0.823 GB Notification: Performance of SimCode: time 2e-07/0.6795, allocations: 0 / 1.355 GB, free: 28.54 MB / 0.823 GB Notification: Performance of Templates: time 0.002408/0.6819, allocations: 0.7807 MB / 1.356 GB, free: 28.46 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_9_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches