Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.359/1.359, allocations: 249.4 MB / 256.7 MB, free: 15.88 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001514/0.001514, allocations: 178.5 kB / 316 MB, free: 7.266 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.661/1.661, allocations: 205.1 MB / 0.5667 GB, free: 24 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.0009067/0.0009067, allocations: 89.14 kB / 0.671 GB, free: 1.309 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 9.888e-06/1.001e-05, allocations: 4 kB / 0.7807 GB, free: 0.8047 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6343/0.6343, allocations: 106.3 MB / 0.8846 GB, free: 76.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1694/0.8037, allocations: 131.5 MB / 1.013 GB, free: 8.73 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/0.804, allocations: 79.89 kB / 1.013 GB, free: 8.652 MB / 0.6667 GB Notification: Performance of FrontEnd: time 0.009661/0.8137, allocations: 2.429 MB / 1.015 GB, free: 6.227 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.404e-05/0.8138, allocations: 4 kB / 1.015 GB, free: 6.223 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0009375/0.8147, allocations: 434.4 kB / 1.016 GB, free: 5.754 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.8148, allocations: 12.02 kB / 1.016 GB, free: 5.742 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.462e-05/0.8149, allocations: 19.81 kB / 1.016 GB, free: 5.723 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003904/0.8153, allocations: 209.8 kB / 1.016 GB, free: 5.477 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.8153, allocations: 0 / 1.016 GB, free: 5.477 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.8154, allocations: 11.91 kB / 1.016 GB, free: 5.465 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002254/0.8156, allocations: 36 kB / 1.016 GB, free: 5.43 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003515/0.816, allocations: 119.5 kB / 1.016 GB, free: 5.293 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.816, allocations: 3.938 kB / 1.016 GB, free: 5.289 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.8161, allocations: 8 kB / 1.016 GB, free: 5.281 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.8161, allocations: 0 / 1.016 GB, free: 5.281 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.8177, allocations: 0.7085 MB / 1.017 GB, free: 4.52 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.8178, allocations: 38.58 kB / 1.017 GB, free: 4.473 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.641e-05/0.8179, allocations: 16.86 kB / 1.017 GB, free: 4.453 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 2.666e-05/0.8179, allocations: 0 / 1.017 GB, free: 4.453 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002128/0.8182, allocations: 98.73 kB / 1.017 GB, free: 4.332 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=11): time 5.65e-06/0.8182, allocations: 0 / 1.017 GB, free: 4.332 MB / 0.6667 GB Notification: Performance of matching and sorting (n=11): time 0.0003539/0.8185, allocations: 97.45 kB / 1.017 GB, free: 4.23 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.638e-05/0.8187, allocations: 132.5 kB / 1.017 GB, free: 4.07 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.8189, allocations: 142.4 kB / 1.017 GB, free: 3.926 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 4.349e-05/0.8189, allocations: 29.7 kB / 1.018 GB, free: 3.891 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.844e-05/0.819, allocations: 112 kB / 1.018 GB, free: 3.777 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/0.8191, allocations: 31.55 kB / 1.018 GB, free: 3.746 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.052e-05/0.8191, allocations: 0 / 1.018 GB, free: 3.746 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001781/0.8193, allocations: 330.7 kB / 1.018 GB, free: 3.414 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.093e-05/0.8194, allocations: 24.06 kB / 1.018 GB, free: 3.391 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.8196, allocations: 104 kB / 1.018 GB, free: 3.246 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.8197, allocations: 39.95 kB / 1.018 GB, free: 3.207 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.8197, allocations: 0 / 1.018 GB, free: 3.207 MB / 0.6667 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004649/0.8202, allocations: 141.2 kB / 1.018 GB, free: 3.062 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.8202, allocations: 4 kB / 1.018 GB, free: 3.059 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.8203, allocations: 4 kB / 1.018 GB, free: 3.055 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.244e-05/0.8203, allocations: 4 kB / 1.018 GB, free: 3.051 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.8206, allocations: 40.31 kB / 1.018 GB, free: 3.012 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.8206, allocations: 7.984 kB / 1.018 GB, free: 3.004 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.8209, allocations: 23.89 kB / 1.018 GB, free: 2.98 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/0.8209, allocations: 11.94 kB / 1.018 GB, free: 2.969 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * 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 0.0001329/0.8211, allocations: 120.9 kB / 1.018 GB, free: 2.844 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.8211, allocations: 11.81 kB / 1.018 GB, free: 2.832 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.225e-05/0.8212, allocations: 17.39 kB / 1.019 GB, free: 2.812 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.8213, allocations: 4 kB / 1.019 GB, free: 2.809 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.8213, allocations: 0 / 1.019 GB, free: 2.809 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.8213, allocations: 4 kB / 1.019 GB, free: 2.805 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001005/0.8223, allocations: 462.2 kB / 1.019 GB, free: 2.309 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.8223, allocations: 3.984 kB / 1.019 GB, free: 2.305 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002488/0.8226, allocations: 23.92 kB / 1.019 GB, free: 2.281 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.8226, allocations: 4.125 kB / 1.019 GB, free: 2.277 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.357e-05/0.8227, allocations: 15.91 kB / 1.019 GB, free: 2.262 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.8227, allocations: 0 / 1.019 GB, free: 2.262 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.8227, allocations: 0 / 1.019 GB, free: 2.262 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004754/0.8232, allocations: 337.4 kB / 1.019 GB, free: 1.891 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 6.285e-05/0.8232, allocations: 85.02 kB / 1.019 GB, free: 1.789 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.002e-05/0.8233, allocations: 4.109 kB / 1.019 GB, free: 1.785 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000366/0.8237, allocations: 27.84 kB / 1.019 GB, free: 1.758 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.8238, allocations: 19.89 kB / 1.019 GB, free: 1.738 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.8238, allocations: 4 kB / 1.019 GB, free: 1.734 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0001237/0.8239, allocations: 120.3 kB / 1.02 GB, free: 1.617 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.0005909/0.8246, allocations: 23.94 kB / 1.02 GB, free: 1.594 MB / 0.6667 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0002435/0.8248, allocations: 107.2 kB / 1.02 GB, free: 1.48 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.0002785/0.8251, allocations: 72.5 kB / 1.02 GB, free: 1.41 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.8251, allocations: 0 / 1.02 GB, free: 1.41 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0001335/0.8253, allocations: 31.94 kB / 1.02 GB, free: 1.379 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006503/0.8259, allocations: 40.8 kB / 1.02 GB, free: 1.34 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000993/0.827, allocations: 243.3 kB / 1.02 GB, free: 1.07 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004682/0.8274, allocations: 0.7356 MB / 1.021 GB, free: 316 kB / 0.6667 GB Notification: Performance of SimCode: time 4.5e-07/0.8275, allocations: 3.938 kB / 1.021 GB, free: 312 kB / 0.6667 GB Notification: Performance of Templates: time 0.005684/0.8332, allocations: 1.428 MB / 1.022 GB, free: 14.91 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable intDef.y_reset_in in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat. Warning: Get data of variable intDef.y_reset_in from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat failed! Error: Could not read variable intWitRes1.y_reset_in in file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat. Warning: Get data of variable intWitRes1.y_reset_in from file Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat failed! " Variables in the reference: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 Variables in the result:booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,cons.k,cons.y,intDef.k,intDef.reset,intDef.y,intDef.y_reset,intDef.y_start,intNoReset.k,intNoReset.reset,intNoReset.y_reset,intNoReset.y_start,intWitRes1.k,intWitRes1.reset,intWitRes1.y,intWitRes1.y_reset,intWitRes1.y_start,intWitRes2.k,intWitRes2.reset,intWitRes2.y,intWitRes2.y_reset,intWitRes2.y_reset_in,intWitRes2.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,sampleTrigger.period,sampleTrigger.startTime,time