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 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.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.001301/0.001301, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.616/2.616, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 66.52 kB / 0.8992 GB, free: 36.92 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2867, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00183/0.2886, allocations: 0.6127 MB / 1.053 GB, free: 7.629 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001749/0.2903, allocations: 1.462 MB / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.754e-05/0.2904, allocations: 0 / 1.055 GB, free: 6.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.506e-05/0.2904, allocations: 7.875 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.141e-05/0.2905, allocations: 0 / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005316/0.291, allocations: 138.6 kB / 1.055 GB, free: 6.008 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.053e-05/0.2911, allocations: 31.95 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.982e-05/0.2911, allocations: 0 / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.93e-05/0.2911, allocations: 15.98 kB / 1.055 GB, free: 5.961 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.896e-05/0.2912, allocations: 27.91 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.716e-05/0.2913, allocations: 0 / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004504/0.2917, allocations: 319.3 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.98e-05/0.2917, allocations: 7.984 kB / 1.055 GB, free: 5.613 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.827e-05/0.2918, allocations: 15.92 kB / 1.055 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003034/0.2921, allocations: 183.7 kB / 1.056 GB, free: 5.418 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2921, allocations: 4 kB / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2921, allocations: 0 / 1.056 GB, free: 5.414 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.2921, allocations: 0 / 1.056 GB, free: 5.414 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005662/0.2927, allocations: 367.7 kB / 1.056 GB, free: 5.008 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.2927, allocations: 12.62 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.792e-05/0.2928, allocations: 38.62 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004744/0.2933, allocations: 64.84 kB / 1.056 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.2934, allocations: 168.3 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.2934, allocations: 4.375 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.2935, allocations: 4.375 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.2937, allocations: 81.73 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2938, allocations: 0 / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.2938, allocations: 4 kB / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.2938, allocations: 0 / 1.056 GB, free: 4.586 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003058/0.2941, allocations: 59.94 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002096/0.2943, allocations: 161.7 kB / 1.057 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006095/0.295, allocations: 134.5 kB / 1.057 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.2951, allocations: 36.92 kB / 1.057 GB, free: 4.141 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004696/0.2956, allocations: 157 kB / 1.057 GB, free: 3.969 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.2956, allocations: 34.5 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.313e-06/0.2957, allocations: 0 / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.001193/0.2969, allocations: 406.1 kB / 1.057 GB, free: 3.477 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.184e-05/0.2969, allocations: 51.41 kB / 1.057 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.113e-05/0.297, allocations: 97.86 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.297, allocations: 29.83 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.667e-05/0.297, allocations: 84.12 kB / 1.058 GB, free: 3.188 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.15e-05/0.2971, allocations: 19.75 kB / 1.058 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.601e-05/0.2971, allocations: 21.7 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.132e-05/0.2972, allocations: 318.8 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000161/0.2974, allocations: 39.95 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.2975, allocations: 32.16 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.2978, allocations: 80.8 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.2978, allocations: 0 / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003632/0.2982, allocations: 113.6 kB / 1.058 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.2982, allocations: 4 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.2983, allocations: 3.984 kB / 1.058 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2983, allocations: 3.938 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.2984, allocations: 27.92 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.2984, allocations: 4 kB / 1.058 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.2985, allocations: 11.98 kB / 1.058 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.2986, allocations: 0 / 1.058 GB, free: 2.496 MB / 0.8106 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.765e-05/0.2987, allocations: 117.8 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.013e-05/0.2987, allocations: 7.844 kB / 1.058 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004566/0.2991, allocations: 133.1 kB / 1.058 GB, free: 2.23 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2992, allocations: 3.984 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2992, allocations: 0 / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.2992, allocations: 4 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.2993, allocations: 161.7 kB / 1.059 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.2993, allocations: 7.922 kB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.2995, allocations: 27.92 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2995, allocations: 0 / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.2995, allocations: 4 kB / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.2995, allocations: 0 / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2995, allocations: 0 / 1.059 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005666/0.3001, allocations: 193.2 kB / 1.059 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.288e-05/0.3002, allocations: 89.27 kB / 1.059 GB, free: 1.664 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.931e-05/0.3002, allocations: 4.062 kB / 1.059 GB, free: 1.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.3003, allocations: 11.98 kB / 1.059 GB, free: 1.648 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.494e-05/0.3004, allocations: 15.97 kB / 1.059 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.738e-06/0.3004, allocations: 4 kB / 1.059 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.955e-05/0.3004, allocations: 75.28 kB / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.302e-06/0.3004, allocations: 0 / 1.059 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002342/0.3007, allocations: 31.94 kB / 1.059 GB, free: 1.523 MB / 0.8106 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.0008697/0.3015, allocations: 0.7452 MB / 1.06 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003719/0.3019, allocations: 91.92 kB / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3019, allocations: 0 / 1.06 GB, free: 0.6562 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001649/0.3021, allocations: 43.97 kB / 1.06 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.3023, allocations: 4 kB / 1.06 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001935/0.3042, allocations: 1.364 MB / 1.061 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.3044, allocations: 0.6807 MB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001189/0.3046, allocations: 12 kB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.912e-05/0.3046, allocations: 19.42 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3046, allocations: 0 / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02008/0.3247, allocations: 2.049 MB / 1.064 GB, free: 12.5 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.97/7.294, allocations: 13.27 kB / 1.064 GB, free: 12.49 MB / 0.8262 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=50 --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[1]=-1.000000 " Variables in the reference:time,y_comp,y Variables in the result:delta,der(x),der(y_comp),err,time,x,y,y_comp