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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Ramp,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Ramp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Ramp,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Ramp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007898/0.007898, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001578/0.001578, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.603/1.603, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.866/2.866, allocations: 469.4 MB / 0.7422 GB, free: 7.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 71.89 kB / 1.064 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3535, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Ramp): time 0.002884/0.3565, allocations: 1.292 MB / 1.221 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002655/0.3591, allocations: 1.696 MB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002213/0.3594, allocations: 0 / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 9.867e-05/0.3595, allocations: 19.69 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.3599, allocations: 99.33 kB / 1.223 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.3616, allocations: 0.6502 MB / 1.223 GB, free: 10.88 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001142/0.3628, allocations: 0.7994 MB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002136/0.363, allocations: 64.72 kB / 1.224 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005897/0.3636, allocations: 303.3 kB / 1.225 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005656/0.3642, allocations: 279.1 kB / 1.225 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002251/0.3644, allocations: 76 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002488/0.3647, allocations: 79.98 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.307e-05/0.3648, allocations: 71.77 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000331/0.3651, allocations: 263.1 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0007977/0.3659, allocations: 0.7048 MB / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3659, allocations: 0 / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3659, allocations: 0 / 1.226 GB, free: 8.262 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.225e-05/0.3659, allocations: 0 / 1.226 GB, free: 8.262 MB / 0.9825 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.001657/0.3676, allocations: 0.8748 MB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3677, allocations: 12.03 kB / 1.227 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.535e-05/0.3677, allocations: 46.73 kB / 1.227 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.3679, allocations: 52.73 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.3694, allocations: 463.4 kB / 1.227 GB, free: 6.691 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.226e-05/0.3694, allocations: 28.38 kB / 1.227 GB, free: 6.664 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.3696, allocations: 48.36 kB / 1.228 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.3701, allocations: 221.5 kB / 1.228 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.3701, allocations: 0 / 1.228 GB, free: 6.387 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.3701, allocations: 11.98 kB / 1.228 GB, free: 6.375 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.3701, allocations: 4 kB / 1.228 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003381/0.3705, allocations: 127.7 kB / 1.228 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.3718, allocations: 0.9532 MB / 1.229 GB, free: 5.234 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006943/0.3725, allocations: 228.1 kB / 1.229 GB, free: 4.984 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.3728, allocations: 110.5 kB / 1.229 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.3728, allocations: 0 / 1.229 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005472/0.3734, allocations: 299.3 kB / 1.229 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=37): time 4.108e-06/0.3734, allocations: 0 / 1.229 GB, free: 4.555 MB / 0.9825 GB Notification: Performance of matching and sorting (n=37): time 0.001155/0.3746, allocations: 457 kB / 1.23 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.3747, allocations: 110.8 kB / 1.23 GB, free: 3.969 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002659/0.3749, allocations: 270.8 kB / 1.23 GB, free: 3.691 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 8.644e-05/0.375, allocations: 49.7 kB / 1.23 GB, free: 3.637 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.3752, allocations: 157 kB / 1.23 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 9.344e-05/0.3753, allocations: 103.2 kB / 1.23 GB, free: 3.379 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002802/0.3756, allocations: 154 kB / 1.231 GB, free: 3.223 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3757, allocations: 346.8 kB / 1.231 GB, free: 2.875 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005508/0.3763, allocations: 224.8 kB / 1.231 GB, free: 2.656 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006288/0.3769, allocations: 384.7 kB / 1.232 GB, free: 2.215 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009129/0.3778, allocations: 0.578 MB / 1.232 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.3778, allocations: 0 / 1.232 GB, free: 1.559 MB / 0.9825 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001546/0.3794, allocations: 0.8447 MB / 1.233 GB, free: 0.6719 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.3795, allocations: 190.2 kB / 1.233 GB, free: 460 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.3795, allocations: 3.938 kB / 1.233 GB, free: 456 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.3796, allocations: 8 kB / 1.233 GB, free: 448 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.3798, allocations: 47.91 kB / 1.233 GB, free: 400 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.3798, allocations: 7.938 kB / 1.233 GB, free: 392 kB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009305/0.3807, allocations: 183.8 kB / 1.233 GB, free: 208 kB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.436e-05/0.3808, allocations: 43.97 kB / 1.233 GB, free: 164 kB / 0.9825 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.0002248/0.3811, allocations: 168 kB / 1.234 GB, free: 15.99 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.674e-05/0.3811, allocations: 35.77 kB / 1.234 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.178e-05/0.3812, allocations: 41.73 kB / 1.234 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.3812, allocations: 4 kB / 1.234 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.3812, allocations: 4 kB / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/0.3813, allocations: 11.92 kB / 1.234 GB, free: 15.89 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.3825, allocations: 0.9188 MB / 1.235 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.3826, allocations: 0 / 1.235 GB, free: 14.91 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.3828, allocations: 51.89 kB / 1.235 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.3828, allocations: 192 / 1.235 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.3828, allocations: 8 kB / 1.235 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.3828, allocations: 11.94 kB / 1.235 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.3829, allocations: 3.984 kB / 1.235 GB, free: 14.84 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.384, allocations: 0.7161 MB / 1.235 GB, free: 14.11 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.508e-05/0.384, allocations: 104.9 kB / 1.235 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.695e-05/0.3841, allocations: 8 kB / 1.235 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002449/0.3843, allocations: 16.02 kB / 1.235 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.636e-05/0.3844, allocations: 31.97 kB / 1.235 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.3844, allocations: 19.98 kB / 1.235 GB, free: 13.91 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001577/0.3846, allocations: 182 kB / 1.236 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3846, allocations: 0 / 1.236 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000532/0.3851, allocations: 115.9 kB / 1.236 GB, free: 13.62 MB / 0.9981 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.001473/0.3866, allocations: 1.272 MB / 1.237 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00129/0.3879, allocations: 0.8437 MB / 1.238 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3879, allocations: 0 / 1.238 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.3883, allocations: 160.5 kB / 1.238 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007733/0.3891, allocations: 107.2 kB / 1.238 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006198/0.3953, allocations: 4.259 MB / 1.242 GB, free: 6.668 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.3956, allocations: 0.7767 MB / 1.243 GB, free: 5.867 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002101/0.3959, allocations: 55.27 kB / 1.243 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.396, allocations: 119.4 kB / 1.243 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of SimCode: time 3.737e-06/0.396, allocations: 0 / 1.243 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7625/1.159, allocations: 9.911 MB / 1.253 GB, free: 29.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.161/9.319, allocations: 11.39 kB / 1.253 GB, free: 29.39 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Ramp.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Ramp_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Ramp.csv","/var/lib/jenkins1/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