Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_10_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.001232/0.001232, 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.001965/0.001965, allocations: 192.8 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.336/1.336, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.376/2.376, allocations: 437 MB / 0.7101 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001388, allocations: 63.91 kB / 0.8689 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6203/0.6217, allocations: 151.6 MB / 1.017 GB, free: 2.828 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001847/0.6236, allocations: 0.6722 MB / 1.018 GB, free: 2.152 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001701/0.6253, allocations: 1.45 MB / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.08e-05/0.6253, allocations: 0 / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.678e-05/0.6253, allocations: 0 / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.44e-05/0.6254, allocations: 0 / 1.019 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.6258, allocations: 123.6 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.16e-05/0.6259, allocations: 23.98 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.626, allocations: 7.984 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.17e-05/0.626, allocations: 15.98 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.556e-05/0.6261, allocations: 31.89 kB / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.6261, allocations: 0 / 1.019 GB, free: 496 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004027/0.6265, allocations: 315.4 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.543e-05/0.6265, allocations: 7.984 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.692e-05/0.6266, allocations: 19.92 kB / 1.02 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002758/0.6269, allocations: 179.8 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.6269, allocations: 4 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6269, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.541e-06/0.6269, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 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.000534/0.6274, allocations: 365.6 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.6275, allocations: 11.97 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.321e-05/0.6275, allocations: 38.69 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004429/0.628, allocations: 64.84 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.6281, allocations: 172.4 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.6281, allocations: 384 / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.801e-05/0.6281, allocations: 384 / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.6284, allocations: 77.75 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.6284, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.6284, allocations: 0 / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.6285, allocations: 8 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000276/0.6287, allocations: 55.94 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.6289, allocations: 181.4 kB / 1.021 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005526/0.6295, allocations: 122.5 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.6297, allocations: 40.98 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004435/0.6301, allocations: 161 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.285e-05/0.6302, allocations: 38.5 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.202e-06/0.6302, allocations: 0 / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.001089/0.6313, allocations: 402.2 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.6313, allocations: 51.41 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.639e-05/0.6314, allocations: 97.86 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.6314, allocations: 25.7 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.6314, allocations: 80.14 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.198e-05/0.6315, allocations: 19.8 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.433e-05/0.6315, allocations: 21.66 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001102/0.6317, allocations: 314.8 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.6318, allocations: 40.09 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001381/0.632, allocations: 31.97 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002965/0.6323, allocations: 80.8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.82e-07/0.6323, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003405/0.6326, allocations: 113.6 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.6326, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.6326, allocations: 256 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.17e-05/0.6327, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.6328, allocations: 31.92 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.6328, allocations: 11.92 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.897e-05/0.6329, allocations: 11.98 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.633, allocations: 4 kB / 1.022 GB, free: 13.05 MB / 0.7794 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.73e-05/0.633, allocations: 106.4 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.786e-05/0.6331, allocations: 8.266 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004486/0.6335, allocations: 141.1 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.6335, allocations: 3.984 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.6335, allocations: 0 / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.6336, allocations: 0 / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.6337, allocations: 169.6 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/0.6337, allocations: 3.938 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.6339, allocations: 27.92 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.6339, allocations: 0 / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.6339, allocations: 3.984 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.6339, allocations: 4 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.6339, allocations: 7.922 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005386/0.6345, allocations: 181 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.349e-05/0.6345, allocations: 89.06 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.6346, allocations: 0 / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.6347, allocations: 15.98 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.809e-05/0.6347, allocations: 7.984 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.6347, allocations: 4 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.137e-05/0.6348, allocations: 75.28 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6348, allocations: 4.094 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000222/0.635, allocations: 43.92 kB / 1.023 GB, free: 12.07 MB / 0.7794 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.0008776/0.6359, allocations: 0.7432 MB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003539/0.6363, allocations: 91.92 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.6363, allocations: 0 / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.6365, allocations: 47.95 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001519/0.6366, allocations: 8.75 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00188/0.6385, allocations: 1.36 MB / 1.025 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.6388, allocations: 0.6768 MB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001086/0.6389, allocations: 16 kB / 1.026 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.6389, allocations: 19.42 kB / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.6389, allocations: 0 / 1.026 GB, free: 8.977 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01362/0.6526, allocations: 1.96 MB / 1.028 GB, free: 7.176 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002322/0.6528, allocations: 219.7 kB / 1.028 GB, free: 6.922 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/2.43, allocations: 3.938 kB / 1.028 GB, free: 6.918 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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