Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") [: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.796/1.796, 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.0009753/0.0009753, allocations: 189.2 kB / 487 MB, free: 5.344 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.144/1.144, allocations: 221.3 MB / 0.7819 GB, free: 1.422 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.0009016/0.0009017, allocations: 86.89 kB / 0.9213 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.803e-06/6.833e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1886, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4925/0.6811, allocations: 148.9 MB / 1.351 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001605/0.6813, allocations: 66.11 kB / 1.351 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.005631/0.687, allocations: 1.962 MB / 1.353 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.58e-06/0.687, allocations: 5.312 kB / 1.353 GB, free: 15.69 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003314/0.6873, allocations: 403.2 kB / 1.353 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.6874, allocations: 8.938 kB / 1.353 GB, free: 15.3 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.382e-05/0.6874, allocations: 13.97 kB / 1.353 GB, free: 15.29 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.117e-05/0.6875, allocations: 181.1 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.6875, allocations: 2.562 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.6875, allocations: 7.828 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.055e-05/0.6876, allocations: 22.47 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.324e-05/0.6877, allocations: 52.11 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.6877, allocations: 3.375 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.6877, allocations: 2.25 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.6877, allocations: 1.625 kB / 1.353 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003347/0.6881, allocations: 317.2 kB / 1.354 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.669e-05/0.6882, allocations: 44.55 kB / 1.354 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.19e-05/0.6882, allocations: 19.05 kB / 1.354 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.6882, allocations: 0.8125 kB / 1.354 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.069e-05/0.6883, allocations: 71.16 kB / 1.354 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=8): time 1.202e-06/0.6883, allocations: 0 / 1.354 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8): time 0.0001538/0.6885, allocations: 78.05 kB / 1.354 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.638e-05/0.6885, allocations: 55.03 kB / 1.354 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.064e-05/0.6886, allocations: 105.3 kB / 1.354 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.6886, allocations: 29.77 kB / 1.354 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.6886, allocations: 100.7 kB / 1.354 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.616e-05/0.6886, allocations: 16.81 kB / 1.354 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.21e-05/0.6887, allocations: 2.25 kB / 1.354 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.533e-05/0.6887, allocations: 325.5 kB / 1.354 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.984e-05/0.6888, allocations: 40.78 kB / 1.354 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.97e-05/0.6889, allocations: 72.33 kB / 1.355 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.689, allocations: 48.14 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.6891, allocations: 1.125 kB / 1.355 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003301/0.6894, allocations: 149.8 kB / 1.355 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.6894, allocations: 10.09 kB / 1.355 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-06/0.6894, allocations: 1 kB / 1.355 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.6894, allocations: 2.469 kB / 1.355 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.6895, allocations: 21.14 kB / 1.355 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.6896, allocations: 2.953 kB / 1.355 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002311/0.6898, allocations: 52.81 kB / 1.355 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/0.6898, allocations: 12.12 kB / 1.355 GB, free: 13.96 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 5.333e-05/0.6899, allocations: 117.6 kB / 1.355 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.312e-05/0.6899, allocations: 7.859 kB / 1.355 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.69, allocations: 80.17 kB / 1.355 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.6901, allocations: 0.9375 kB / 1.355 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.6901, allocations: 0.5625 kB / 1.355 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.6901, allocations: 5.312 kB / 1.355 GB, free: 13.81 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.6903, allocations: 316.1 kB / 1.355 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.6903, allocations: 0 / 1.355 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.548e-05/0.6903, allocations: 17.2 kB / 1.355 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.6904, allocations: 0 / 1.355 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.6904, allocations: 4.031 kB / 1.355 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.6904, allocations: 0.7812 kB / 1.355 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6904, allocations: 0.75 kB / 1.355 GB, free: 13.53 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000118/0.6905, allocations: 181.4 kB / 1.356 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.761e-05/0.6905, allocations: 83.86 kB / 1.356 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.6905, allocations: 1.469 kB / 1.356 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.799e-05/0.6907, allocations: 10.06 kB / 1.356 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.6907, allocations: 9.578 kB / 1.356 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.948e-06/0.6907, allocations: 6.188 kB / 1.356 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.576e-05/0.6907, allocations: 92.17 kB / 1.356 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002441/0.691, allocations: 27.23 kB / 1.356 GB, free: 13.21 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001046/0.6911, allocations: 111.7 kB / 1.356 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001851/0.6913, allocations: 109.8 kB / 1.356 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.6913, allocations: 0.75 kB / 1.356 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.937e-05/0.6914, allocations: 28.55 kB / 1.356 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.6915, allocations: 15.77 kB / 1.356 GB, free: 13.06 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002401/0.6918, allocations: 107 kB / 1.356 GB, free: 12.98 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.692, allocations: 0.7048 MB / 1.357 GB, free: 28.28 MB / 0.823 GB Notification: Performance of SimCode: time 2.11e-07/0.692, allocations: 1.031 kB / 1.357 GB, free: 28.28 MB / 0.823 GB Notification: Performance of Templates: time 0.003209/0.6952, allocations: 1.28 MB / 1.358 GB, free: 28.18 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches