Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") [: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.783/1.783, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009655/0.0009654, allocations: 176.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.131/1.131, allocations: 221.3 MB / 0.7819 GB, free: 1.508 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.0007967/0.0007967, allocations: 105.2 kB / 0.9213 GB, free: 2.75 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.362e-06/6.382e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1884, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5297/0.7181, allocations: 148.9 MB / 1.351 GB, free: 16.09 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001768/0.7183, allocations: 70.28 kB / 1.351 GB, free: 16.09 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.006806/0.7251, allocations: 2.283 MB / 1.353 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.7251, allocations: 1 kB / 1.353 GB, free: 15.96 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003629/0.7255, allocations: 402.3 kB / 1.353 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.7256, allocations: 9.938 kB / 1.353 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.7256, allocations: 13.62 kB / 1.353 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.111e-05/0.7257, allocations: 166.7 kB / 1.354 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.7257, allocations: 2.203 kB / 1.354 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.651e-05/0.7257, allocations: 6.125 kB / 1.354 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.986e-05/0.7258, allocations: 17.61 kB / 1.354 GB, free: 15.36 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.535e-05/0.7259, allocations: 47.23 kB / 1.354 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.7259, allocations: 1.281 kB / 1.354 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.7259, allocations: 3.906 kB / 1.354 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.7259, allocations: 5 kB / 1.354 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003448/0.7263, allocations: 301.2 kB / 1.354 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.446e-05/0.7264, allocations: 34.42 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.105e-05/0.7264, allocations: 15.47 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.7264, allocations: 1.828 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.386e-05/0.7265, allocations: 68.81 kB / 1.354 GB, free: 15 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.412e-06/0.7265, allocations: 0 / 1.354 GB, free: 15 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7): time 0.0001615/0.7267, allocations: 79.89 kB / 1.354 GB, free: 14.95 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.005e-05/0.7267, allocations: 53.52 kB / 1.354 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.989e-05/0.7268, allocations: 102 kB / 1.354 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.7268, allocations: 31.52 kB / 1.354 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.7268, allocations: 88.98 kB / 1.354 GB, free: 14.68 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.724e-05/0.7269, allocations: 23.61 kB / 1.354 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.267e-05/0.7269, allocations: 1.406 kB / 1.354 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.556e-05/0.7269, allocations: 321.8 kB / 1.355 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.9e-05/0.727, allocations: 31.89 kB / 1.355 GB, free: 14.35 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.652e-05/0.7271, allocations: 57.72 kB / 1.355 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001791/0.7273, allocations: 53.22 kB / 1.355 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7273, allocations: 1.125 kB / 1.355 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003129/0.7276, allocations: 137.7 kB / 1.355 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.7276, allocations: 5.719 kB / 1.355 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.7276, allocations: 1.594 kB / 1.355 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.7276, allocations: 1.875 kB / 1.355 GB, free: 14.27 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.7277, allocations: 19.34 kB / 1.355 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.127e-06/0.7277, allocations: 1.031 kB / 1.355 GB, free: 14.26 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.728, allocations: 52.27 kB / 1.355 GB, free: 14.25 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.728, allocations: 10.88 kB / 1.355 GB, free: 14.25 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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.298e-05/0.7281, allocations: 112.5 kB / 1.355 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.299e-05/0.7281, allocations: 7.141 kB / 1.355 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001315/0.7282, allocations: 81.34 kB / 1.355 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.7282, allocations: 5.078 kB / 1.355 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.7282, allocations: 1.062 kB / 1.355 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.7282, allocations: 0.5156 kB / 1.355 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.7284, allocations: 296.3 kB / 1.356 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.7284, allocations: 4.906 kB / 1.356 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.936e-05/0.7285, allocations: 16.77 kB / 1.356 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.125e-06/0.7285, allocations: 2.266 kB / 1.356 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.7285, allocations: 5.422 kB / 1.356 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.7285, allocations: 0 / 1.356 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.7286, allocations: 0.9688 kB / 1.356 GB, free: 13.82 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001089/0.7287, allocations: 164.7 kB / 1.356 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.737e-05/0.7287, allocations: 83.11 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.7287, allocations: 2.219 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.7288, allocations: 13.88 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.7289, allocations: 4.562 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.995e-06/0.7289, allocations: 3.094 kB / 1.356 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.411e-05/0.7289, allocations: 87.12 kB / 1.356 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002409/0.7291, allocations: 32.19 kB / 1.356 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * 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.0001192/0.7293, allocations: 123 kB / 1.356 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001718/0.7295, allocations: 97.84 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.7295, allocations: 4.594 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.621e-05/0.7295, allocations: 25.81 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001818/0.7297, allocations: 7.719 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002163/0.7299, allocations: 86.03 kB / 1.356 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.7301, allocations: 0.7076 MB / 1.357 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of SimCode: time 2.2e-07/0.7301, allocations: 0.875 kB / 1.357 GB, free: 12.58 MB / 0.8073 GB Notification: Performance of Templates: time 0.003156/0.7332, allocations: 1.241 MB / 1.358 GB, free: 12.47 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches