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.001291/0.001291, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001297/0.001297, allocations: 187 kB / 17.34 MB, free: 5.719 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.266/1.266, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.472/2.472, allocations: 469.4 MB / 0.7428 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.91 kB / 1.066 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6936/0.6949, allocations: 159.1 MB / 1.221 GB, free: 2.352 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001893/0.6968, allocations: 0.8835 MB / 1.222 GB, free: 1.465 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.6982, allocations: 1.174 MB / 1.223 GB, free: 284 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.35e-05/0.6983, allocations: 4 kB / 1.223 GB, free: 280 kB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.692e-05/0.6984, allocations: 7.875 kB / 1.223 GB, free: 272 kB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.812e-05/0.6984, allocations: 19.8 kB / 1.223 GB, free: 252 kB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.699, allocations: 163 kB / 1.223 GB, free: 92 kB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000212/0.6992, allocations: 171.6 kB / 1.223 GB, free: 15.92 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.6994, allocations: 41.03 kB / 1.223 GB, free: 15.88 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.821e-05/0.6995, allocations: 63.83 kB / 1.223 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.6996, allocations: 71.72 kB / 1.223 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.43e-05/0.6996, allocations: 16 kB / 1.223 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 8.272e-05/0.6997, allocations: 27.98 kB / 1.224 GB, free: 15.71 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.391e-05/0.6997, allocations: 23.92 kB / 1.224 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 7.915e-05/0.6998, allocations: 67.7 kB / 1.224 GB, free: 15.62 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.7001, allocations: 167.2 kB / 1.224 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.7001, allocations: 0 / 1.224 GB, free: 15.46 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.503e-06/0.7001, allocations: 4 kB / 1.224 GB, free: 15.45 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.5e-06/0.7001, allocations: 0 / 1.224 GB, free: 15.45 MB / 0.9512 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.0006967/0.7008, allocations: 462.5 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.7008, allocations: 12.62 kB / 1.224 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.694e-05/0.7009, allocations: 16.83 kB / 1.224 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005145/0.7014, allocations: 254.5 kB / 1.224 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.7014, allocations: 8.375 kB / 1.224 GB, free: 14.62 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.965e-05/0.7015, allocations: 16.31 kB / 1.224 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.7017, allocations: 97.23 kB / 1.225 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.7017, allocations: 3.938 kB / 1.225 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.7017, allocations: 0 / 1.225 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.7018, allocations: 0 / 1.225 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.7019, allocations: 47.95 kB / 1.225 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000678/0.7026, allocations: 392.4 kB / 1.225 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.7028, allocations: 38.55 kB / 1.225 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.576e-05/0.7029, allocations: 20.84 kB / 1.225 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.7029, allocations: 4 kB / 1.225 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002302/0.7031, allocations: 107.4 kB / 1.225 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.7031, allocations: 0 / 1.225 GB, free: 13.84 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0004077/0.7035, allocations: 141.4 kB / 1.225 GB, free: 13.69 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.7036, allocations: 59.34 kB / 1.225 GB, free: 13.62 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.7037, allocations: 133.8 kB / 1.225 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.7037, allocations: 33.7 kB / 1.226 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.7038, allocations: 107.9 kB / 1.226 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.7038, allocations: 31.78 kB / 1.226 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.7039, allocations: 45.69 kB / 1.226 GB, free: 13.25 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.704, allocations: 322.8 kB / 1.226 GB, free: 12.93 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.7042, allocations: 43.97 kB / 1.226 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.7044, allocations: 131.1 kB / 1.226 GB, free: 12.71 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003107/0.7047, allocations: 204.7 kB / 1.226 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.7047, allocations: 384 / 1.226 GB, free: 12.47 MB / 0.9512 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004592/0.7052, allocations: 250.8 kB / 1.227 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.7052, allocations: 35.27 kB / 1.227 GB, free: 12.17 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.7053, allocations: 7.938 kB / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.7053, allocations: 7.938 kB / 1.227 GB, free: 12.16 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.7054, allocations: 31.91 kB / 1.227 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.7054, allocations: 7.938 kB / 1.227 GB, free: 12.12 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.7056, allocations: 40.28 kB / 1.227 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/0.7057, allocations: 15.98 kB / 1.227 GB, free: 12.06 MB / 0.9512 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 0.000105/0.7058, allocations: 126.3 kB / 1.227 GB, free: 11.93 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.815e-05/0.7058, allocations: 11.81 kB / 1.227 GB, free: 11.92 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.7058, allocations: 12.72 kB / 1.227 GB, free: 11.9 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.7058, allocations: 3.984 kB / 1.227 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.7058, allocations: 3.938 kB / 1.227 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.7059, allocations: 4 kB / 1.227 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000517/0.7064, allocations: 390.5 kB / 1.227 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.7064, allocations: 4 kB / 1.227 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.756e-05/0.7065, allocations: 15.98 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.7065, allocations: 3.938 kB / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.7065, allocations: 0 / 1.227 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.7065, allocations: 4 kB / 1.227 GB, free: 11.42 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.7065, allocations: 7.984 kB / 1.227 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003935/0.7069, allocations: 235.2 kB / 1.228 GB, free: 11.17 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.896e-05/0.707, allocations: 84.95 kB / 1.228 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.016e-05/0.707, allocations: 12.03 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.67e-05/0.7071, allocations: 4 kB / 1.228 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.7071, allocations: 19.92 kB / 1.228 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.7072, allocations: 4 kB / 1.228 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 5.985e-05/0.7072, allocations: 105 kB / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7072, allocations: 0 / 1.228 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002838/0.7075, allocations: 31.94 kB / 1.228 GB, free: 10.89 MB / 0.9512 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.0001684/0.7077, allocations: 115 kB / 1.228 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003762/0.7081, allocations: 187.4 kB / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.7081, allocations: 0 / 1.228 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.7082, allocations: 43.91 kB / 1.228 GB, free: 10.54 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.7085, allocations: 19.98 kB / 1.228 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005055/0.709, allocations: 300.2 kB / 1.228 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.7093, allocations: 0.7045 MB / 1.229 GB, free: 9.465 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.7093, allocations: 23.38 kB / 1.229 GB, free: 9.441 MB / 0.9512 GB Notification: Performance of SimCode: time 2.61e-07/0.7093, allocations: 3.938 kB / 1.229 GB, free: 9.438 MB / 0.9512 GB Notification: Performance of Templates: time 0.003118/0.7124, allocations: 1.724 MB / 1.231 GB, free: 7.723 MB / 0.9512 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