Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Ramp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramUp.u|ramUp.y|ramUp1.y|ramUp.active|ramUpDow.u|ramUpDow.y|ramUpDow.active|ramUpDow1.u|ramUpDow1.y|ramUpDow1.active",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Ramp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|ramUp.u|ramUp.y|ramUp1.y|ramUp.active|ramUpDow.u|ramUpDow.y|ramUpDow.active|ramUpDow1.u|ramUpDow1.y|ramUpDow1.active",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002172/0.002172, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.588/1.588, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.93/2.93, allocations: 472.7 MB / 0.7452 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 66.23 kB / 0.9121 GB, free: 33.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3798, allocations: 159.9 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Ramp): time 0.002727/0.3826, allocations: 1.29 MB / 1.07 GB, free: 9.047 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002166/0.3848, allocations: 1.7 MB / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.3849, allocations: 0 / 1.071 GB, free: 7.332 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.333e-05/0.385, allocations: 19.69 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000212/0.3852, allocations: 87.33 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001335/0.3866, allocations: 0.6431 MB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006629/0.3872, allocations: 0.7838 MB / 1.073 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3874, allocations: 72.48 kB / 1.073 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002626/0.3877, allocations: 299.3 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002717/0.388, allocations: 247.1 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.3881, allocations: 72 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.3883, allocations: 87.98 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.643e-05/0.3883, allocations: 75.69 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002765/0.3886, allocations: 259.1 kB / 1.074 GB, free: 4.719 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006088/0.3892, allocations: 0.682 MB / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3892, allocations: 0 / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.287e-06/0.3893, allocations: 0 / 1.074 GB, free: 4.035 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.658e-06/0.3893, allocations: 7.938 kB / 1.074 GB, free: 4.027 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.001285/0.3906, allocations: 0.8594 MB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.3906, allocations: 12.03 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.3907, allocations: 48.56 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.3922, allocations: 471.2 kB / 1.076 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.026e-05/0.3922, allocations: 24.38 kB / 1.076 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.922e-05/0.3923, allocations: 48.36 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004569/0.3928, allocations: 212.7 kB / 1.076 GB, free: 2.227 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.3928, allocations: 7.922 kB / 1.076 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.3929, allocations: 15.92 kB / 1.076 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.3929, allocations: 7.938 kB / 1.076 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.3932, allocations: 123.9 kB / 1.076 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001195/0.3944, allocations: 0.9531 MB / 1.077 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006582/0.3951, allocations: 228.1 kB / 1.077 GB, free: 0.8125 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002615/0.3953, allocations: 102.5 kB / 1.077 GB, free: 0.7031 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.3954, allocations: 12 kB / 1.077 GB, free: 0.6914 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005645/0.396, allocations: 290.9 kB / 1.078 GB, free: 396 kB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 1.683e-06/0.396, allocations: 0 / 1.078 GB, free: 396 kB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.00111/0.3971, allocations: 466.9 kB / 1.078 GB, free: 15.92 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.3972, allocations: 106.8 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.3974, allocations: 266.9 kB / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.339e-05/0.3975, allocations: 45.7 kB / 1.079 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.3976, allocations: 160.8 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.818e-05/0.3977, allocations: 98.61 kB / 1.079 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000237/0.398, allocations: 154 kB / 1.079 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3981, allocations: 346.8 kB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000515/0.3986, allocations: 220.9 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006119/0.3993, allocations: 392.6 kB / 1.08 GB, free: 14.04 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008928/0.4002, allocations: 0.5744 MB / 1.08 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4002, allocations: 0 / 1.08 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001498/0.4017, allocations: 0.8462 MB / 1.081 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.4018, allocations: 190.5 kB / 1.081 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.4018, allocations: 8 kB / 1.081 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.4019, allocations: 7.938 kB / 1.081 GB, free: 12.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.4021, allocations: 47.91 kB / 1.081 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.4021, allocations: 8 kB / 1.081 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008833/0.403, allocations: 183.4 kB / 1.082 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.927e-05/0.4031, allocations: 43.97 kB / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition13,$whenCondition14,$whenCondition11,$whenCondition12,pul.booPul.y,$PRE.pul.booPul.y,booPul1.y,$PRE.booPul1.y,$whenCondition15,$whenCondition8,$whenCondition9,$whenCondition6,$whenCondition7,pul1.booPul.y,$PRE.pul1.booPul.y,booPul2.y,$PRE.booPul2.y,$whenCondition10,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul5.y,$PRE.booPul5.y,pul2.booPul.y,$PRE.pul2.booPul.y,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 6 * 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.000208/0.4033, allocations: 181.1 kB / 1.082 GB, free: 11.81 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.198e-05/0.4033, allocations: 31.62 kB / 1.082 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.017e-05/0.4034, allocations: 33.8 kB / 1.082 GB, free: 11.74 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.4034, allocations: 8 kB / 1.082 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4034, allocations: 0 / 1.082 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.4034, allocations: 0 / 1.082 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00123/0.4047, allocations: 0.9282 MB / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4047, allocations: 192 / 1.083 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.4049, allocations: 35.97 kB / 1.083 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.08e-06/0.4049, allocations: 11.88 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.659e-05/0.405, allocations: 19.97 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.405, allocations: 0 / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.405, allocations: 4 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001081/0.4061, allocations: 0.7051 MB / 1.084 GB, free: 9.953 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/0.4061, allocations: 108.7 kB / 1.084 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.734e-05/0.4062, allocations: 8 kB / 1.084 GB, free: 9.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002252/0.4064, allocations: 23.92 kB / 1.084 GB, free: 9.797 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.4065, allocations: 31.89 kB / 1.084 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.4065, allocations: 19.98 kB / 1.084 GB, free: 9.746 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001489/0.4067, allocations: 182 kB / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4067, allocations: 0 / 1.084 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005086/0.4072, allocations: 119.8 kB / 1.084 GB, free: 9.453 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (ramUpDow1.y_internal,ramUpDow.y_internal,ramUp.y_internal,ramUp1.y_internal) * Number of discrete variables: 21 ($whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pul2.booPul.y,booPul5.y,$whenCondition10,$whenCondition8,$whenCondition9,$whenCondition6,$whenCondition7,booPul2.y,pul1.booPul.y,$whenCondition15,$whenCondition13,$whenCondition14,$whenCondition11,$whenCondition12,booPul1.y,pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.0002154/0.4074, allocations: 123.6 kB / 1.084 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001423/0.4088, allocations: 0.8473 MB / 1.085 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.4089, allocations: 0 / 1.085 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000348/0.4092, allocations: 159.8 kB / 1.085 GB, free: 8.246 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007981/0.41, allocations: 118.2 kB / 1.085 GB, free: 8.133 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.4112, allocations: 0.5956 MB / 1.086 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.4116, allocations: 0.7767 MB / 1.087 GB, free: 6.703 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002085/0.4118, allocations: 55.22 kB / 1.087 GB, free: 6.648 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.796e-05/0.4118, allocations: 35.42 kB / 1.087 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of SimCode: time 5.51e-07/0.4118, allocations: 0 / 1.087 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of Templates: time 0.0112/0.4231, allocations: 6.988 MB / 1.094 GB, free: 15.72 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Ramp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches