Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.Validation.Sin,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Sin",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Sin,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.001606/0.001606, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00198/0.00198, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.813/2.813, allocations: 469.4 MB / 0.742 GB, free: 7.727 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 68.42 kB / 0.9083 GB, free: 34.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4054, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Sin): time 0.002849/0.4083, allocations: 0.6576 MB / 1.064 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001329/0.4097, allocations: 0.804 MB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.318e-05/0.4098, allocations: 0 / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.798e-05/0.4098, allocations: 7.922 kB / 1.065 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.011e-05/0.41, allocations: 7.922 kB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002173/0.4102, allocations: 8 kB / 1.065 GB, free: 13 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.4103, allocations: 27.92 kB / 1.065 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001448/0.4104, allocations: 4 kB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.4106, allocations: 15.92 kB / 1.065 GB, free: 12.95 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.077e-05/0.4106, allocations: 8 kB / 1.065 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.4106, allocations: 0 / 1.065 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.637e-05/0.4107, allocations: 4 kB / 1.065 GB, free: 12.94 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.252e-05/0.4107, allocations: 7.922 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.379e-05/0.4107, allocations: 15.86 kB / 1.065 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.4109, allocations: 19.97 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4109, allocations: 4 kB / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4109, allocations: 0 / 1.065 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.4109, allocations: 0 / 1.065 GB, free: 12.89 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0006201/0.4115, allocations: 335.8 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/0.4116, allocations: 8.031 kB / 1.066 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.003e-05/0.4116, allocations: 34.75 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.537e-05/0.4117, allocations: 4.844 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.4119, allocations: 164.4 kB / 1.066 GB, free: 12.26 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.4119, allocations: 8.375 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.4119, allocations: 4.375 kB / 1.066 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/0.4121, allocations: 54.17 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.4121, allocations: 3.938 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.4122, allocations: 4 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.4122, allocations: 3.938 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.4124, allocations: 31.97 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003935/0.4128, allocations: 249 kB / 1.066 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.4129, allocations: 42.44 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.728e-05/0.413, allocations: 16.91 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.4131, allocations: 0 / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.885e-05/0.4131, allocations: 42.55 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.001e-06/0.4131, allocations: 4 kB / 1.066 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0003847/0.4135, allocations: 73.56 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.913e-05/0.4136, allocations: 55.41 kB / 1.066 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.589e-05/0.4137, allocations: 101.8 kB / 1.066 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.704e-05/0.4137, allocations: 29.64 kB / 1.066 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.33e-05/0.4137, allocations: 80.27 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.567e-05/0.4138, allocations: 11.91 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.103e-05/0.4138, allocations: 17.7 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.414, allocations: 310.8 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.732e-05/0.4141, allocations: 19.98 kB / 1.067 GB, free: 10.99 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.328e-05/0.4142, allocations: 11.98 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001785/0.4143, allocations: 44.88 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.4144, allocations: 3.938 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002189/0.4146, allocations: 61.67 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4146, allocations: 8 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.4146, allocations: 0 / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.4147, allocations: 3.984 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.4148, allocations: 7.938 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.4148, allocations: 4.031 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.893e-05/0.4148, allocations: 7.984 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.4149, allocations: 7.938 kB / 1.067 GB, free: 10.82 MB / 0.8262 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 (2): * Single equations (assignments): 2 * 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 0.0001096/0.415, allocations: 109.8 kB / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.867e-05/0.415, allocations: 0 / 1.067 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002797/0.4153, allocations: 72.78 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.4153, allocations: 4.031 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.4153, allocations: 4.172 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.4153, allocations: 0 / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002036/0.4155, allocations: 161.6 kB / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.4156, allocations: 0 / 1.067 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.383e-05/0.4156, allocations: 15.92 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.4156, allocations: 0 / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-06/0.4157, allocations: 3.938 kB / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4157, allocations: 0 / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.4157, allocations: 0 / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000273/0.416, allocations: 167.5 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.975e-05/0.416, allocations: 84.95 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.936e-05/0.416, allocations: 4 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.4161, allocations: 11.98 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.723e-05/0.4162, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.4162, allocations: 32 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.499e-05/0.4163, allocations: 87.28 kB / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4163, allocations: 0 / 1.068 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002232/0.4165, allocations: 4 kB / 1.068 GB, free: 10.01 MB / 0.8262 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 (2): * Single equations (assignments): 2 * 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.0007195/0.4172, allocations: 0.703 MB / 1.068 GB, free: 9.277 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002379/0.4175, allocations: 35.97 kB / 1.068 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4175, allocations: 0 / 1.068 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.514e-05/0.4176, allocations: 19.97 kB / 1.068 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003265/0.4179, allocations: 4 kB / 1.068 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005658/0.4185, allocations: 143.9 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.4188, allocations: 0.6768 MB / 1.069 GB, free: 8.336 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.887e-05/0.4188, allocations: 4 kB / 1.069 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.438e-05/0.4189, allocations: 7.438 kB / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.4189, allocations: 0 / 1.069 GB, free: 8.324 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.4387, allocations: 1.262 MB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/8.247, allocations: 2.234 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin_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_Sin.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Sin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Sin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches