Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.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.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.37/1.37, allocations: 249.4 MB / 256.7 MB, free: 7.059 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.001036/0.001036, allocations: 185.2 kB / 316 MB, free: 3.555 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.271/1.271, allocations: 205.1 MB / 0.5667 GB, free: 15.77 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.0008741/0.0008741, allocations: 90.2 kB / 0.671 GB, free: 4.887 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.274e-06/7.314e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2279, allocations: 106.3 MB / 0.8846 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6401/0.8681, allocations: 132.6 MB / 1.014 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/0.8683, allocations: 70.86 kB / 1.014 GB, free: 6.105 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003211/0.8715, allocations: 0.8755 MB / 1.015 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.963e-06/0.8716, allocations: 0 / 1.015 GB, free: 5.395 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.0004617/0.872, allocations: 388.1 kB / 1.015 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.8721, allocations: 12.03 kB / 1.015 GB, free: 4.957 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.788e-05/0.8721, allocations: 7.906 kB / 1.015 GB, free: 4.949 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000159/0.8723, allocations: 167.1 kB / 1.015 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.8723, allocations: 3.906 kB / 1.015 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.8724, allocations: 4 kB / 1.015 GB, free: 4.738 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.236e-05/0.8725, allocations: 18.55 kB / 1.016 GB, free: 4.727 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.813e-05/0.8726, allocations: 51.31 kB / 1.016 GB, free: 4.676 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.046e-06/0.8726, allocations: 3.938 kB / 1.016 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.8726, allocations: 0 / 1.016 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.8726, allocations: 0 / 1.016 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003752/0.873, allocations: 250.5 kB / 1.016 GB, free: 4.402 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.115e-05/0.8731, allocations: 37.02 kB / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.912e-05/0.8731, allocations: 16.3 kB / 1.016 GB, free: 4.352 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.8732, allocations: 4 kB / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001221/0.8733, allocations: 95.53 kB / 1.016 GB, free: 4.246 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.423e-06/0.8733, allocations: 4 kB / 1.016 GB, free: 4.242 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002094/0.8735, allocations: 73.41 kB / 1.016 GB, free: 4.172 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.8736, allocations: 84.48 kB / 1.016 GB, free: 4.074 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.125e-05/0.8737, allocations: 104.4 kB / 1.016 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.8737, allocations: 25.7 kB / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.505e-05/0.8737, allocations: 83.95 kB / 1.016 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.8737, allocations: 15.72 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.8738, allocations: 3.312 kB / 1.016 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.8739, allocations: 318.8 kB / 1.017 GB, free: 3.516 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.443e-05/0.8739, allocations: 22.75 kB / 1.017 GB, free: 3.5 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.846e-05/0.874, allocations: 29.27 kB / 1.017 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.408e-05/0.874, allocations: 15.73 kB / 1.017 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.874, allocations: 0 / 1.017 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001236/0.8742, allocations: 80.22 kB / 1.017 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.8742, allocations: 4 kB / 1.017 GB, free: 3.379 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.8742, allocations: 8.062 kB / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.8742, allocations: 0 / 1.017 GB, free: 3.371 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.812e-05/0.8743, allocations: 7.938 kB / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.8743, allocations: 0 / 1.017 GB, free: 3.363 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.749e-05/0.8743, allocations: 11.98 kB / 1.017 GB, free: 3.352 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-06/0.8744, allocations: 0 / 1.017 GB, free: 3.352 MB / 0.6355 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 0.0001109/0.8745, allocations: 154 kB / 1.017 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.8745, allocations: 8 kB / 1.017 GB, free: 3.184 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.857e-05/0.8745, allocations: 12.98 kB / 1.017 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.8746, allocations: 3.906 kB / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.8746, allocations: 96 / 1.017 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.8746, allocations: 7.938 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.8749, allocations: 311.3 kB / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.8749, allocations: 64 / 1.017 GB, free: 2.832 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.526e-06/0.8749, allocations: 4 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.8749, allocations: 7.891 kB / 1.017 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.8749, allocations: 8 kB / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.875, allocations: 0 / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.875, allocations: 0 / 1.017 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001544/0.8751, allocations: 175.9 kB / 1.017 GB, free: 2.641 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.886e-05/0.8752, allocations: 89 kB / 1.018 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.31e-05/0.8752, allocations: 0 / 1.018 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.8753, allocations: 18.42 kB / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.187e-05/0.8754, allocations: 4 kB / 1.018 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.8754, allocations: 11.61 kB / 1.018 GB, free: 2.508 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.163e-05/0.8755, allocations: 83.27 kB / 1.018 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002195/0.8757, allocations: 15.31 kB / 1.018 GB, free: 2.414 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: 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 0.000114/0.8758, allocations: 99.25 kB / 1.018 GB, free: 2.309 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.000142/0.876, allocations: 70.33 kB / 1.018 GB, free: 2.246 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.876, allocations: 8.062 kB / 1.018 GB, free: 2.238 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.8761, allocations: 63.25 kB / 1.018 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.8763, allocations: 4 kB / 1.018 GB, free: 2.18 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002809/0.8766, allocations: 97.8 kB / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002701/0.8769, allocations: 0.6958 MB / 1.019 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of SimCode: time 2.254e-06/0.8769, allocations: 0 / 1.019 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of Templates: time 0.003023/0.88, allocations: 0.8 MB / 1.019 GB, free: 0.5664 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches