Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.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.Sources.Validation.Sin,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin",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.005683/0.005683, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001207/0.001207, allocations: 202.1 kB / 16.68 MB, free: 5.926 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.344/1.344, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.602/2.602, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.91 kB / 1.054 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8883/0.8896, allocations: 157.4 MB / 1.207 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin): time 0.00219/0.8918, allocations: 0.6153 MB / 1.208 GB, free: 13 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.893, allocations: 0.804 MB / 1.209 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.088e-05/0.893, allocations: 0 / 1.209 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.388e-05/0.8931, allocations: 3.938 kB / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.104e-05/0.8932, allocations: 0 / 1.209 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001764/0.8933, allocations: 19.92 kB / 1.209 GB, free: 12.16 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 8.11e-05/0.8934, allocations: 15.94 kB / 1.209 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.982e-05/0.8935, allocations: 3.984 kB / 1.209 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.8936, allocations: 7.938 kB / 1.209 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.314e-05/0.8937, allocations: 15.92 kB / 1.209 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.8937, allocations: 3.984 kB / 1.209 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 1.058e-05/0.8937, allocations: 4 kB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.531e-05/0.8937, allocations: 0 / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.389e-05/0.8938, allocations: 7.938 kB / 1.209 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 8.455e-05/0.8939, allocations: 15.92 kB / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.8939, allocations: 0 / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8939, allocations: 0 / 1.209 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.8939, allocations: 7.984 kB / 1.209 GB, free: 12.08 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004747/0.8944, allocations: 329.7 kB / 1.209 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.8944, allocations: 8.031 kB / 1.209 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.073e-05/0.8945, allocations: 30.75 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.8945, allocations: 4.938 kB / 1.209 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.8947, allocations: 164.3 kB / 1.209 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.8947, allocations: 4.375 kB / 1.209 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.262e-05/0.8947, allocations: 384 / 1.209 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.8949, allocations: 42.25 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.8949, allocations: 3.938 kB / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.8949, allocations: 0 / 1.209 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.8949, allocations: 4 kB / 1.209 GB, free: 11.4 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.247e-05/0.895, allocations: 11.98 kB / 1.209 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001536/0.8952, allocations: 153.7 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 6.636e-05/0.8952, allocations: 34.5 kB / 1.21 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.838e-05/0.8953, allocations: 12.92 kB / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.8953, allocations: 0 / 1.21 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.882e-05/0.8953, allocations: 30.56 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.8953, allocations: 4 kB / 1.21 GB, free: 11.09 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0002087/0.8956, allocations: 57.61 kB / 1.21 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.8956, allocations: 59.44 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.379e-05/0.8957, allocations: 101.8 kB / 1.21 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.8957, allocations: 25.7 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.304e-05/0.8957, allocations: 84.08 kB / 1.21 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.8958, allocations: 8 kB / 1.21 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.239e-05/0.8958, allocations: 9.719 kB / 1.21 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001286/0.8959, allocations: 310.8 kB / 1.21 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.216e-05/0.896, allocations: 11.98 kB / 1.21 GB, free: 10.38 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.347e-05/0.896, allocations: 12 kB / 1.21 GB, free: 10.37 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.939e-05/0.8961, allocations: 16.84 kB / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.8961, allocations: 0 / 1.21 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001135/0.8962, allocations: 45.69 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.8963, allocations: 14.06 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.8963, allocations: 3.938 kB / 1.21 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.8963, allocations: 8.094 kB / 1.21 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.513e-05/0.8964, allocations: 7.922 kB / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.8964, allocations: 0 / 1.21 GB, free: 10.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.274e-05/0.8964, allocations: 7.938 kB / 1.21 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.8965, allocations: 0 / 1.21 GB, free: 10.26 MB / 0.9356 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 (1): * Single equations (assignments): 1 * 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.13e-05/0.8965, allocations: 105.8 kB / 1.21 GB, free: 10.15 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.8966, allocations: 11.84 kB / 1.21 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.8966, allocations: 11.11 kB / 1.21 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.8966, allocations: 4 kB / 1.21 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.8966, allocations: 0 / 1.21 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.8966, allocations: 0 / 1.21 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001191/0.8967, allocations: 149.7 kB / 1.211 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.8967, allocations: 0 / 1.211 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.846e-05/0.8968, allocations: 7.984 kB / 1.211 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.8968, allocations: 3.938 kB / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.8968, allocations: 0 / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.8968, allocations: 0 / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.8968, allocations: 4.234 kB / 1.211 GB, free: 9.91 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001411/0.897, allocations: 77.12 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.897, allocations: 81.05 kB / 1.211 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.8971, allocations: 7.938 kB / 1.211 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.992e-05/0.8971, allocations: 4 kB / 1.211 GB, free: 9.707 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.8971, allocations: 3.984 kB / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-06/0.8971, allocations: 0 / 1.211 GB, free: 9.703 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.097e-05/0.8972, allocations: 79.28 kB / 1.211 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8972, allocations: 4.031 kB / 1.211 GB, free: 9.621 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0001743/0.8974, allocations: 4 kB / 1.211 GB, free: 9.617 MB / 0.9356 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 (1): * Single equations (assignments): 1 * 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.0004527/0.8978, allocations: 0.6046 MB / 1.211 GB, free: 8.98 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001217/0.898, allocations: 27.95 kB / 1.211 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.898, allocations: 0 / 1.211 GB, free: 8.953 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.898, allocations: 4 kB / 1.212 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.8982, allocations: 4 kB / 1.212 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003985/0.8986, allocations: 148.1 kB / 1.212 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002324/0.8988, allocations: 0.6767 MB / 1.212 GB, free: 8.055 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.946e-05/0.8988, allocations: 4.125 kB / 1.212 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.848e-05/0.8989, allocations: 7.438 kB / 1.212 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.8989, allocations: 0 / 1.212 GB, free: 8.043 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.9156, allocations: 1.114 MB / 1.213 GB, free: 7.02 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.658/8.574, allocations: 14.64 kB / 1.213 GB, free: 7.012 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin_fmu --startTime=0 --stopTime=130 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches