Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.742/1.742, allocations: 387.2 MB / 394.5 MB, free: 13.72 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.0009536/0.0009535, allocations: 172.3 kB / 487 MB, free: 5.383 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.12/1.12, allocations: 221.3 MB / 0.7819 GB, free: 1.375 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.0008278/0.0008279, allocations: 95.12 kB / 0.9213 GB, free: 2.617 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.802e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1834, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5075/0.6909, allocations: 148.5 MB / 1.35 GB, free: 16 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001813/0.6911, allocations: 68.81 kB / 1.35 GB, free: 16 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.003116/0.6942, allocations: 0.8611 MB / 1.351 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.812e-06/0.6943, allocations: 5.344 kB / 1.351 GB, free: 15.95 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004046/0.6947, allocations: 373.4 kB / 1.352 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.6947, allocations: 9 kB / 1.352 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.6948, allocations: 15.28 kB / 1.352 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.719e-05/0.6948, allocations: 169.5 kB / 1.352 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.6949, allocations: 4.547 kB / 1.352 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.761e-05/0.6949, allocations: 7.891 kB / 1.352 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.466e-05/0.695, allocations: 27.28 kB / 1.352 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.883e-05/0.6951, allocations: 58.91 kB / 1.352 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.6951, allocations: 6.781 kB / 1.352 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.125e-05/0.6951, allocations: 4.75 kB / 1.352 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.6951, allocations: 0.9688 kB / 1.352 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004045/0.6956, allocations: 295.7 kB / 1.352 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001027/0.6957, allocations: 63.77 kB / 1.352 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.71e-05/0.6957, allocations: 28.98 kB / 1.352 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.6958, allocations: 3.828 kB / 1.352 GB, free: 15.06 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.695e-05/0.6958, allocations: 72.08 kB / 1.352 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.874e-06/0.6959, allocations: 1.156 kB / 1.352 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.000191/0.6961, allocations: 91.34 kB / 1.352 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/0.6961, allocations: 58.41 kB / 1.352 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.025e-05/0.6961, allocations: 99.31 kB / 1.353 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.564e-05/0.6962, allocations: 26.8 kB / 1.353 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.365e-05/0.6962, allocations: 90.88 kB / 1.353 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.6962, allocations: 26.22 kB / 1.353 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.6962, allocations: 0 / 1.353 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.197e-05/0.6963, allocations: 319.7 kB / 1.353 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.423e-05/0.6963, allocations: 19.47 kB / 1.353 GB, free: 14.37 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.465e-05/0.6964, allocations: 55.73 kB / 1.353 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.6966, allocations: 38.89 kB / 1.353 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.6966, allocations: 1.031 kB / 1.353 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002371/0.6968, allocations: 115.1 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.6968, allocations: 6.922 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.6968, allocations: 4.062 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.6969, allocations: 1.844 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.697, allocations: 23.09 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.697, allocations: 1.375 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.063e-05/0.6971, allocations: 16.31 kB / 1.353 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.6971, allocations: 12.09 kB / 1.353 GB, free: 14.28 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: 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 5.685e-05/0.6972, allocations: 119.2 kB / 1.353 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.6972, allocations: 6.812 kB / 1.353 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.6974, allocations: 93.03 kB / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.6974, allocations: 1.531 kB / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.6974, allocations: 0 / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.6974, allocations: 1.547 kB / 1.353 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.6977, allocations: 340.5 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.6977, allocations: 0 / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.347e-05/0.6978, allocations: 21.42 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.6978, allocations: 1.031 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.6978, allocations: 3.328 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.6978, allocations: 3.906 kB / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.6978, allocations: 0 / 1.354 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000145/0.6979, allocations: 189.2 kB / 1.354 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.926e-05/0.698, allocations: 80.06 kB / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.698, allocations: 6.906 kB / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.6981, allocations: 10.94 kB / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.63e-05/0.6982, allocations: 9.859 kB / 1.354 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.6982, allocations: 7.891 kB / 1.354 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.334e-05/0.6982, allocations: 83.91 kB / 1.354 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002411/0.6985, allocations: 21.7 kB / 1.354 GB, free: 13.52 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: 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.0001323/0.6986, allocations: 116.4 kB / 1.354 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001478/0.6987, allocations: 68.03 kB / 1.354 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.6988, allocations: 3.938 kB / 1.354 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.041e-05/0.6988, allocations: 31.41 kB / 1.354 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.699, allocations: 11.98 kB / 1.354 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002682/0.6993, allocations: 97.45 kB / 1.355 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.6994, allocations: 0.7094 MB / 1.355 GB, free: 12.63 MB / 0.8073 GB Notification: Performance of SimCode: time 2.8e-07/0.6994, allocations: 3.938 kB / 1.355 GB, free: 12.62 MB / 0.8073 GB Notification: Performance of Templates: time 0.003265/0.7027, allocations: 0.9826 MB / 1.356 GB, free: 12.55 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches