Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Round,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Round",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Round,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Round",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.008021/0.008021, allocations: 105 kB / 15.74 MB, free: 6.035 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.001853/0.001853, allocations: 196 kB / 16.67 MB, free: 5.969 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.465/1.465, 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.0.1-master/package.mo): time 2.763/2.763, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 63.91 kB / 1.054 GB, free: 7.559 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.351, allocations: 157.4 MB / 1.207 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Round): time 0.002577/0.3536, allocations: 0.7606 MB / 1.208 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001217/0.3549, allocations: 0.835 MB / 1.209 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.565e-05/0.3549, allocations: 0 / 1.209 GB, free: 8.441 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.931e-05/0.3551, allocations: 11.86 kB / 1.209 GB, free: 8.43 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.877e-05/0.3552, allocations: 11.94 kB / 1.209 GB, free: 8.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001955/0.3554, allocations: 27.91 kB / 1.209 GB, free: 8.391 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.3555, allocations: 75.88 kB / 1.209 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.3557, allocations: 23.83 kB / 1.209 GB, free: 8.293 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001025/0.3558, allocations: 35.86 kB / 1.209 GB, free: 8.258 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 8.761e-05/0.3559, allocations: 35.83 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.3559, allocations: 12 kB / 1.209 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.74e-05/0.3559, allocations: 8 kB / 1.209 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.327e-05/0.356, allocations: 19.91 kB / 1.209 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.749e-05/0.356, allocations: 31.86 kB / 1.209 GB, free: 8.152 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.3562, allocations: 71.69 kB / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3562, allocations: 0 / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3562, allocations: 0 / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.645e-06/0.3562, allocations: 0 / 1.209 GB, free: 8.082 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006624/0.3569, allocations: 379.5 kB / 1.21 GB, free: 7.66 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.3569, allocations: 20.56 kB / 1.21 GB, free: 7.641 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.357, allocations: 34.75 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.929e-05/0.357, allocations: 8.844 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.3572, allocations: 176.2 kB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.3572, allocations: 8.375 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.3572, allocations: 384 / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.3575, allocations: 86.14 kB / 1.21 GB, free: 7.281 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.3575, allocations: 3.938 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.3575, allocations: 4 kB / 1.21 GB, free: 7.273 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3575, allocations: 7.984 kB / 1.21 GB, free: 7.266 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.3578, allocations: 63.94 kB / 1.21 GB, free: 7.203 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.3583, allocations: 324.6 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.3586, allocations: 94.5 kB / 1.21 GB, free: 6.734 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001239/0.3587, allocations: 36.84 kB / 1.21 GB, free: 6.695 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.3587, allocations: 3.984 kB / 1.21 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.3588, allocations: 30.56 kB / 1.21 GB, free: 6.652 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=6): time 2.905e-06/0.3588, allocations: 4.109 kB / 1.21 GB, free: 6.648 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0004842/0.3593, allocations: 145.4 kB / 1.211 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.3593, allocations: 55.41 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.3594, allocations: 121.8 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.088e-05/0.3595, allocations: 25.7 kB / 1.211 GB, free: 6.273 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.744e-05/0.3595, allocations: 88.14 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.371e-05/0.3596, allocations: 23.64 kB / 1.211 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.694e-05/0.3596, allocations: 17.72 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.3598, allocations: 326.8 kB / 1.211 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.3599, allocations: 31.97 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.36, allocations: 28.36 kB / 1.211 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002218/0.3602, allocations: 68.81 kB / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3602, allocations: 0 / 1.211 GB, free: 5.68 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002858/0.3605, allocations: 109.5 kB / 1.211 GB, free: 5.566 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.3606, allocations: 9.562 kB / 1.211 GB, free: 5.559 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.3606, allocations: 4 kB / 1.211 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.3606, allocations: 0 / 1.211 GB, free: 5.555 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001478/0.3607, allocations: 19.97 kB / 1.212 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3608, allocations: 0 / 1.212 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.908e-05/0.3608, allocations: 4 kB / 1.212 GB, free: 5.531 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.034e-05/0.3609, allocations: 3.984 kB / 1.212 GB, free: 5.527 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 8.801e-05/0.361, allocations: 117.8 kB / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.332e-05/0.361, allocations: 7.906 kB / 1.212 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.054e-05/0.361, allocations: 12.38 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.361, allocations: 4 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.361, allocations: 0 / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.3611, allocations: 0 / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.3613, allocations: 193.6 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.978e-06/0.3613, allocations: 3.984 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.3614, allocations: 15.98 kB / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3614, allocations: 3.938 kB / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.3614, allocations: 0 / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3614, allocations: 0 / 1.212 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3615, allocations: 4 kB / 1.212 GB, free: 5.105 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003413/0.3618, allocations: 207.3 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.3619, allocations: 81.09 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.3619, allocations: 8.125 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.362, allocations: 8 kB / 1.212 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.3621, allocations: 11.98 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.205e-06/0.3621, allocations: 11.92 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.496e-05/0.3622, allocations: 95.27 kB / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3622, allocations: 0 / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000232/0.3624, allocations: 19.84 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0006761/0.3631, allocations: 0.7358 MB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002944/0.3634, allocations: 71.94 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3634, allocations: 0 / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.3636, allocations: 43.91 kB / 1.213 GB, free: 3.762 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.3639, allocations: 8 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.3657, allocations: 1.454 MB / 1.215 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.366, allocations: 0.6885 MB / 1.215 GB, free: 1.504 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.477e-05/0.3661, allocations: 8 kB / 1.215 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.005e-05/0.3661, allocations: 23.42 kB / 1.215 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.3662, allocations: 0 / 1.215 GB, free: 1.477 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02294/0.3891, allocations: 2.366 MB / 1.218 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.042, allocations: 8.344 kB / 1.218 GB, free: 15.2 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Round_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Round.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Round.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Round.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,round1.u,round1.y,round2.u,round2.y,round3.u,round3.y Variables in the result:gai.k,gai.u,gai.y,gai1.k,gai1.u,gai1.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,round1.n,round1.u,round1.y,round2.n,round2.u,round2.y,round3.n,round3.u,round3.y,time