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.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") [: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.334/1.334, allocations: 249.4 MB / 256.7 MB, free: 6.918 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.001029/0.001029, allocations: 181.1 kB / 316 MB, free: 3.543 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.393/1.393, allocations: 205.1 MB / 0.5667 GB, free: 15.6 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.0009417/0.0009417, allocations: 89.06 kB / 0.671 GB, free: 4.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.321e-06/6.352e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.2079, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.664/0.8719, allocations: 132.1 MB / 1.014 GB, free: 6.602 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.8723, allocations: 69.94 kB / 1.014 GB, free: 6.562 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002778/0.8751, allocations: 0.6497 MB / 1.014 GB, free: 6.012 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.017e-05/0.8751, allocations: 4 kB / 1.014 GB, free: 6.008 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005245/0.8757, allocations: 370.1 kB / 1.015 GB, free: 5.605 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.8757, allocations: 8.031 kB / 1.015 GB, free: 5.598 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.865e-05/0.8758, allocations: 11.89 kB / 1.015 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001548/0.8759, allocations: 167 kB / 1.015 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.909e-05/0.876, allocations: 0 / 1.015 GB, free: 5.383 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.069e-05/0.876, allocations: 7.125 kB / 1.015 GB, free: 5.379 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001062/0.8761, allocations: 25.94 kB / 1.015 GB, free: 5.363 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001279/0.8762, allocations: 67.61 kB / 1.015 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.8762, allocations: 2.734 kB / 1.015 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.8763, allocations: 0 / 1.015 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.8763, allocations: 0 / 1.015 GB, free: 5.301 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005102/0.8768, allocations: 293.3 kB / 1.015 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.8769, allocations: 67.39 kB / 1.015 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.948e-05/0.877, allocations: 24.8 kB / 1.015 GB, free: 4.918 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.877, allocations: 7.922 kB / 1.015 GB, free: 4.91 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001152/0.8771, allocations: 78.73 kB / 1.015 GB, free: 4.836 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.8772, allocations: 7.938 kB / 1.015 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002349/0.8774, allocations: 83.05 kB / 1.015 GB, free: 4.754 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.8775, allocations: 58.97 kB / 1.015 GB, free: 4.688 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.8776, allocations: 100.3 kB / 1.016 GB, free: 4.586 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.8776, allocations: 33.69 kB / 1.016 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.189e-05/0.8777, allocations: 84.19 kB / 1.016 GB, free: 4.461 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.195e-05/0.8777, allocations: 23.39 kB / 1.016 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.282e-06/0.8777, allocations: 0 / 1.016 GB, free: 4.441 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002161/0.8779, allocations: 318 kB / 1.016 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.497e-05/0.878, allocations: 19.31 kB / 1.016 GB, free: 4.113 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.182e-05/0.8781, allocations: 57.23 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.509e-05/0.8781, allocations: 27.48 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.8781, allocations: 0 / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001657/0.8783, allocations: 109.3 kB / 1.016 GB, free: 3.941 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.8783, allocations: 4 kB / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.503e-06/0.8783, allocations: 0 / 1.016 GB, free: 3.938 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.8784, allocations: 12 kB / 1.016 GB, free: 3.926 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.8785, allocations: 23.55 kB / 1.016 GB, free: 3.906 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.8785, allocations: 4 kB / 1.016 GB, free: 3.902 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.078e-05/0.8786, allocations: 11.98 kB / 1.016 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.8786, allocations: 4 kB / 1.016 GB, free: 3.887 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.0001026/0.8787, allocations: 117.4 kB / 1.016 GB, free: 3.766 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.8788, allocations: 4 kB / 1.016 GB, free: 3.762 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001801/0.879, allocations: 99.31 kB / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.879, allocations: 0 / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.879, allocations: 0.8125 kB / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.879, allocations: 0 / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.8793, allocations: 335.3 kB / 1.017 GB, free: 3.328 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.8793, allocations: 3.938 kB / 1.017 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.428e-05/0.8794, allocations: 19.11 kB / 1.017 GB, free: 3.309 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.8794, allocations: 7.984 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.8795, allocations: 256 / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.8795, allocations: 4 kB / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.8795, allocations: 0 / 1.017 GB, free: 3.297 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001772/0.8797, allocations: 189.4 kB / 1.017 GB, free: 3.113 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.552e-05/0.8797, allocations: 88.95 kB / 1.017 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.8797, allocations: 3.984 kB / 1.017 GB, free: 3.004 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.8799, allocations: 11.98 kB / 1.017 GB, free: 2.992 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.8799, allocations: 4 kB / 1.017 GB, free: 2.988 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.8799, allocations: 7.688 kB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.065e-05/0.88, allocations: 87.27 kB / 1.017 GB, free: 2.898 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002203/0.8802, allocations: 12 kB / 1.017 GB, free: 2.887 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: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001419/0.8804, allocations: 105.6 kB / 1.017 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001522/0.8805, allocations: 69.36 kB / 1.017 GB, free: 2.73 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.8805, allocations: 3.938 kB / 1.017 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.611e-05/0.8806, allocations: 39.05 kB / 1.017 GB, free: 2.699 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.8808, allocations: 4 kB / 1.017 GB, free: 2.695 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003087/0.8811, allocations: 97.94 kB / 1.018 GB, free: 2.59 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003237/0.8815, allocations: 0.7035 MB / 1.018 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of SimCode: time 2.7e-07/0.8815, allocations: 384 / 1.018 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of Templates: time 0.002881/0.8844, allocations: 0.8534 MB / 1.019 GB, free: 1.02 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches