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.001555/0.001555, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001844/0.001844, allocations: 191.3 kB / 16.25 MB, free: 6.641 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.264/1.264, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.841/2.841, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 69.3 kB / 0.8987 GB, free: 37.22 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.278, allocations: 157.4 MB / 1.052 GB, free: 8.625 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00176/0.2798, allocations: 0.6581 MB / 1.053 GB, free: 7.961 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001685/0.2815, allocations: 1.466 MB / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.948e-05/0.2816, allocations: 0 / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.351e-05/0.2816, allocations: 0 / 1.054 GB, free: 6.477 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.622e-05/0.2816, allocations: 3.938 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.2821, allocations: 115.7 kB / 1.055 GB, free: 6.359 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.299e-05/0.2822, allocations: 31.91 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.09e-05/0.2822, allocations: 7.922 kB / 1.055 GB, free: 6.32 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.131e-05/0.2823, allocations: 16 kB / 1.055 GB, free: 6.305 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.299e-05/0.2823, allocations: 27.89 kB / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.2824, allocations: 0 / 1.055 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004407/0.2828, allocations: 315.4 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.537e-05/0.2828, allocations: 3.984 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.2829, allocations: 15.92 kB / 1.055 GB, free: 5.949 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.2831, allocations: 187.7 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2832, allocations: 4 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2832, allocations: 0 / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.084e-05/0.2832, allocations: 0 / 1.055 GB, free: 5.762 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.0005029/0.2837, allocations: 367.7 kB / 1.056 GB, free: 5.355 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2837, allocations: 12.62 kB / 1.056 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.605e-05/0.2838, allocations: 34.75 kB / 1.056 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004793/0.2843, allocations: 68.84 kB / 1.056 GB, free: 5.234 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.2844, allocations: 168.3 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.2844, allocations: 384 / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.2844, allocations: 8.375 kB / 1.056 GB, free: 5.023 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.2847, allocations: 85.67 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.2847, allocations: 0 / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.2847, allocations: 0 / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2848, allocations: 0 / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.2851, allocations: 63.94 kB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001808/0.2852, allocations: 165.7 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005999/0.2858, allocations: 126.5 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.286, allocations: 40.92 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004748/0.2865, allocations: 157 kB / 1.056 GB, free: 4.312 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.2866, allocations: 38.5 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.253e-06/0.2866, allocations: 0 / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5): time 0.001183/0.2878, allocations: 406.1 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.2878, allocations: 51.41 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.718e-05/0.2879, allocations: 93.86 kB / 1.057 GB, free: 3.652 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.2879, allocations: 25.83 kB / 1.057 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.057e-05/0.2879, allocations: 84.14 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.209e-05/0.288, allocations: 23.73 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.741e-05/0.288, allocations: 17.72 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.746e-05/0.2881, allocations: 318.8 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.2883, allocations: 35.97 kB / 1.057 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.2884, allocations: 31.97 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003243/0.2888, allocations: 84.73 kB / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2888, allocations: 0 / 1.058 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003645/0.2892, allocations: 117.5 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2892, allocations: 9.5 kB / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2892, allocations: 0 / 1.058 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.2892, allocations: 4 kB / 1.058 GB, free: 2.883 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000154/0.2894, allocations: 20.23 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.2894, allocations: 0 / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001127/0.2895, allocations: 27.97 kB / 1.058 GB, free: 2.836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.2895, allocations: 0 / 1.058 GB, free: 2.836 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 7.709e-05/0.2896, allocations: 109.8 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.2896, allocations: 11.78 kB / 1.058 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004713/0.2901, allocations: 137.2 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.2901, allocations: 0 / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2901, allocations: 4 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2901, allocations: 0 / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.2903, allocations: 161.7 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2903, allocations: 3.938 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001594/0.2905, allocations: 19.98 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2905, allocations: 4 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.2905, allocations: 7.984 kB / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2905, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2905, allocations: 0 / 1.058 GB, free: 2.324 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005758/0.2911, allocations: 189 kB / 1.058 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.605e-05/0.2912, allocations: 89.27 kB / 1.058 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.2912, allocations: 4.094 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.2913, allocations: 19.98 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.2914, allocations: 7.969 kB / 1.058 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.2914, allocations: 4 kB / 1.059 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.295e-05/0.2914, allocations: 75.28 kB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2914, allocations: 0 / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002512/0.2917, allocations: 35.98 kB / 1.059 GB, free: 1.871 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.0009155/0.2926, allocations: 0.7491 MB / 1.059 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003806/0.293, allocations: 84.17 kB / 1.059 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.293, allocations: 7.938 kB / 1.059 GB, free: 1 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.2932, allocations: 51.89 kB / 1.059 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000159/0.2934, allocations: 4 kB / 1.059 GB, free: 0.9453 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.2954, allocations: 1.359 MB / 1.061 GB, free: 15.51 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.2956, allocations: 0.6846 MB / 1.061 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001173/0.2957, allocations: 16 kB / 1.061 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.2e-05/0.2958, allocations: 19.42 kB / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.2958, allocations: 0 / 1.062 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01946/0.3153, allocations: 1.948 MB / 1.063 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003225/0.3156, allocations: 232 kB / 1.064 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.86/3.175, allocations: 0 / 1.064 GB, free: 12.72 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