Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002074/0.002074, allocations: 113 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00257/0.00257, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.511/1.511, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.29/3.29, allocations: 0.505 GB / 0.8066 GB, free: 23.12 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Tan,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Tan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Tan,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Tan",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 72.25 kB / 1.172 GB, free: 17.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3932, allocations: 180.2 MB / 1.348 GB, free: 9.938 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Tan): time 0.002003/0.3952, allocations: 0.6693 MB / 1.348 GB, free: 9.273 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.3964, allocations: 0.8514 MB / 1.349 GB, free: 8.41 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.586e-05/0.3964, allocations: 4 kB / 1.349 GB, free: 8.406 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 2.385e-05/0.3964, allocations: 0 / 1.349 GB, free: 8.406 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.759e-05/0.3965, allocations: 3.938 kB / 1.349 GB, free: 8.402 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001845/0.3967, allocations: 15.98 kB / 1.349 GB, free: 8.387 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 8.027e-05/0.3968, allocations: 27.86 kB / 1.349 GB, free: 8.359 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.3969, allocations: 11.98 kB / 1.349 GB, free: 8.348 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.796e-05/0.3969, allocations: 7.938 kB / 1.349 GB, free: 8.34 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 5.238e-05/0.397, allocations: 7.984 kB / 1.349 GB, free: 8.332 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.397, allocations: 4 kB / 1.349 GB, free: 8.328 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 5.012e-05/0.397, allocations: 7.938 kB / 1.349 GB, free: 8.32 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.67e-05/0.3971, allocations: 7.938 kB / 1.349 GB, free: 8.312 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 2.789e-05/0.3971, allocations: 11.94 kB / 1.349 GB, free: 8.301 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001156/0.3972, allocations: 28.16 kB / 1.349 GB, free: 8.273 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3972, allocations: 0 / 1.349 GB, free: 8.273 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3972, allocations: 4 kB / 1.349 GB, free: 8.27 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.3972, allocations: 4 kB / 1.349 GB, free: 8.266 MB / 1.045 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.000547/0.3978, allocations: 335.5 kB / 1.35 GB, free: 7.887 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3978, allocations: 11.98 kB / 1.35 GB, free: 7.875 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.175e-05/0.3979, allocations: 34.75 kB / 1.35 GB, free: 7.832 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.398, allocations: 0.9375 kB / 1.35 GB, free: 7.832 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.3981, allocations: 164.3 kB / 1.35 GB, free: 7.633 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.3981, allocations: 16.28 kB / 1.35 GB, free: 7.617 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.176e-05/0.3982, allocations: 384 / 1.35 GB, free: 7.617 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001865/0.3983, allocations: 50.25 kB / 1.35 GB, free: 7.562 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3984, allocations: 3.938 kB / 1.35 GB, free: 7.559 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.3984, allocations: 0 / 1.35 GB, free: 7.559 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.3984, allocations: 7.922 kB / 1.35 GB, free: 7.551 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.3985, allocations: 31.97 kB / 1.35 GB, free: 7.52 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003834/0.3989, allocations: 252.9 kB / 1.35 GB, free: 7.223 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001352/0.3991, allocations: 38.53 kB / 1.35 GB, free: 7.176 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.977e-05/0.3992, allocations: 20.91 kB / 1.35 GB, free: 7.152 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.3992, allocations: 0 / 1.35 GB, free: 7.152 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.3992, allocations: 34.5 kB / 1.35 GB, free: 7.109 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.3992, allocations: 4 kB / 1.35 GB, free: 7.105 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0003682/0.3996, allocations: 81.64 kB / 1.35 GB, free: 7.02 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.3996, allocations: 51.41 kB / 1.351 GB, free: 6.957 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.3997, allocations: 105.8 kB / 1.351 GB, free: 6.844 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3997, allocations: 25.7 kB / 1.351 GB, free: 6.812 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.013e-05/0.3998, allocations: 80.14 kB / 1.351 GB, free: 6.73 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 1.613e-05/0.3998, allocations: 3.953 kB / 1.351 GB, free: 6.727 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.3998, allocations: 21.84 kB / 1.351 GB, free: 6.699 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.4, allocations: 314.8 kB / 1.351 GB, free: 6.383 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.377e-05/0.4001, allocations: 15.98 kB / 1.351 GB, free: 6.367 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.415e-05/0.4001, allocations: 15.98 kB / 1.351 GB, free: 6.352 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001597/0.4003, allocations: 44.83 kB / 1.351 GB, free: 6.305 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.4003, allocations: 7.938 kB / 1.351 GB, free: 6.297 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001983/0.4005, allocations: 69.55 kB / 1.351 GB, free: 6.223 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.4005, allocations: 8 kB / 1.351 GB, free: 6.215 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.4005, allocations: 0 / 1.351 GB, free: 6.215 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.4005, allocations: 0 / 1.351 GB, free: 6.215 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.4006, allocations: 7.984 kB / 1.351 GB, free: 6.207 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.4007, allocations: 0 / 1.351 GB, free: 6.207 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.007e-05/0.4007, allocations: 12.02 kB / 1.351 GB, free: 6.195 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.787e-06/0.4007, allocations: 8 kB / 1.351 GB, free: 6.188 MB / 1.045 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 8.104e-05/0.4008, allocations: 109.8 kB / 1.351 GB, free: 6.07 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.237e-05/0.4008, allocations: 0 / 1.351 GB, free: 6.07 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.4011, allocations: 76.72 kB / 1.351 GB, free: 5.984 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.4011, allocations: 3.938 kB / 1.351 GB, free: 5.98 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4011, allocations: 0 / 1.351 GB, free: 5.98 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.4011, allocations: 4.031 kB / 1.351 GB, free: 5.977 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001794/0.4012, allocations: 161.6 kB / 1.352 GB, free: 5.77 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4012, allocations: 0 / 1.352 GB, free: 5.77 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.823e-05/0.4013, allocations: 8 kB / 1.352 GB, free: 5.762 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.4013, allocations: 0 / 1.352 GB, free: 5.762 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.4013, allocations: 3.984 kB / 1.352 GB, free: 5.758 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.4013, allocations: 0 / 1.352 GB, free: 5.758 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.4013, allocations: 0 / 1.352 GB, free: 5.758 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.4016, allocations: 167.4 kB / 1.352 GB, free: 5.578 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 5.703e-05/0.4016, allocations: 85.06 kB / 1.352 GB, free: 5.477 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.4017, allocations: 4 kB / 1.352 GB, free: 5.473 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.319e-05/0.4017, allocations: 0 / 1.352 GB, free: 5.473 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.207e-05/0.4018, allocations: 8.172 kB / 1.352 GB, free: 5.465 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.4018, allocations: 0 / 1.352 GB, free: 5.465 MB / 1.045 GB Notification: Performance of sorting global known variables: time 4.468e-05/0.4018, allocations: 83.27 kB / 1.352 GB, free: 5.383 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4018, allocations: 4.031 kB / 1.352 GB, free: 5.379 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002138/0.402, allocations: 4 kB / 1.352 GB, free: 5.375 MB / 1.045 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.0006781/0.4027, allocations: 0.6928 MB / 1.353 GB, free: 4.652 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002316/0.4029, allocations: 43.98 kB / 1.353 GB, free: 4.609 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.403, allocations: 0 / 1.353 GB, free: 4.609 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.628e-05/0.403, allocations: 15.98 kB / 1.353 GB, free: 4.594 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.4033, allocations: 6.188 kB / 1.353 GB, free: 4.59 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004588/0.4038, allocations: 147.8 kB / 1.353 GB, free: 4.406 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003319/0.4041, allocations: 0.6729 MB / 1.353 GB, free: 3.707 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.371e-05/0.4042, allocations: 7.922 kB / 1.353 GB, free: 3.699 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.594e-05/0.4042, allocations: 15.38 kB / 1.353 GB, free: 3.684 MB / 1.045 GB Notification: Performance of SimCode: time 2.61e-07/0.4042, allocations: 0 / 1.353 GB, free: 3.684 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.4297, allocations: 1.28 MB / 1.355 GB, free: 2.488 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/8.712, allocations: 6.219 kB / 1.355 GB, free: 2.488 MB / 1.045 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_Tan.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Tan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable tan1.u in file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.csv. Warning: Get data of variable tan1.u from file Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.77582769212313]