Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001572/0.001572, 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.001518/0.001518, allocations: 193.6 kB / 16.53 MB, free: 6.699 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.458/2.458, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 67.89 kB / 0.8694 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5398/0.5411, allocations: 151.6 MB / 1.017 GB, free: 2.441 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin): time 0.001644/0.5428, allocations: 0.6073 MB / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006981/0.5435, allocations: 0.804 MB / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.632e-05/0.5435, allocations: 0 / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.5435, allocations: 0 / 1.019 GB, free: 1.02 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.312e-05/0.5436, allocations: 3.938 kB / 1.019 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001067/0.5437, allocations: 11.98 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.056e-05/0.5438, allocations: 19.94 kB / 1.019 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.353e-05/0.5438, allocations: 7.984 kB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.684e-05/0.5439, allocations: 15.88 kB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.435e-05/0.5439, allocations: 11.97 kB / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.5439, allocations: 0 / 1.019 GB, free: 0.9492 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.638e-06/0.544, allocations: 4 kB / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.168e-05/0.544, allocations: 0 / 1.019 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.236e-05/0.544, allocations: 7.938 kB / 1.019 GB, free: 0.9375 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 5.85e-05/0.5441, allocations: 15.92 kB / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.5441, allocations: 0 / 1.019 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.162e-06/0.5441, allocations: 8 kB / 1.019 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.755e-06/0.5441, allocations: 3.984 kB / 1.019 GB, free: 0.9102 MB / 0.7637 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.0003334/0.5444, allocations: 321.7 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.5445, allocations: 8.031 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.465e-05/0.5445, allocations: 34.69 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.148e-05/0.5445, allocations: 8.938 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.807e-05/0.5446, allocations: 168.3 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-06/0.5446, allocations: 384 / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.5446, allocations: 384 / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.5448, allocations: 46.19 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.5448, allocations: 3.938 kB / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.272e-06/0.5448, allocations: 0 / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.5448, allocations: 0 / 1.02 GB, free: 236 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.314e-05/0.5449, allocations: 11.98 kB / 1.02 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001212/0.545, allocations: 153.7 kB / 1.02 GB, free: 20 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 7.117e-05/0.5451, allocations: 26.56 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.284e-05/0.5451, allocations: 12.92 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.5451, allocations: 0 / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.5452, allocations: 34.5 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.5452, allocations: 4 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001755/0.5453, allocations: 53.61 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.683e-05/0.5454, allocations: 55.41 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.02e-05/0.5454, allocations: 106 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.5455, allocations: 25.7 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.933e-05/0.5455, allocations: 88.14 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.693e-05/0.5455, allocations: 3.906 kB / 1.02 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.5455, allocations: 9.719 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.198e-05/0.5456, allocations: 310.8 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.955e-05/0.5457, allocations: 11.98 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.965e-05/0.5457, allocations: 12 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.982e-05/0.5458, allocations: 24.78 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5458, allocations: 0 / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.656e-05/0.5459, allocations: 45.62 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.5459, allocations: 7.938 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.5459, allocations: 0 / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.996e-06/0.5459, allocations: 4 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.902e-05/0.546, allocations: 4.078 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.546, allocations: 4 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.106e-05/0.5461, allocations: 7.938 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.5461, allocations: 0 / 1.02 GB, free: 15.1 MB / 0.7794 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 5.814e-05/0.5461, allocations: 110.5 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.5461, allocations: 7.938 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.633e-05/0.5462, allocations: 7.109 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.5462, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.5462, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.5462, allocations: 0 / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.186e-05/0.5463, allocations: 161.6 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5463, allocations: 4.188 kB / 1.021 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.683e-05/0.5463, allocations: 8 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.5463, allocations: 3.938 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.36e-06/0.5463, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5463, allocations: 0 / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.5463, allocations: 3.984 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.5465, allocations: 77.12 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.547e-05/0.5465, allocations: 85 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.5465, allocations: 3.938 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.02e-05/0.5466, allocations: 4 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.296e-05/0.5466, allocations: 3.984 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.5466, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.34e-05/0.5466, allocations: 83.28 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5466, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001742/0.5468, allocations: 4 kB / 1.021 GB, free: 14.45 MB / 0.7794 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.000342/0.5472, allocations: 0.6124 MB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001026/0.5473, allocations: 15.98 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5473, allocations: 4.094 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.812e-05/0.5473, allocations: 8 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.5475, allocations: 0 / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003113/0.5478, allocations: 150.1 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.548, allocations: 0.6729 MB / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.801e-05/0.548, allocations: 0 / 1.022 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.548, allocations: 15.5 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.548, allocations: 0 / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0143/0.5623, allocations: 1.084 MB / 1.024 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.667/7.229, allocations: 13.33 kB / 1.024 GB, free: 11.86 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin_res.csv --start-time 0 --stop-time 130 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.052 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Sources_Validation_Sin.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Sources.Validation.Sin.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches