Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.Tan,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Tan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Tan,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Tan",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.004686/0.004686, allocations: 99.89 kB / 15.73 MB, free: 6.016 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.001252/0.001252, allocations: 187.8 kB / 16.67 MB, free: 5.93 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.754/2.754, allocations: 469.8 MB / 0.7425 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 71.89 kB / 1.065 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6788/0.6807, allocations: 159.1 MB / 1.22 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Tan): time 0.001709/0.6825, allocations: 0.6599 MB / 1.221 GB, free: 1.379 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0008952/0.6834, allocations: 0.8118 MB / 1.222 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.845e-05/0.6834, allocations: 0 / 1.222 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.995e-05/0.6835, allocations: 0 / 1.222 GB, free: 0.5547 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.576e-05/0.6835, allocations: 3.938 kB / 1.222 GB, free: 0.5508 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001133/0.6836, allocations: 4 kB / 1.222 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.069e-05/0.6837, allocations: 27.92 kB / 1.222 GB, free: 0.5195 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 8.34e-05/0.6838, allocations: 7.984 kB / 1.222 GB, free: 0.5117 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.109e-05/0.6839, allocations: 7.938 kB / 1.222 GB, free: 0.5039 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 3.544e-05/0.6839, allocations: 11.98 kB / 1.222 GB, free: 0.4922 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.6839, allocations: 4 kB / 1.222 GB, free: 500 kB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.785e-06/0.6839, allocations: 4 kB / 1.222 GB, free: 496 kB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.684, allocations: 3.984 kB / 1.222 GB, free: 492 kB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.28e-05/0.684, allocations: 11.94 kB / 1.222 GB, free: 480 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 7.103e-05/0.6841, allocations: 19.91 kB / 1.222 GB, free: 460 kB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.6841, allocations: 0 / 1.222 GB, free: 460 kB / 0.9356 GB Notification: Performance of FrontEnd: time 4.648e-06/0.6841, allocations: 0 / 1.222 GB, free: 460 kB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.097e-06/0.6841, allocations: 3.938 kB / 1.222 GB, free: 456 kB / 0.9356 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.0004256/0.6845, allocations: 339.2 kB / 1.222 GB, free: 68 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.6846, allocations: 16.02 kB / 1.222 GB, free: 52 kB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.076e-05/0.6846, allocations: 30.75 kB / 1.222 GB, free: 12 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.112e-05/0.6846, allocations: 4.891 kB / 1.222 GB, free: 8 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.6848, allocations: 172.3 kB / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.772e-06/0.6848, allocations: 384 / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-06/0.6848, allocations: 384 / 1.222 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.685, allocations: 54.22 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.685, allocations: 3.938 kB / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.712e-06/0.685, allocations: 0 / 1.222 GB, free: 15.74 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.685, allocations: 4 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000172/0.6852, allocations: 43.83 kB / 1.222 GB, free: 15.69 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002996/0.6855, allocations: 241 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.6857, allocations: 42.5 kB / 1.223 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.629e-05/0.6858, allocations: 28.89 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.6858, allocations: 3.938 kB / 1.223 GB, free: 15.32 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.6858, allocations: 34.56 kB / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.153e-06/0.6858, allocations: 0 / 1.223 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0003508/0.6862, allocations: 81.58 kB / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.6862, allocations: 51.53 kB / 1.223 GB, free: 15.13 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.608e-05/0.6863, allocations: 101.9 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.6863, allocations: 25.7 kB / 1.223 GB, free: 14.99 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.673e-05/0.6864, allocations: 88.09 kB / 1.223 GB, free: 14.9 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.924e-05/0.6864, allocations: 11.94 kB / 1.223 GB, free: 14.89 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.262e-05/0.6864, allocations: 13.72 kB / 1.223 GB, free: 14.87 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001253/0.6866, allocations: 310.8 kB / 1.223 GB, free: 14.55 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.84e-05/0.6867, allocations: 19.98 kB / 1.223 GB, free: 14.54 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.907e-05/0.6867, allocations: 19.97 kB / 1.223 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001595/0.6869, allocations: 40.77 kB / 1.223 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.6869, allocations: 3.938 kB / 1.223 GB, free: 14.47 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002016/0.6871, allocations: 69.66 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.6871, allocations: 4.094 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-06/0.6872, allocations: 4 kB / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.6872, allocations: 0 / 1.224 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.493e-05/0.6873, allocations: 11.98 kB / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.329e-06/0.6873, allocations: 0 / 1.224 GB, free: 14.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.692e-05/0.6873, allocations: 4 kB / 1.224 GB, free: 14.37 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.6873, allocations: 0 / 1.224 GB, free: 14.37 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 (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 7.681e-05/0.6874, allocations: 113.8 kB / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.198e-05/0.6874, allocations: 0 / 1.224 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/0.6877, allocations: 80.7 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.6877, allocations: 0 / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.6877, allocations: 4 kB / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.6877, allocations: 0 / 1.224 GB, free: 14.16 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.6879, allocations: 161.6 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.6879, allocations: 0 / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.983e-05/0.688, allocations: 7.984 kB / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.688, allocations: 0 / 1.224 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.311e-06/0.688, allocations: 8.031 kB / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.688, allocations: 0 / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.688, allocations: 0 / 1.224 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000251/0.6882, allocations: 175.3 kB / 1.224 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.157e-05/0.6883, allocations: 77.11 kB / 1.224 GB, free: 13.66 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.6883, allocations: 3.938 kB / 1.224 GB, free: 13.65 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.6884, allocations: 12.02 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.6884, allocations: 0 / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.6885, allocations: 4 kB / 1.224 GB, free: 13.64 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.34e-05/0.6885, allocations: 83.45 kB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6885, allocations: 0 / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002159/0.6887, allocations: 4 kB / 1.224 GB, free: 13.55 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 (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.0005623/0.6893, allocations: 0.6973 MB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002098/0.6895, allocations: 39.89 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.6895, allocations: 0 / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 9.555e-05/0.6896, allocations: 24.08 kB / 1.225 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.6899, allocations: 4.141 kB / 1.225 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003759/0.6903, allocations: 139.6 kB / 1.225 GB, free: 12.58 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.6906, allocations: 0.6768 MB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.173e-05/0.6906, allocations: 3.906 kB / 1.226 GB, free: 11.88 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.6907, allocations: 11.44 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of SimCode: time 3.01e-07/0.6907, allocations: 0 / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02081/0.7115, allocations: 1.275 MB / 1.227 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.448/8.16, allocations: 11.12 kB / 1.227 GB, free: 10.66 MB / 0.9512 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_Tan.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_Tan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches