Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.001262/0.001262, allocations: 107.3 kB / 15.33 MB, free: 0.5039 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.00129/0.00129, allocations: 199.3 kB / 16.26 MB, free: 6.633 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.365/1.365, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.822/2.822, allocations: 461.9 MB / 0.7343 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 65.5 kB / 0.8987 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2801/0.2814, allocations: 157.4 MB / 1.052 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002435/0.2839, allocations: 0.8541 MB / 1.053 GB, free: 7.809 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002034/0.286, allocations: 1.485 MB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.4e-05/0.286, allocations: 0 / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.481e-05/0.2861, allocations: 4 kB / 1.055 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.367e-05/0.2862, allocations: 3.938 kB / 1.055 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006705/0.2869, allocations: 115.7 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.833e-05/0.287, allocations: 51.84 kB / 1.055 GB, free: 6.133 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.597e-05/0.287, allocations: 7.984 kB / 1.055 GB, free: 6.125 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.175e-05/0.2871, allocations: 27.91 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.547e-05/0.2872, allocations: 27.91 kB / 1.055 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.2872, allocations: 8 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005121/0.2877, allocations: 323.3 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.021e-05/0.2878, allocations: 15.92 kB / 1.055 GB, free: 5.73 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.374e-05/0.2878, allocations: 27.84 kB / 1.055 GB, free: 5.703 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003696/0.2882, allocations: 203.9 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2882, allocations: 0 / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2882, allocations: 0 / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.941e-06/0.2882, allocations: 4 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007441/0.289, allocations: 395.4 kB / 1.056 GB, free: 5.066 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.2891, allocations: 12.62 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.683e-05/0.2891, allocations: 42.67 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004922/0.2896, allocations: 76.7 kB / 1.056 GB, free: 4.93 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.2898, allocations: 172.3 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.2898, allocations: 8.375 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.367e-05/0.2898, allocations: 4.375 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/0.2903, allocations: 113.7 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.2903, allocations: 3.938 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.2903, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.365e-06/0.2903, allocations: 4 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000483/0.2908, allocations: 107.8 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006079/0.2914, allocations: 340.6 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006401/0.2921, allocations: 154.4 kB / 1.057 GB, free: 3.938 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002338/0.2923, allocations: 56.81 kB / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.2924, allocations: 0 / 1.057 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.2924, allocations: 38.55 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.2924, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.02135/0.3138, allocations: 2.823 MB / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.511e-05/0.3138, allocations: 63.34 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.604e-05/0.3139, allocations: 97.86 kB / 1.06 GB, free: 0.7344 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 8.266e-05/0.314, allocations: 29.7 kB / 1.06 GB, free: 0.6992 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.073e-05/0.3141, allocations: 92.06 kB / 1.06 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.534e-05/0.3142, allocations: 35.45 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001868/0.3144, allocations: 69.58 kB / 1.06 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.818e-05/0.3145, allocations: 314.8 kB / 1.06 GB, free: 184 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007145/0.3152, allocations: 199.8 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006799/0.3159, allocations: 194.9 kB / 1.061 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.3173, allocations: 388.5 kB / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.3173, allocations: 0 / 1.061 GB, free: 15.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001601/0.3189, allocations: 481.4 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3189, allocations: 4 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.319, allocations: 4.312 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.319, allocations: 0 / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009078/0.3199, allocations: 115.7 kB / 1.062 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.176e-06/0.3199, allocations: 0 / 1.062 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006785/0.3206, allocations: 51.94 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.32e-05/0.3207, allocations: 23.92 kB / 1.062 GB, free: 14.74 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 (13): * Single equations (assignments): 13 * 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.0001641/0.3208, allocations: 117.8 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.194e-05/0.3209, allocations: 7.906 kB / 1.062 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.49e-05/0.321, allocations: 11.97 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.321, allocations: 7.938 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3211, allocations: 0 / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3211, allocations: 4 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.3233, allocations: 1.047 MB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3233, allocations: 96 / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009027/0.3242, allocations: 115.7 kB / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.3243, allocations: 0 / 1.063 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.23e-05/0.3243, allocations: 19.94 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3243, allocations: 4 kB / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3243, allocations: 0 / 1.063 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002384/0.3267, allocations: 0.7994 MB / 1.064 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.3269, allocations: 117 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.176e-05/0.327, allocations: 0 / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007587/0.3277, allocations: 55.98 kB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.3279, allocations: 19.94 kB / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.577e-05/0.3279, allocations: 27.92 kB / 1.064 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.459e-05/0.328, allocations: 83.28 kB / 1.064 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.328, allocations: 4 kB / 1.064 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003983/0.3284, allocations: 48 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.002734/0.3311, allocations: 1.348 MB / 1.066 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001488/0.3326, allocations: 427.5 kB / 1.066 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3327, allocations: 0 / 1.066 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000753/0.3334, allocations: 223.7 kB / 1.066 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004103/0.3338, allocations: 14.05 kB / 1.066 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008874/0.3427, allocations: 2.954 MB / 1.069 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.343, allocations: 0.6962 MB / 1.07 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0007337/0.3437, allocations: 96.59 kB / 1.07 GB, free: 6.234 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.344, allocations: 67.3 kB / 1.07 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of SimCode: time 9.92e-07/0.344, allocations: 0 / 1.07 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01645/0.3605, allocations: 4.454 MB / 1.074 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/0.3607, allocations: 227.6 kB / 1.074 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/2.954, allocations: 9.5 kB / 1.074 GB, free: 1.613 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.500000 File[1]=-1.500000 " Variables in the reference:time,y,y_comp,der_y,der_y_comp,der_err,err Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,delta,der(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,time,x,y,y_comp