Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.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.Add,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Add",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Add,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Add",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.007942/0.007942, allocations: 99.5 kB / 15.73 MB, free: 6.055 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.001795/0.001794, allocations: 191.9 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.639/2.639, allocations: 469.4 MB / 0.7422 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.91 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8062/0.8074, allocations: 159.1 MB / 1.22 GB, free: 2.258 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Add): time 0.001681/0.8092, allocations: 0.7002 MB / 1.22 GB, free: 1.555 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008055/0.81, allocations: 0.804 MB / 1.221 GB, free: 0.7383 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.513e-05/0.81, allocations: 4 kB / 1.221 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.001e-05/0.8101, allocations: 3.938 kB / 1.221 GB, free: 0.7305 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.815e-05/0.8101, allocations: 3.938 kB / 1.221 GB, free: 0.7266 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 5.682e-05/0.8102, allocations: 11.98 kB / 1.221 GB, free: 0.7148 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.529e-05/0.8103, allocations: 51.78 kB / 1.221 GB, free: 0.6641 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.808e-05/0.8104, allocations: 8 kB / 1.221 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.879e-05/0.8105, allocations: 11.98 kB / 1.221 GB, free: 0.6445 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.438e-05/0.8105, allocations: 31.91 kB / 1.221 GB, free: 0.6133 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.559e-05/0.8105, allocations: 4 kB / 1.221 GB, free: 0.6094 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.544e-06/0.8105, allocations: 4 kB / 1.221 GB, free: 0.6055 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.616e-05/0.8106, allocations: 11.92 kB / 1.221 GB, free: 0.5938 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.93e-05/0.8106, allocations: 15.92 kB / 1.221 GB, free: 0.5781 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 8.39e-05/0.8107, allocations: 39.81 kB / 1.221 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.8107, allocations: 0 / 1.221 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.163e-06/0.8107, allocations: 0 / 1.221 GB, free: 0.5391 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.8107, allocations: 0 / 1.221 GB, free: 0.5391 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004856/0.8112, allocations: 377.6 kB / 1.222 GB, free: 128 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.8112, allocations: 12.61 kB / 1.222 GB, free: 116 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.405e-05/0.8113, allocations: 30.75 kB / 1.222 GB, free: 76 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.414e-05/0.8113, allocations: 8.891 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.8115, allocations: 168.3 kB / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.949e-06/0.8115, allocations: 384 / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-06/0.8115, allocations: 384 / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.8117, allocations: 70.22 kB / 1.222 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.8117, allocations: 7.938 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.8118, allocations: 3.984 kB / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.8118, allocations: 0 / 1.222 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002749/0.812, allocations: 59.94 kB / 1.222 GB, free: 15.72 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003283/0.8124, allocations: 272.9 kB / 1.222 GB, free: 15.4 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.8126, allocations: 66.47 kB / 1.222 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.8127, allocations: 36.92 kB / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.154e-05/0.8128, allocations: 0 / 1.223 GB, free: 15.29 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.8128, allocations: 34.55 kB / 1.223 GB, free: 15.25 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.8128, allocations: 8 kB / 1.223 GB, free: 15.24 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3): time 0.0005192/0.8133, allocations: 129.5 kB / 1.223 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.12e-05/0.8134, allocations: 51.41 kB / 1.223 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.524e-05/0.8135, allocations: 109.8 kB / 1.223 GB, free: 14.93 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.8135, allocations: 25.7 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.147e-05/0.8135, allocations: 100.1 kB / 1.223 GB, free: 14.79 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.8135, allocations: 11.84 kB / 1.223 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.181e-05/0.8136, allocations: 13.72 kB / 1.223 GB, free: 14.76 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.8137, allocations: 314.8 kB / 1.223 GB, free: 14.45 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.8139, allocations: 31.95 kB / 1.223 GB, free: 14.41 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.814, allocations: 35.97 kB / 1.223 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.8143, allocations: 68.72 kB / 1.223 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.339e-06/0.8143, allocations: 4 kB / 1.223 GB, free: 14.3 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003156/0.8146, allocations: 97.78 kB / 1.224 GB, free: 14.2 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.8146, allocations: 12 kB / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.8146, allocations: 320 / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.8146, allocations: 48 / 1.224 GB, free: 14.19 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.8148, allocations: 23.95 kB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.057e-06/0.8148, allocations: 0 / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.754e-05/0.8149, allocations: 11.94 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.716e-06/0.8149, allocations: 7.984 kB / 1.224 GB, free: 14.15 MB / 0.9512 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 (3): * Single equations (assignments): 3 * 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 6.597e-05/0.8149, allocations: 118.3 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.815, allocations: 4 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.316e-05/0.815, allocations: 7.906 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.815, allocations: 0 / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.815, allocations: 0 / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.815, allocations: 0 / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001538/0.8152, allocations: 169.6 kB / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.8152, allocations: 0 / 1.224 GB, free: 13.79 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001049/0.8153, allocations: 15.98 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.003e-06/0.8153, allocations: 0 / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.8153, allocations: 8 kB / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.8153, allocations: 0 / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.8153, allocations: 0 / 1.224 GB, free: 13.76 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.8157, allocations: 203.3 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 3.096e-05/0.8157, allocations: 77.11 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.8158, allocations: 4 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.8159, allocations: 15.98 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.112e-05/0.8159, allocations: 3.984 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.8159, allocations: 4 kB / 1.224 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.874e-05/0.816, allocations: 87.28 kB / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.21e-07/0.816, allocations: 0 / 1.224 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002168/0.8162, allocations: 8 kB / 1.224 GB, free: 13.33 MB / 0.9512 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 (3): * Single equations (assignments): 3 * 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.0006251/0.8168, allocations: 0.7357 MB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003234/0.8172, allocations: 67.92 kB / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.8172, allocations: 0 / 1.225 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.8173, allocations: 39.89 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.8176, allocations: 8 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004024/0.818, allocations: 166.9 kB / 1.225 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.8183, allocations: 0.6845 MB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.101e-05/0.8183, allocations: 4 kB / 1.226 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.8184, allocations: 11.44 kB / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of SimCode: time 2.71e-07/0.8184, allocations: 0 / 1.226 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.8337, allocations: 1.627 MB / 1.228 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.196/8.029, allocations: 6.25 kB / 1.228 GB, free: 9.988 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Add.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Add.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Add.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches