Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Validation.Tan,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Tan",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Tan,fileNamePrefix="Buildings_10_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.0008248/0.0008248, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.006011/0.006011, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.305/1.305, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.513/2.513, allocations: 437.8 MB / 0.7121 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000416/0.0004161, allocations: 12 kB / 0.873 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6206/0.621, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Tan): time 0.0008125/0.6219, allocations: 402.3 kB / 1.024 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008588/0.6228, allocations: 0.8079 MB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.718e-05/0.6228, allocations: 0 / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.339e-05/0.6228, allocations: 4 kB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.499e-05/0.6229, allocations: 3.938 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001093/0.623, allocations: 4 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.23e-05/0.6231, allocations: 27.92 kB / 1.024 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.259e-05/0.6232, allocations: 0 / 1.024 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.699e-05/0.6232, allocations: 11.92 kB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.952e-05/0.6233, allocations: 8 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.652e-05/0.6233, allocations: 3.984 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.335e-06/0.6233, allocations: 4 kB / 1.024 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.524e-05/0.6233, allocations: 11.92 kB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.144e-05/0.6234, allocations: 29.7 kB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 5.995e-05/0.6234, allocations: 19.91 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.6234, allocations: 0 / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.362e-06/0.6234, allocations: 3.938 kB / 1.024 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.546e-06/0.6234, allocations: 0 / 1.024 GB, free: 14.54 MB / 0.7794 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.0003652/0.6238, allocations: 341.8 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.6239, allocations: 8.031 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.246e-05/0.6239, allocations: 34.75 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.902e-05/0.6239, allocations: 0.9375 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.624, allocations: 172.3 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.624, allocations: 384 / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.714e-06/0.6241, allocations: 384 / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001765/0.6242, allocations: 58.17 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.6243, allocations: 3.938 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-06/0.6243, allocations: 4 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.6243, allocations: 4 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.6245, allocations: 39.97 kB / 1.025 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002904/0.6248, allocations: 252.9 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.6249, allocations: 42.5 kB / 1.025 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.633e-05/0.625, allocations: 32.84 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.625, allocations: 0 / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.6251, allocations: 38.55 kB / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.6251, allocations: 0 / 1.025 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003722/0.6254, allocations: 97.75 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.6255, allocations: 51.41 kB / 1.026 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.724e-05/0.6256, allocations: 105.8 kB / 1.026 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.6256, allocations: 25.7 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.537e-05/0.6256, allocations: 84.08 kB / 1.026 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.018e-05/0.6256, allocations: 7.906 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.416e-05/0.6257, allocations: 9.719 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.417e-05/0.6258, allocations: 322.8 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.476e-05/0.6259, allocations: 24.02 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.947e-05/0.6259, allocations: 19.98 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.6261, allocations: 52.88 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.6261, allocations: 3.938 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002066/0.6263, allocations: 73.67 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.6264, allocations: 8 kB / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.6264, allocations: 0 / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.6264, allocations: 0 / 1.026 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.832e-05/0.6265, allocations: 11.98 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.6265, allocations: 3.938 kB / 1.026 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.316e-05/0.6266, allocations: 11.98 kB / 1.026 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.6266, allocations: 0 / 1.026 GB, free: 12.39 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 (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 6.504e-05/0.6266, allocations: 118.3 kB / 1.026 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.6267, allocations: 7.906 kB / 1.026 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002328/0.6269, allocations: 76.72 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.6269, allocations: 8.031 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.6269, allocations: 0 / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.6269, allocations: 3.984 kB / 1.027 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001474/0.6271, allocations: 161.6 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.6271, allocations: 4 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6e-05/0.6272, allocations: 11.98 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.6272, allocations: 0 / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-06/0.6272, allocations: 3.938 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.6272, allocations: 4 kB / 1.027 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6272, allocations: 7.938 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002342/0.6275, allocations: 171.5 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.996e-05/0.6275, allocations: 77.11 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.6275, allocations: 4.031 kB / 1.027 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.75e-05/0.6276, allocations: 11.98 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.89e-05/0.6276, allocations: 0 / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-06/0.6276, allocations: 4 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.15e-05/0.6277, allocations: 79.28 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6277, allocations: 0 / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002085/0.6279, allocations: 4 kB / 1.027 GB, free: 11.55 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 (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.0005043/0.6284, allocations: 0.7124 MB / 1.028 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001985/0.6286, allocations: 48 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.6286, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.135e-05/0.6287, allocations: 28.05 kB / 1.028 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002638/0.629, allocations: 9.859 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003785/0.6294, allocations: 144.4 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.6296, allocations: 0.677 MB / 1.029 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.975e-05/0.6296, allocations: 0 / 1.029 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.625e-05/0.6297, allocations: 11.44 kB / 1.029 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of SimCode: time 6.01e-07/0.6297, allocations: 4.062 kB / 1.029 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01116/0.6408, allocations: 1.006 MB / 1.03 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002788/0.6412, allocations: 201.8 kB / 1.03 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.679/2.32, allocations: 3.938 kB / 1.03 GB, free: 8.684 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Tan_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Tan.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Tan.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Tan.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches