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.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredMax.u|triggeredMax.y|triggeredMax.trigger",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.344/1.344, allocations: 249.4 MB / 256.7 MB, free: 7.047 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.001147/0.001147, allocations: 185.2 kB / 316 MB, free: 3.492 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.424/1.424, allocations: 205.1 MB / 0.5667 GB, free: 15.63 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.0007922/0.0007922, allocations: 78.64 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.952e-06/5.971e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1529/0.153, allocations: 106.3 MB / 0.8846 GB, free: 12.59 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4761/0.6292, allocations: 132.2 MB / 1.014 GB, free: 6.406 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.6294, allocations: 64.84 kB / 1.014 GB, free: 6.375 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.003756/0.6332, allocations: 1.168 MB / 1.015 GB, free: 5.414 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.6332, allocations: 0 / 1.015 GB, free: 5.414 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.0004346/0.6336, allocations: 377.8 kB / 1.015 GB, free: 5.004 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.6337, allocations: 8.031 kB / 1.015 GB, free: 4.996 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.583e-05/0.6337, allocations: 7.906 kB / 1.015 GB, free: 4.988 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.6338, allocations: 170.9 kB / 1.015 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.6339, allocations: 4 kB / 1.015 GB, free: 4.777 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.6339, allocations: 7.984 kB / 1.015 GB, free: 4.77 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.937e-05/0.634, allocations: 23.11 kB / 1.015 GB, free: 4.754 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.604e-05/0.6341, allocations: 52.19 kB / 1.015 GB, free: 4.703 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.6341, allocations: 4 kB / 1.016 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.6341, allocations: 0 / 1.016 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.6341, allocations: 0 / 1.016 GB, free: 4.699 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003232/0.6344, allocations: 254.2 kB / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 7.852e-05/0.6345, allocations: 41.69 kB / 1.016 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.529e-05/0.6346, allocations: 20.42 kB / 1.016 GB, free: 4.367 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.6346, allocations: 3.938 kB / 1.016 GB, free: 4.363 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.68e-05/0.6347, allocations: 62.52 kB / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.6347, allocations: 0 / 1.016 GB, free: 4.297 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7): time 0.0001611/0.6349, allocations: 68.23 kB / 1.016 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.6349, allocations: 55.41 kB / 1.016 GB, free: 4.168 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.69e-05/0.635, allocations: 108 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.635, allocations: 25.7 kB / 1.016 GB, free: 4.031 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.939e-05/0.635, allocations: 84.14 kB / 1.016 GB, free: 3.945 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.6351, allocations: 19.36 kB / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.468e-06/0.6351, allocations: 0 / 1.016 GB, free: 3.93 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.585e-05/0.6352, allocations: 318.3 kB / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.284e-05/0.6352, allocations: 11.38 kB / 1.017 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.123e-05/0.6352, allocations: 39.5 kB / 1.017 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.093e-05/0.6353, allocations: 15.62 kB / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.6353, allocations: 0 / 1.017 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001151/0.6354, allocations: 79.89 kB / 1.017 GB, free: 3.48 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.6354, allocations: 4 kB / 1.017 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.6354, allocations: 3.938 kB / 1.017 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.6354, allocations: 4.188 kB / 1.017 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.6356, allocations: 15.98 kB / 1.017 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.6356, allocations: 7.875 kB / 1.017 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.6357, allocations: 23.92 kB / 1.017 GB, free: 3.422 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.516e-06/0.6357, allocations: 4 kB / 1.017 GB, free: 3.418 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.898e-05/0.6358, allocations: 112.5 kB / 1.017 GB, free: 3.305 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.294e-05/0.6358, allocations: 3.906 kB / 1.017 GB, free: 3.301 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.6359, allocations: 75.86 kB / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.6359, allocations: 0 / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.636, allocations: 0 / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.636, allocations: 0 / 1.017 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.6363, allocations: 327.1 kB / 1.017 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.6363, allocations: 0 / 1.017 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.551e-05/0.6364, allocations: 15.98 kB / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.6364, allocations: 96 / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.6364, allocations: 0 / 1.017 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.6364, allocations: 4.453 kB / 1.017 GB, free: 2.863 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.6364, allocations: 3.984 kB / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00013/0.6366, allocations: 174 kB / 1.017 GB, free: 2.684 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.6366, allocations: 81.09 kB / 1.017 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.6366, allocations: 3.906 kB / 1.017 GB, free: 2.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.6368, allocations: 15.98 kB / 1.017 GB, free: 2.566 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.6368, allocations: 19.61 kB / 1.018 GB, free: 2.551 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.6368, allocations: 4 kB / 1.018 GB, free: 2.547 MB / 0.6355 GB Notification: Performance of sort global known variables: time 3.721e-05/0.6369, allocations: 82.78 kB / 1.018 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0002216/0.6371, allocations: 15.94 kB / 1.018 GB, free: 2.453 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: 5 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * 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.0001052/0.6372, allocations: 99.23 kB / 1.018 GB, free: 2.348 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001006/0.6373, allocations: 38.56 kB / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.213e-06/0.6373, allocations: 0 / 1.018 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.74e-05/0.6374, allocations: 27.06 kB / 1.018 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.6376, allocations: 15.42 kB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002667/0.6379, allocations: 90.05 kB / 1.018 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.6381, allocations: 0.7074 MB / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of SimCode: time 2.3e-07/0.6381, allocations: 0 / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of Templates: time 0.002503/0.6406, allocations: 0.8042 MB / 1.019 GB, free: 0.6641 MB / 0.6355 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches