Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.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_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 110.9 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 187 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.441/2.441, allocations: 461.9 MB / 0.7355 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001236, allocations: 63.89 kB / 1.055 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6658/0.6671, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.00185/0.669, allocations: 0.8768 MB / 1.209 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.6703, allocations: 1.182 MB / 1.21 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.563e-05/0.6704, allocations: 4 kB / 1.21 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.207e-05/0.6704, allocations: 7.875 kB / 1.211 GB, free: 11.52 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 9.2e-05/0.6705, allocations: 23.78 kB / 1.211 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000457/0.671, allocations: 147.3 kB / 1.211 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001927/0.6712, allocations: 171.6 kB / 1.211 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.6713, allocations: 41.09 kB / 1.211 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.392e-05/0.6714, allocations: 67.77 kB / 1.211 GB, free: 11.08 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.6715, allocations: 67.73 kB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.109e-05/0.6715, allocations: 12 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.752e-05/0.6716, allocations: 31.98 kB / 1.211 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.002e-05/0.6717, allocations: 31.89 kB / 1.211 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.6717, allocations: 59.72 kB / 1.211 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002056/0.6719, allocations: 171.3 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.672, allocations: 3.938 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.045e-06/0.672, allocations: 3.938 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 9.448e-06/0.672, allocations: 4 kB / 1.211 GB, free: 10.7 MB / 0.9356 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.0006127/0.6726, allocations: 454.6 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.6726, allocations: 8.031 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.32e-05/0.6727, allocations: 16.75 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000507/0.6732, allocations: 257.7 kB / 1.212 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.6732, allocations: 8.375 kB / 1.212 GB, free: 9.883 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.6733, allocations: 8.375 kB / 1.212 GB, free: 9.875 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.6735, allocations: 94.14 kB / 1.212 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-06/0.6735, allocations: 3.938 kB / 1.212 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.6735, allocations: 4 kB / 1.212 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.6735, allocations: 4 kB / 1.212 GB, free: 9.766 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.6737, allocations: 47.89 kB / 1.212 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006614/0.6744, allocations: 396.4 kB / 1.213 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.6745, allocations: 42.48 kB / 1.213 GB, free: 9.23 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.607e-05/0.6746, allocations: 28.97 kB / 1.213 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.6746, allocations: 0 / 1.213 GB, free: 9.199 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002115/0.6749, allocations: 87.36 kB / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.6749, allocations: 0 / 1.213 GB, free: 9.102 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0004006/0.6753, allocations: 141.5 kB / 1.213 GB, free: 8.957 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.6753, allocations: 55.34 kB / 1.213 GB, free: 8.891 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.6754, allocations: 148.1 kB / 1.213 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.6755, allocations: 29.64 kB / 1.213 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.615e-05/0.6755, allocations: 108 kB / 1.213 GB, free: 8.594 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.868e-05/0.6756, allocations: 31.69 kB / 1.213 GB, free: 8.562 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.957e-05/0.6757, allocations: 45.7 kB / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.619e-05/0.6758, allocations: 322.8 kB / 1.214 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.6759, allocations: 52.33 kB / 1.214 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.6761, allocations: 131.7 kB / 1.214 GB, free: 7.973 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002952/0.6764, allocations: 204.6 kB / 1.214 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.6764, allocations: 0 / 1.214 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004443/0.6769, allocations: 246.9 kB / 1.214 GB, free: 7.473 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.6769, allocations: 33.7 kB / 1.214 GB, free: 7.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.6769, allocations: 4 kB / 1.214 GB, free: 7.43 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.6769, allocations: 4 kB / 1.214 GB, free: 7.426 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.6771, allocations: 32.23 kB / 1.214 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.6771, allocations: 15.92 kB / 1.214 GB, free: 7.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.6773, allocations: 39.81 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.6773, allocations: 15.98 kB / 1.214 GB, free: 7.324 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.195e-05/0.6774, allocations: 125.8 kB / 1.214 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.786e-05/0.6775, allocations: 11.91 kB / 1.214 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.982e-05/0.6775, allocations: 8.719 kB / 1.214 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.6775, allocations: 4 kB / 1.214 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.6775, allocations: 7.938 kB / 1.214 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.6775, allocations: 3.984 kB / 1.214 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005011/0.678, allocations: 390.4 kB / 1.215 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.678, allocations: 0 / 1.215 GB, free: 6.711 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.847e-05/0.6781, allocations: 15.92 kB / 1.215 GB, free: 6.695 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.6781, allocations: 3.938 kB / 1.215 GB, free: 6.691 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.6782, allocations: 8 kB / 1.215 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.6782, allocations: 4 kB / 1.215 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.6782, allocations: 0 / 1.215 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003814/0.6785, allocations: 239.4 kB / 1.215 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.577e-05/0.6786, allocations: 96.94 kB / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.6786, allocations: 0 / 1.215 GB, free: 6.316 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.041e-05/0.6787, allocations: 16.03 kB / 1.215 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/0.6788, allocations: 7.984 kB / 1.215 GB, free: 6.293 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.6788, allocations: 4 kB / 1.215 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.03e-05/0.6788, allocations: 107.2 kB / 1.215 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6788, allocations: 192 / 1.215 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002927/0.6791, allocations: 31.94 kB / 1.215 GB, free: 6.152 MB / 0.9356 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 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001428/0.6793, allocations: 115.2 kB / 1.215 GB, free: 6.031 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003571/0.6797, allocations: 187.1 kB / 1.216 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6797, allocations: 0 / 1.216 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.6798, allocations: 39.92 kB / 1.216 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.6801, allocations: 20.72 kB / 1.216 GB, free: 5.777 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004668/0.6806, allocations: 294.6 kB / 1.216 GB, free: 5.453 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.6808, allocations: 0.7045 MB / 1.217 GB, free: 4.723 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.901e-05/0.6808, allocations: 15.44 kB / 1.217 GB, free: 4.711 MB / 0.9356 GB Notification: Performance of SimCode: time 1.383e-06/0.6808, allocations: 0 / 1.217 GB, free: 4.711 MB / 0.9356 GB Notification: Performance of Templates: time 0.003084/0.6839, allocations: 1.748 MB / 1.218 GB, free: 2.977 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches