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.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") [: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.352/1.352, allocations: 249.4 MB / 256.7 MB, free: 7.109 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.0009743/0.0009742, allocations: 184.6 kB / 316 MB, free: 3.527 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.504/1.504, allocations: 205.1 MB / 0.5667 GB, free: 15.67 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.001076/0.001076, allocations: 82.34 kB / 0.671 GB, free: 4.793 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.013e-06/7.033e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2251, allocations: 106.3 MB / 0.8846 GB, free: 12.63 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6527/0.8779, allocations: 131.9 MB / 1.013 GB, free: 6.746 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/0.8782, allocations: 70.64 kB / 1.013 GB, free: 6.707 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002418/0.8806, allocations: 0.5901 MB / 1.014 GB, free: 6.211 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.8807, allocations: 0 / 1.014 GB, free: 6.211 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005614/0.8812, allocations: 360.9 kB / 1.014 GB, free: 5.82 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.8813, allocations: 8.031 kB / 1.014 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.233e-05/0.8813, allocations: 7.906 kB / 1.014 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001739/0.8815, allocations: 167 kB / 1.015 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.8816, allocations: 0 / 1.015 GB, free: 5.602 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.663e-05/0.8816, allocations: 8 kB / 1.015 GB, free: 5.594 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001044/0.8817, allocations: 19.22 kB / 1.015 GB, free: 5.582 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.917e-05/0.8818, allocations: 54.3 kB / 1.015 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.8818, allocations: 0 / 1.015 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.8818, allocations: 0 / 1.015 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.8818, allocations: 0 / 1.015 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004495/0.8823, allocations: 270.9 kB / 1.015 GB, free: 5.238 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.851e-05/0.8824, allocations: 40.89 kB / 1.015 GB, free: 5.199 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.542e-05/0.8824, allocations: 16.42 kB / 1.015 GB, free: 5.184 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.39e-05/0.8825, allocations: 7.984 kB / 1.015 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.395e-05/0.8826, allocations: 65.91 kB / 1.015 GB, free: 5.105 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.8826, allocations: 0 / 1.015 GB, free: 5.105 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001809/0.8828, allocations: 66.78 kB / 1.015 GB, free: 5.043 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.8828, allocations: 54.14 kB / 1.015 GB, free: 4.98 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.967e-05/0.8829, allocations: 100.3 kB / 1.015 GB, free: 4.879 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.8829, allocations: 25.7 kB / 1.015 GB, free: 4.848 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.531e-05/0.883, allocations: 86.81 kB / 1.015 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.763e-05/0.883, allocations: 19.28 kB / 1.015 GB, free: 4.746 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.883, allocations: 4 kB / 1.015 GB, free: 4.742 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.8831, allocations: 317.6 kB / 1.016 GB, free: 4.426 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.769e-05/0.8832, allocations: 11.25 kB / 1.016 GB, free: 4.418 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.602e-05/0.8832, allocations: 47.05 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.939e-05/0.8833, allocations: 19.86 kB / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.8833, allocations: 0 / 1.016 GB, free: 4.348 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001278/0.8834, allocations: 79.09 kB / 1.016 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.8834, allocations: 4 kB / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.8834, allocations: 4 kB / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.8835, allocations: 0 / 1.016 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.8836, allocations: 28.05 kB / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.8836, allocations: 0 / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.869e-05/0.8837, allocations: 15.92 kB / 1.016 GB, free: 4.223 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.8837, allocations: 7.188 kB / 1.016 GB, free: 4.219 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001/0.8838, allocations: 111.1 kB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.126e-05/0.8838, allocations: 48 / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001721/0.884, allocations: 92.25 kB / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.884, allocations: 0 / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.884, allocations: 0 / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.959e-06/0.8841, allocations: 0 / 1.016 GB, free: 4.016 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.8844, allocations: 304.7 kB / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.8844, allocations: 0 / 1.016 GB, free: 3.688 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.582e-05/0.8845, allocations: 12 kB / 1.016 GB, free: 3.676 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.8845, allocations: 4 kB / 1.016 GB, free: 3.672 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.8845, allocations: 10.48 kB / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.8845, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.8845, allocations: 0 / 1.016 GB, free: 3.664 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001464/0.8847, allocations: 158.1 kB / 1.017 GB, free: 3.504 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.8848, allocations: 85.02 kB / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.8848, allocations: 192 / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.8849, allocations: 15.98 kB / 1.017 GB, free: 3.387 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.885, allocations: 15.17 kB / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.885, allocations: 0 / 1.017 GB, free: 3.375 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.306e-05/0.885, allocations: 83.53 kB / 1.017 GB, free: 3.293 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002255/0.8853, allocations: 12 kB / 1.017 GB, free: 3.281 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001604/0.8854, allocations: 102.5 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001509/0.8856, allocations: 43.62 kB / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8856, allocations: 0 / 1.017 GB, free: 3.141 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.948e-05/0.8857, allocations: 22.56 kB / 1.017 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.8859, allocations: 4.156 kB / 1.017 GB, free: 3.121 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003019/0.8862, allocations: 96.64 kB / 1.017 GB, free: 3.012 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004339/0.8866, allocations: 0.696 MB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of SimCode: time 2.5e-07/0.8866, allocations: 4 kB / 1.018 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of Templates: time 0.002778/0.8894, allocations: 0.6504 MB / 1.018 GB, free: 1.648 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches