Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_9_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.007411/0.007411, allocations: 102.3 kB / 15.73 MB, free: 6.023 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.002124/0.002124, allocations: 189.5 kB / 16.67 MB, free: 5.957 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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.368/2.368, allocations: 390.2 MB / 0.6648 GB, free: 204 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 68.58 kB / 0.9504 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3184, allocations: 140.4 MB / 1.088 GB, free: 1.965 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001958/0.3204, allocations: 0.5998 MB / 1.088 GB, free: 1.367 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002113/0.3225, allocations: 1.452 MB / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.314e-05/0.3226, allocations: 0 / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.492e-05/0.3226, allocations: 0 / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.597e-05/0.3227, allocations: 0 / 1.09 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006435/0.3233, allocations: 135.5 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.387e-05/0.3234, allocations: 31.95 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.066e-05/0.3235, allocations: 8 kB / 1.09 GB, free: 15.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.199e-05/0.3235, allocations: 11.98 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.508e-05/0.3236, allocations: 31.89 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.492e-05/0.3236, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005134/0.3242, allocations: 323.3 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.029e-05/0.3242, allocations: 7.984 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.313e-05/0.3242, allocations: 15.92 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.3246, allocations: 183.7 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3246, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.254e-06/0.3246, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.3246, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 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.0006661/0.3253, allocations: 366.3 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/0.3253, allocations: 8.031 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.008e-05/0.3254, allocations: 42.75 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005294/0.3259, allocations: 72.75 kB / 1.091 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.3261, allocations: 164.4 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.3261, allocations: 384 / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.807e-05/0.3261, allocations: 384 / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002774/0.3264, allocations: 81.69 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.3264, allocations: 0 / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.3265, allocations: 8 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.3265, allocations: 0 / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003055/0.3268, allocations: 63.88 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002096/0.327, allocations: 165.7 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000674/0.3277, allocations: 118.5 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.3279, allocations: 44.98 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000521/0.3284, allocations: 157 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.3285, allocations: 38.5 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 3.266e-06/0.3285, allocations: 0 / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.00148/0.33, allocations: 410.9 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.33, allocations: 55.41 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.667e-05/0.3301, allocations: 93.86 kB / 1.092 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/0.3302, allocations: 25.7 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.882e-05/0.3302, allocations: 84.14 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.3303, allocations: 15.75 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/0.3303, allocations: 21.7 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3305, allocations: 310.8 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.3307, allocations: 44.08 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001499/0.3309, allocations: 31.97 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003124/0.3312, allocations: 80.8 kB / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3312, allocations: 0 / 1.093 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003832/0.3316, allocations: 121.4 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.3316, allocations: 7.984 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3317, allocations: 3.984 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.3317, allocations: 0 / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3318, allocations: 28.56 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.3319, allocations: 0 / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.332, allocations: 19.98 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.332, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 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 0.000102/0.3321, allocations: 113.8 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.3321, allocations: 3.938 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005028/0.3326, allocations: 145.1 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.3327, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3327, allocations: 0 / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.3327, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.3329, allocations: 161.7 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.3329, allocations: 11.88 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.333, allocations: 19.98 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.3331, allocations: 0 / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.3331, allocations: 8 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3331, allocations: 0 / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3331, allocations: 0 / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006104/0.3337, allocations: 189 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.3338, allocations: 88.94 kB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.3339, allocations: 0 / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.334, allocations: 15.98 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.06e-05/0.334, allocations: 7.984 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.077e-05/0.3341, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.494e-05/0.3341, allocations: 79.34 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.81e-07/0.3341, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002477/0.3344, allocations: 28 kB / 1.094 GB, free: 11.28 MB / 0.8575 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.001165/0.3355, allocations: 0.7452 MB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004049/0.336, allocations: 92.11 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.336, allocations: 3.938 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.3362, allocations: 43.97 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001797/0.3363, allocations: 8 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002408/0.3388, allocations: 1.36 MB / 1.096 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.3391, allocations: 0.6807 MB / 1.097 GB, free: 8.207 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.858e-05/0.3392, allocations: 12 kB / 1.097 GB, free: 8.195 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.334e-05/0.3392, allocations: 15.42 kB / 1.097 GB, free: 8.18 MB / 0.8575 GB Notification: Performance of SimCode: time 3.91e-07/0.3393, allocations: 4 kB / 1.097 GB, free: 8.176 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.3616, allocations: 2.074 MB / 1.099 GB, free: 6.238 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.684/8.046, allocations: 18.19 kB / 1.099 GB, free: 6.223 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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