Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.763/1.763, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.001039/0.001039, allocations: 181.2 kB / 487 MB, free: 5.352 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.125/1.125, allocations: 221.3 MB / 0.7819 GB, free: 1.395 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.0008312/0.0008313, allocations: 111 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.473e-06/6.513e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1855/0.1855, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.506/0.6916, allocations: 148.4 MB / 1.35 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.6918, allocations: 68.27 kB / 1.35 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.003123/0.695, allocations: 0.8101 MB / 1.351 GB, free: 15.91 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.695, allocations: 0 / 1.351 GB, free: 15.91 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000388/0.6954, allocations: 373.1 kB / 1.351 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.6954, allocations: 9.719 kB / 1.351 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.6955, allocations: 2.625 kB / 1.351 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.545e-05/0.6956, allocations: 174.6 kB / 1.352 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.6956, allocations: 3.984 kB / 1.352 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.6956, allocations: 3.656 kB / 1.352 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.729e-05/0.6957, allocations: 22.72 kB / 1.352 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.349e-05/0.6958, allocations: 49.8 kB / 1.352 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.6958, allocations: 0 / 1.352 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.6958, allocations: 0 / 1.352 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.6958, allocations: 0.6875 kB / 1.352 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003889/0.6962, allocations: 273.1 kB / 1.352 GB, free: 15.07 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.858e-05/0.6963, allocations: 43.8 kB / 1.352 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.582e-05/0.6964, allocations: 17.81 kB / 1.352 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.6964, allocations: 1.406 kB / 1.352 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.493e-05/0.6965, allocations: 69.62 kB / 1.352 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.6965, allocations: 0 / 1.352 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001644/0.6967, allocations: 62.62 kB / 1.352 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.184e-05/0.6967, allocations: 54.34 kB / 1.352 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.322e-05/0.6968, allocations: 99.67 kB / 1.352 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.6968, allocations: 26.45 kB / 1.352 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.215e-05/0.6968, allocations: 91.06 kB / 1.352 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.969e-05/0.6968, allocations: 18.45 kB / 1.352 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-06/0.6968, allocations: 1.312 kB / 1.352 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.6969, allocations: 317 kB / 1.353 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.195e-05/0.6969, allocations: 15.12 kB / 1.353 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.215e-05/0.697, allocations: 47.78 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.6971, allocations: 29.39 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.6971, allocations: 1.125 kB / 1.353 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002022/0.6973, allocations: 94.56 kB / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.6974, allocations: 6 kB / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.6974, allocations: 2.094 kB / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.6974, allocations: 1.562 kB / 1.353 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.6975, allocations: 25.36 kB / 1.353 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.6975, allocations: 1.375 kB / 1.353 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.014e-05/0.6976, allocations: 14.34 kB / 1.353 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.6976, allocations: 8.766 kB / 1.353 GB, free: 14.25 MB / 0.8073 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 5.199e-05/0.6977, allocations: 109.1 kB / 1.353 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.534e-05/0.6977, allocations: 8.891 kB / 1.353 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.6978, allocations: 71.3 kB / 1.353 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.6979, allocations: 1.375 kB / 1.353 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.6979, allocations: 6.875 kB / 1.353 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.6979, allocations: 1.359 kB / 1.353 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.6981, allocations: 302.7 kB / 1.353 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.6981, allocations: 0 / 1.353 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.04e-05/0.6982, allocations: 18.39 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.6982, allocations: 1.734 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-06/0.6982, allocations: 1.312 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.6982, allocations: 0 / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6982, allocations: 1.281 kB / 1.353 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001118/0.6984, allocations: 161.8 kB / 1.354 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.093e-05/0.6984, allocations: 91.73 kB / 1.354 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.6984, allocations: 1.312 kB / 1.354 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.6985, allocations: 16.38 kB / 1.354 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.057e-05/0.6986, allocations: 7.969 kB / 1.354 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.928e-06/0.6986, allocations: 7.203 kB / 1.354 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.36e-05/0.6986, allocations: 79.44 kB / 1.354 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002417/0.6989, allocations: 26.36 kB / 1.354 GB, free: 13.5 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: 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.0001357/0.699, allocations: 111.8 kB / 1.354 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001158/0.6991, allocations: 47.2 kB / 1.354 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.6991, allocations: 0 / 1.354 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.471e-05/0.6992, allocations: 18.52 kB / 1.354 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001795/0.6994, allocations: 8.969 kB / 1.354 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002328/0.6996, allocations: 81.31 kB / 1.354 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002043/0.6998, allocations: 0.7022 MB / 1.355 GB, free: 28.61 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/0.6998, allocations: 0 / 1.355 GB, free: 28.61 MB / 0.823 GB Notification: Performance of Templates: time 0.002743/0.7026, allocations: 0.7856 MB / 1.355 GB, free: 28.55 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches