Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") [: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.449/1.449, allocations: 249.4 MB / 256.7 MB, free: 7.062 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.001229/0.001229, allocations: 196.3 kB / 316 MB, free: 3.539 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.525/1.525, allocations: 205.1 MB / 0.5667 GB, free: 15.69 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.0008957/0.0008957, allocations: 81.44 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.975e-06/7.995e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1977, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6067/0.8044, allocations: 131.9 MB / 1.013 GB, free: 7.055 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002714/0.8048, allocations: 72.12 kB / 1.013 GB, free: 7.016 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004018/0.8088, allocations: 1.041 MB / 1.014 GB, free: 6.168 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.8088, allocations: 0 / 1.014 GB, free: 6.168 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005868/0.8094, allocations: 365.6 kB / 1.015 GB, free: 5.77 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 6.091e-05/0.8095, allocations: 12.02 kB / 1.015 GB, free: 5.758 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.457e-05/0.8096, allocations: 7.906 kB / 1.015 GB, free: 5.75 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.8098, allocations: 174.9 kB / 1.015 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.8098, allocations: 3.688 kB / 1.015 GB, free: 5.539 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.892e-05/0.8099, allocations: 4 kB / 1.015 GB, free: 5.535 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001308/0.81, allocations: 33.98 kB / 1.015 GB, free: 5.512 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.8101, allocations: 59.61 kB / 1.015 GB, free: 5.457 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.8102, allocations: 4 kB / 1.015 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.588e-05/0.8102, allocations: 0 / 1.015 GB, free: 5.453 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.8102, allocations: 7.984 kB / 1.015 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005124/0.8107, allocations: 253.9 kB / 1.015 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.8108, allocations: 56.39 kB / 1.015 GB, free: 5.125 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.82e-05/0.8109, allocations: 31.41 kB / 1.015 GB, free: 5.102 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.457e-05/0.8109, allocations: 4 kB / 1.015 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001283/0.8111, allocations: 83.52 kB / 1.016 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=9): time 1.422e-06/0.8111, allocations: 0 / 1.016 GB, free: 5.02 MB / 0.6355 GB Notification: Performance of matching and sorting (n=9): time 0.0002355/0.8113, allocations: 93.77 kB / 1.016 GB, free: 4.938 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.8114, allocations: 51.41 kB / 1.016 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.944e-05/0.8115, allocations: 116.2 kB / 1.016 GB, free: 4.762 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.8115, allocations: 25.7 kB / 1.016 GB, free: 4.73 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.209e-05/0.8115, allocations: 84.14 kB / 1.016 GB, free: 4.645 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.8116, allocations: 27.3 kB / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.8116, allocations: 0 / 1.016 GB, free: 4.621 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001936/0.8118, allocations: 318.3 kB / 1.016 GB, free: 4.305 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.807e-05/0.8118, allocations: 22.88 kB / 1.016 GB, free: 4.293 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.57e-05/0.8119, allocations: 40.94 kB / 1.016 GB, free: 4.258 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.37e-05/0.812, allocations: 29.22 kB / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.812, allocations: 0 / 1.016 GB, free: 4.238 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003771/0.8124, allocations: 143.5 kB / 1.016 GB, free: 4.105 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.8124, allocations: 4 kB / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.8124, allocations: 0 / 1.016 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001546/0.8125, allocations: 44.17 kB / 1.016 GB, free: 4.066 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.165e-05/0.8126, allocations: 4 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.8138, allocations: 1.338 MB / 1.018 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.973e-05/0.8139, allocations: 8.047 kB / 1.018 GB, free: 2.652 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.8139, allocations: 7.984 kB / 1.018 GB, free: 2.645 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition3,$whenCondition2,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * 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: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 9.439e-05/0.814, allocations: 109.1 kB / 1.018 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.742e-05/0.8141, allocations: 12 kB / 1.018 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.787e-05/0.8141, allocations: 7.562 kB / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.8141, allocations: 0 / 1.018 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.8141, allocations: 3.906 kB / 1.018 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.8141, allocations: 96 / 1.018 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005134/0.8146, allocations: 359.8 kB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.8146, allocations: 3.984 kB / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.98e-05/0.8147, allocations: 11.98 kB / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.8147, allocations: 0 / 1.018 GB, free: 2.133 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.8147, allocations: 4 kB / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.8147, allocations: 0 / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.8147, allocations: 0 / 1.018 GB, free: 2.129 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001948/0.8149, allocations: 197.2 kB / 1.018 GB, free: 1.941 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.402e-05/0.815, allocations: 89.05 kB / 1.019 GB, free: 1.836 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.893e-05/0.815, allocations: 3.938 kB / 1.019 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001281/0.8152, allocations: 11.98 kB / 1.019 GB, free: 1.82 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.829e-05/0.8152, allocations: 7.984 kB / 1.019 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.8152, allocations: 7.984 kB / 1.019 GB, free: 1.805 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.291e-05/0.8153, allocations: 97.95 kB / 1.019 GB, free: 1.715 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000264/0.8156, allocations: 16 kB / 1.019 GB, free: 1.699 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: 8 (booPul.y,$whenCondition3,$whenCondition2,$whenCondition1,booPul.pulseStart,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001394/0.8157, allocations: 99.25 kB / 1.019 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002857/0.816, allocations: 162 kB / 1.019 GB, free: 1.441 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.816, allocations: 4 kB / 1.019 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 7.568e-05/0.8161, allocations: 34.81 kB / 1.019 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.8163, allocations: 25.38 kB / 1.019 GB, free: 1.395 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003192/0.8167, allocations: 107.1 kB / 1.019 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003824/0.8171, allocations: 0.6997 MB / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of SimCode: time 2.4e-07/0.8171, allocations: 0 / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of Templates: time 0.003581/0.8206, allocations: 1.207 MB / 1.021 GB, free: 15.37 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches