Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset") [: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.809/1.809, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001002/0.001002, allocations: 180 kB / 487 MB, free: 5.391 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.135/1.135, allocations: 221.3 MB / 0.7819 GB, free: 1.375 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.0008163/0.0008163, allocations: 86.95 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.567e-06/8.587e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1801/0.1802, allocations: 142.3 MB / 1.205 GB, free: 26.22 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5147/0.6949, allocations: 149.1 MB / 1.351 GB, free: 16 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001536/0.6951, allocations: 67.44 kB / 1.351 GB, free: 16 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.008678/0.7038, allocations: 2.956 MB / 1.354 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.995e-06/0.7038, allocations: 6.688 kB / 1.354 GB, free: 15.82 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004161/0.7042, allocations: 427.5 kB / 1.354 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.7043, allocations: 8.812 kB / 1.354 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.23e-05/0.7043, allocations: 19.81 kB / 1.354 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.819e-05/0.7044, allocations: 185.2 kB / 1.354 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.7044, allocations: 2.125 kB / 1.354 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.7045, allocations: 10 kB / 1.354 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.884e-05/0.7046, allocations: 29.44 kB / 1.354 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.7047, allocations: 67.62 kB / 1.355 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.7047, allocations: 9 kB / 1.355 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.7047, allocations: 0.75 kB / 1.355 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.7047, allocations: 1.719 kB / 1.355 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006632/0.7054, allocations: 396.5 kB / 1.355 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.693e-05/0.7055, allocations: 30.66 kB / 1.355 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.29e-05/0.7055, allocations: 16.86 kB / 1.355 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.7055, allocations: 2.375 kB / 1.355 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.066e-05/0.7056, allocations: 82.39 kB / 1.355 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.7056, allocations: 0 / 1.355 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0001769/0.7058, allocations: 83.27 kB / 1.355 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.843e-05/0.7058, allocations: 61.28 kB / 1.355 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.87e-05/0.7059, allocations: 120.8 kB / 1.355 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.7059, allocations: 27.55 kB / 1.355 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.393e-05/0.706, allocations: 107.2 kB / 1.355 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.706, allocations: 22.89 kB / 1.355 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.461e-05/0.706, allocations: 1.656 kB / 1.355 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.345e-05/0.7061, allocations: 321.3 kB / 1.356 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.693e-05/0.7062, allocations: 40.22 kB / 1.356 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.7063, allocations: 114.1 kB / 1.356 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.7066, allocations: 74.59 kB / 1.356 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.7066, allocations: 1.625 kB / 1.356 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004627/0.707, allocations: 196 kB / 1.356 GB, free: 14 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.7071, allocations: 5 kB / 1.356 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.7071, allocations: 6.594 kB / 1.356 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.7071, allocations: 4.344 kB / 1.356 GB, free: 14 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001274/0.7072, allocations: 35.19 kB / 1.356 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.7072, allocations: 5.578 kB / 1.356 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.7075, allocations: 57.75 kB / 1.356 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.7075, allocations: 10.56 kB / 1.356 GB, free: 13.98 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition4,$PRE.booleanPulse.y,booleanPulse.y,$whenCondition1,$whenCondition2,$whenCondition3,intDef.trigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * 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 6.103e-05/0.7076, allocations: 118.6 kB / 1.356 GB, free: 13.87 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.639e-05/0.7076, allocations: 15.88 kB / 1.356 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.274e-05/0.7077, allocations: 12.02 kB / 1.356 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.7077, allocations: 2.031 kB / 1.356 GB, free: 13.86 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.7077, allocations: 3.938 kB / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.7077, allocations: 1.359 kB / 1.356 GB, free: 13.85 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003331/0.708, allocations: 349.8 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.708, allocations: 0 / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.7082, allocations: 21.5 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.7082, allocations: 1.031 kB / 1.357 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.7082, allocations: 6.016 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.7082, allocations: 1.094 kB / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.7082, allocations: 0 / 1.357 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001996/0.7084, allocations: 208.5 kB / 1.357 GB, free: 13.43 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3e-05/0.7084, allocations: 88.5 kB / 1.357 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.7085, allocations: 13.52 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.7086, allocations: 9.844 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.7086, allocations: 6.609 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.097e-05/0.7087, allocations: 8.953 kB / 1.357 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.475e-05/0.7087, allocations: 100 kB / 1.357 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002848/0.709, allocations: 33.23 kB / 1.357 GB, free: 13.25 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (intDef.trigger,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001901/0.7092, allocations: 122.8 kB / 1.357 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002392/0.7094, allocations: 121.3 kB / 1.357 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.7095, allocations: 1.062 kB / 1.357 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.464e-05/0.7095, allocations: 30.19 kB / 1.357 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.7098, allocations: 15.5 kB / 1.357 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003874/0.7102, allocations: 177.1 kB / 1.358 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.7104, allocations: 0.7231 MB / 1.358 GB, free: 28.29 MB / 0.823 GB Notification: Performance of SimCode: time 2.6e-07/0.7104, allocations: 0 / 1.358 GB, free: 28.29 MB / 0.823 GB Notification: Performance of Templates: time 0.003823/0.7142, allocations: 1.575 MB / 1.36 GB, free: 28.16 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches