Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.006599/0.006599, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001744/0.001744, allocations: 198.7 kB / 16.68 MB, free: 5.977 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.803/2.803, allocations: 482.6 MB / 0.755 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 67.89 kB / 1.083 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2877, allocations: 162.3 MB / 1.242 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001606/0.2893, allocations: 0.6108 MB / 1.242 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001725/0.2911, allocations: 1.439 MB / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.874e-05/0.2911, allocations: 0 / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.2911, allocations: 0 / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.875e-05/0.2912, allocations: 3.938 kB / 1.244 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004431/0.2916, allocations: 147.4 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.687e-05/0.2917, allocations: 31.91 kB / 1.244 GB, free: 7.527 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.549e-05/0.2917, allocations: 4 kB / 1.244 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.664e-05/0.2918, allocations: 15.98 kB / 1.244 GB, free: 7.508 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.866e-05/0.2918, allocations: 23.91 kB / 1.244 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.2919, allocations: 0 / 1.244 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004677/0.2923, allocations: 327.3 kB / 1.244 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.725e-05/0.2924, allocations: 7.984 kB / 1.244 GB, free: 7.156 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.527e-05/0.2924, allocations: 11.92 kB / 1.244 GB, free: 7.145 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.2927, allocations: 183.6 kB / 1.245 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2927, allocations: 0 / 1.245 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2927, allocations: 0 / 1.245 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.2927, allocations: 0 / 1.245 GB, free: 6.965 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005249/0.2933, allocations: 367 kB / 1.245 GB, free: 6.559 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2933, allocations: 19.95 kB / 1.245 GB, free: 6.539 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.664e-05/0.2933, allocations: 38.75 kB / 1.245 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004442/0.2938, allocations: 64.86 kB / 1.245 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001242/0.2939, allocations: 164.4 kB / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.2939, allocations: 384 / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.294, allocations: 8.312 kB / 1.245 GB, free: 6.223 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.2942, allocations: 73.77 kB / 1.245 GB, free: 6.145 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.2942, allocations: 4 kB / 1.245 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.2943, allocations: 4 kB / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.2943, allocations: 0 / 1.245 GB, free: 6.137 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003069/0.2946, allocations: 71.86 kB / 1.245 GB, free: 6.066 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001813/0.2948, allocations: 165.7 kB / 1.246 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000585/0.2954, allocations: 122.6 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001712/0.2955, allocations: 48.81 kB / 1.246 GB, free: 5.676 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004627/0.296, allocations: 153 kB / 1.246 GB, free: 5.508 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.509e-05/0.296, allocations: 34.5 kB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.296, allocations: 0 / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of matching and sorting (n=5): time 0.001165/0.2972, allocations: 402.2 kB / 1.246 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.739e-05/0.2973, allocations: 63.39 kB / 1.246 GB, free: 4.945 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.223e-05/0.2973, allocations: 89.86 kB / 1.246 GB, free: 4.848 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.2974, allocations: 29.7 kB / 1.246 GB, free: 4.812 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.383e-05/0.2974, allocations: 80.14 kB / 1.247 GB, free: 4.73 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.2974, allocations: 19.8 kB / 1.247 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.812e-05/0.2975, allocations: 21.7 kB / 1.247 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.2976, allocations: 318.8 kB / 1.247 GB, free: 4.363 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.2978, allocations: 36.09 kB / 1.247 GB, free: 4.328 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.2979, allocations: 36.14 kB / 1.247 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003143/0.2983, allocations: 84.73 kB / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.2983, allocations: 0 / 1.247 GB, free: 4.207 MB / 0.9981 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003778/0.2987, allocations: 113.6 kB / 1.247 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.2987, allocations: 4 kB / 1.247 GB, free: 4.086 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.416e-06/0.2987, allocations: 4 kB / 1.247 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.2987, allocations: 0 / 1.247 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001496/0.2989, allocations: 27.97 kB / 1.247 GB, free: 4.055 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.2989, allocations: 3.938 kB / 1.247 GB, free: 4.051 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.299, allocations: 11.98 kB / 1.247 GB, free: 4.039 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.299, allocations: 0 / 1.247 GB, free: 4.039 MB / 0.9981 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 (6): * Single equations (assignments): 6 * 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.468e-05/0.2991, allocations: 117.8 kB / 1.247 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.2991, allocations: 15.88 kB / 1.247 GB, free: 3.898 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000451/0.2996, allocations: 125.2 kB / 1.247 GB, free: 3.766 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2996, allocations: 4 kB / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.2996, allocations: 0 / 1.247 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.2996, allocations: 3.984 kB / 1.247 GB, free: 3.758 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.2997, allocations: 157.7 kB / 1.248 GB, free: 3.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2998, allocations: 7.938 kB / 1.248 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.2999, allocations: 27.97 kB / 1.248 GB, free: 3.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.2999, allocations: 4 kB / 1.248 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.2999, allocations: 0 / 1.248 GB, free: 3.516 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.3, allocations: 3.938 kB / 1.248 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3, allocations: 0 / 1.248 GB, free: 3.512 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005822/0.3005, allocations: 193.1 kB / 1.248 GB, free: 3.305 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-05/0.3006, allocations: 88.98 kB / 1.248 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.3007, allocations: 8.031 kB / 1.248 GB, free: 3.191 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.3008, allocations: 11.98 kB / 1.248 GB, free: 3.18 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.3008, allocations: 0 / 1.248 GB, free: 3.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.3008, allocations: 7.984 kB / 1.248 GB, free: 3.172 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.829e-05/0.3009, allocations: 79.34 kB / 1.248 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3009, allocations: 0 / 1.248 GB, free: 3.094 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002226/0.3011, allocations: 35.88 kB / 1.248 GB, free: 3.059 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0009358/0.3021, allocations: 0.7495 MB / 1.249 GB, free: 2.277 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003686/0.3024, allocations: 83.98 kB / 1.249 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3025, allocations: 0 / 1.249 GB, free: 2.195 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001715/0.3026, allocations: 47.91 kB / 1.249 GB, free: 2.148 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001402/0.3028, allocations: 8.375 kB / 1.249 GB, free: 2.145 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.3048, allocations: 1.355 MB / 1.25 GB, free: 0.707 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.3051, allocations: 0.6807 MB / 1.251 GB, free: 0 / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.4867/0.7918, allocations: 13.14 kB / 1.251 GB, free: 14.33 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.053e-05/0.7919, allocations: 12.97 kB / 1.251 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of SimCode: time 8.41e-07/0.7919, allocations: 0 / 1.251 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4046/1.197, allocations: 2.079 MB / 1.253 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.456/9.653, allocations: 3.984 kB / 1.253 GB, free: 14.01 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[191]=-0.810000 " Variables in the reference:time,y_comp,y Variables in the result:delta,der(x),der(y_comp),err,time,x,y,y_comp