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.TriggeredSampler.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.445/1.445, allocations: 249.4 MB / 256.7 MB, free: 7.055 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.001124/0.001124, allocations: 173.3 kB / 316 MB, free: 3.562 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.445/1.445, allocations: 205.1 MB / 0.5667 GB, free: 15.71 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.0009531/0.0009531, allocations: 85.59 kB / 0.671 GB, free: 4.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.222e-06/6.252e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1614/0.1614, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4995/0.661, allocations: 132.2 MB / 1.014 GB, free: 6.555 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.6612, allocations: 73.11 kB / 1.014 GB, free: 6.516 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.002711/0.6639, allocations: 0.8277 MB / 1.015 GB, free: 5.805 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.6639, allocations: 0 / 1.015 GB, free: 5.805 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.0004179/0.6643, allocations: 381.5 kB / 1.015 GB, free: 5.395 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.6644, allocations: 8.031 kB / 1.015 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.6644, allocations: 11.81 kB / 1.015 GB, free: 5.375 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.6646, allocations: 171 kB / 1.015 GB, free: 5.168 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.6646, allocations: 4 kB / 1.015 GB, free: 5.164 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.6646, allocations: 4 kB / 1.015 GB, free: 5.16 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.256e-05/0.6647, allocations: 31.19 kB / 1.015 GB, free: 5.141 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.882e-05/0.6648, allocations: 59.33 kB / 1.015 GB, free: 5.086 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.6648, allocations: 3.984 kB / 1.015 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.6648, allocations: 0 / 1.015 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.6648, allocations: 4 kB / 1.015 GB, free: 5.078 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003263/0.6652, allocations: 266.7 kB / 1.015 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.218e-05/0.6653, allocations: 49.08 kB / 1.015 GB, free: 4.75 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.606e-05/0.6653, allocations: 24.05 kB / 1.015 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.6653, allocations: 0 / 1.015 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.37e-05/0.6654, allocations: 70.59 kB / 1.016 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.6654, allocations: 0 / 1.016 GB, free: 4.656 MB / 0.6355 GB Notification: Performance of matching and sorting (n=8): time 0.0001626/0.6656, allocations: 70.25 kB / 1.016 GB, free: 4.594 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.6656, allocations: 55.41 kB / 1.016 GB, free: 4.527 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.826e-05/0.6657, allocations: 119.2 kB / 1.016 GB, free: 4.406 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.6657, allocations: 25.7 kB / 1.016 GB, free: 4.375 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.17e-05/0.6658, allocations: 88.02 kB / 1.016 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.353e-05/0.6658, allocations: 23.28 kB / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-06/0.6658, allocations: 0 / 1.016 GB, free: 4.27 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.06e-05/0.6659, allocations: 317.6 kB / 1.016 GB, free: 3.953 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.037e-05/0.666, allocations: 11.69 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.457e-05/0.666, allocations: 51.91 kB / 1.016 GB, free: 3.887 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.628e-05/0.6661, allocations: 23.11 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.6661, allocations: 0 / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001291/0.6662, allocations: 86.48 kB / 1.016 GB, free: 3.789 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.6662, allocations: 14.53 kB / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.6662, allocations: 0 / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.6662, allocations: 0 / 1.016 GB, free: 3.777 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000112/0.6664, allocations: 23.66 kB / 1.016 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.6664, allocations: 5.875 kB / 1.016 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.6665, allocations: 27.88 kB / 1.016 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.6665, allocations: 4 kB / 1.016 GB, free: 3.723 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: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 6.637e-05/0.6666, allocations: 104.9 kB / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.6666, allocations: 7.906 kB / 1.017 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.6667, allocations: 78.98 kB / 1.017 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.6667, allocations: 0 / 1.017 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.6667, allocations: 4 kB / 1.017 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.6668, allocations: 0 / 1.017 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003367/0.6671, allocations: 334.8 kB / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.6671, allocations: 0 / 1.017 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.302e-05/0.6672, allocations: 19.98 kB / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.6672, allocations: 0 / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.6672, allocations: 0 / 1.017 GB, free: 3.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.6672, allocations: 3.906 kB / 1.017 GB, free: 3.156 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.6672, allocations: 4.484 kB / 1.017 GB, free: 3.152 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001268/0.6673, allocations: 169.1 kB / 1.017 GB, free: 2.984 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.15e-05/0.6674, allocations: 89.02 kB / 1.017 GB, free: 2.879 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.6674, allocations: 3.938 kB / 1.017 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.6676, allocations: 27.16 kB / 1.017 GB, free: 2.852 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.6676, allocations: 4 kB / 1.017 GB, free: 2.848 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.743e-06/0.6676, allocations: 4.359 kB / 1.017 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.498e-05/0.6676, allocations: 94.91 kB / 1.017 GB, free: 2.754 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002177/0.6679, allocations: 12 kB / 1.017 GB, free: 2.742 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: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,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 9.812e-05/0.668, allocations: 103.7 kB / 1.017 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001098/0.6681, allocations: 51.48 kB / 1.018 GB, free: 2.602 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.6681, allocations: 3.938 kB / 1.018 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.696e-05/0.6682, allocations: 26.81 kB / 1.018 GB, free: 2.578 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.6683, allocations: 15.42 kB / 1.018 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002695/0.6686, allocations: 102.3 kB / 1.018 GB, free: 2.453 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.6689, allocations: 0.7036 MB / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/0.6689, allocations: 0 / 1.018 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of Templates: time 0.002609/0.6715, allocations: 0.8499 MB / 1.019 GB, free: 0.8867 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches