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.001112/0.001112, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001176/0.001176, allocations: 194.3 kB / 16.14 MB, free: 6.691 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.538/1.538, allocations: 222.9 MB / 239.8 MB, free: 4.652 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.799/2.799, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 70.7 kB / 0.9114 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.466/0.4682, allocations: 159.9 MB / 1.068 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Ramp): time 0.003746/0.472, allocations: 1.347 MB / 1.069 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003547/0.4756, allocations: 1.763 MB / 1.071 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002297/0.4759, allocations: 4 kB / 1.071 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.476, allocations: 15.8 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003189/0.4764, allocations: 67.53 kB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002312/0.4787, allocations: 0.5981 MB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009607/0.4797, allocations: 0.6588 MB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.4799, allocations: 76.47 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004547/0.4804, allocations: 255.2 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003925/0.4808, allocations: 219.2 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001321/0.481, allocations: 36 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.4812, allocations: 55.92 kB / 1.073 GB, free: 5.801 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.837e-05/0.4813, allocations: 59.73 kB / 1.073 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003727/0.4817, allocations: 227.1 kB / 1.073 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009382/0.4826, allocations: 0.6507 MB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4826, allocations: 4 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4826, allocations: 0 / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.997e-06/0.4827, allocations: 0 / 1.073 GB, free: 4.863 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.00211/0.4848, allocations: 0.8672 MB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.193e-05/0.4849, allocations: 8.031 kB / 1.074 GB, free: 3.898 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002246/0.4851, allocations: 52.55 kB / 1.074 GB, free: 3.848 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002081/0.4872, allocations: 463.2 kB / 1.075 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.813e-05/0.4873, allocations: 28.38 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.4874, allocations: 48.36 kB / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006751/0.4881, allocations: 220.6 kB / 1.075 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.4881, allocations: 7.875 kB / 1.075 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.425e-05/0.4882, allocations: 11.98 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.4882, allocations: 4 kB / 1.075 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004716/0.4887, allocations: 119.9 kB / 1.075 GB, free: 2.91 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.4905, allocations: 0.953 MB / 1.076 GB, free: 1.898 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009315/0.4914, allocations: 240.1 kB / 1.076 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003591/0.4918, allocations: 98.53 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.431e-05/0.4919, allocations: 4 kB / 1.076 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008569/0.4927, allocations: 299.2 kB / 1.077 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=37): time 2.584e-06/0.4928, allocations: 0 / 1.077 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of matching and sorting (n=37): time 0.002086/0.4948, allocations: 459.5 kB / 1.077 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.495, allocations: 114.8 kB / 1.077 GB, free: 0.625 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004669/0.4955, allocations: 266.9 kB / 1.078 GB, free: 368 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001782/0.4956, allocations: 45.7 kB / 1.078 GB, free: 316 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002561/0.4959, allocations: 164.8 kB / 1.078 GB, free: 148 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.4961, allocations: 98.61 kB / 1.078 GB, free: 48 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004545/0.4965, allocations: 150.1 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000198/0.4967, allocations: 346.8 kB / 1.078 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009436/0.4977, allocations: 224.8 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.4989, allocations: 380.7 kB / 1.079 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001591/0.5005, allocations: 0.5775 MB / 1.079 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.5005, allocations: 0 / 1.079 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002332/0.5028, allocations: 0.8492 MB / 1.08 GB, free: 13.34 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.503, allocations: 186.2 kB / 1.08 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.384e-05/0.503, allocations: 4.375 kB / 1.08 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.567e-05/0.5031, allocations: 11.94 kB / 1.08 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.5033, allocations: 51.84 kB / 1.081 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.41e-05/0.5034, allocations: 11.98 kB / 1.081 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009383/0.5043, allocations: 183.4 kB / 1.081 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/0.5044, allocations: 40.05 kB / 1.081 GB, free: 12.82 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.0003088/0.5047, allocations: 179.5 kB / 1.081 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.361e-05/0.5048, allocations: 31.62 kB / 1.081 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.065e-05/0.5049, allocations: 37.8 kB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.5049, allocations: 7.938 kB / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.5049, allocations: 0 / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.5049, allocations: 3.984 kB / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.5064, allocations: 0.9184 MB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5064, allocations: 0 / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.5066, allocations: 47.88 kB / 1.082 GB, free: 11.53 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.082e-06/0.5066, allocations: 4 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.5067, allocations: 11.98 kB / 1.082 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.5067, allocations: 11.98 kB / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5067, allocations: 0 / 1.082 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.5078, allocations: 0.7079 MB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.971e-05/0.5079, allocations: 104.7 kB / 1.083 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.805e-05/0.5079, allocations: 15.97 kB / 1.083 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.5082, allocations: 15.98 kB / 1.083 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.5083, allocations: 27.97 kB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.5083, allocations: 19.98 kB / 1.083 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001737/0.5085, allocations: 186 kB / 1.083 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5085, allocations: 0 / 1.083 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000615/0.5091, allocations: 115.8 kB / 1.083 GB, free: 10.28 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.0002406/0.5094, allocations: 121.2 kB / 1.083 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.5107, allocations: 0.8362 MB / 1.084 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5108, allocations: 0 / 1.084 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003406/0.5111, allocations: 159.8 kB / 1.084 GB, free: 9.086 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.5119, allocations: 107.5 kB / 1.084 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.5131, allocations: 0.6754 MB / 1.085 GB, free: 8.273 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.5135, allocations: 0.773 MB / 1.086 GB, free: 7.473 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00024/0.5137, allocations: 51.28 kB / 1.086 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.491e-05/0.5138, allocations: 39.42 kB / 1.086 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of SimCode: time 3.1e-07/0.5138, allocations: 0 / 1.086 GB, free: 7.383 MB / 0.8419 GB Notification: Performance of Templates: time 0.01342/0.5272, allocations: 6.665 MB / 1.092 GB, free: 0.8125 MB / 0.8419 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