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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001463/0.001463, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001978/0.001978, allocations: 194.7 kB / 16.14 MB, free: 6.57 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.339/1.339, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.528/2.528, allocations: 437 MB / 0.71 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 67.91 kB / 0.8687 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6154/0.6175, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001627/0.6192, allocations: 0.6801 MB / 1.017 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001568/0.6208, allocations: 1.466 MB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.321e-05/0.6208, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.73e-05/0.6208, allocations: 0 / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.318e-05/0.6208, allocations: 4 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.6212, allocations: 103.7 kB / 1.019 GB, free: 0.5 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.211e-05/0.6213, allocations: 35.97 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.851e-05/0.6213, allocations: 4 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.274e-05/0.6214, allocations: 15.98 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.198e-05/0.6214, allocations: 27.91 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.554e-05/0.6215, allocations: 0 / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003865/0.6219, allocations: 319.3 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.667e-05/0.6219, allocations: 3.984 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.374e-05/0.6219, allocations: 11.94 kB / 1.019 GB, free: 92 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000267/0.6222, allocations: 183.7 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.6222, allocations: 0 / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.062e-06/0.6222, allocations: 3.938 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.697e-06/0.6222, allocations: 0 / 1.02 GB, free: 15.91 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.0004444/0.6227, allocations: 369.8 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.6227, allocations: 8.031 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.085e-05/0.6227, allocations: 30.75 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004539/0.6232, allocations: 72.84 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.715e-05/0.6233, allocations: 160.4 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.6233, allocations: 384 / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.6233, allocations: 8.281 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.6236, allocations: 89.69 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.6236, allocations: 0 / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.6236, allocations: 0 / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.6236, allocations: 0 / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002922/0.6239, allocations: 71.86 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001583/0.6241, allocations: 165.6 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005553/0.6247, allocations: 118.6 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.6248, allocations: 52.89 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004288/0.6253, allocations: 149 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.43e-05/0.6253, allocations: 38.5 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.6253, allocations: 4 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.001063/0.6264, allocations: 406.1 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.6264, allocations: 55.41 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.888e-05/0.6265, allocations: 93.84 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.6265, allocations: 29.7 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.681e-05/0.6265, allocations: 88.12 kB / 1.021 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.31e-05/0.6266, allocations: 7.812 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.546e-05/0.6266, allocations: 25.84 kB / 1.021 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.92e-05/0.6267, allocations: 314.8 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.6268, allocations: 31.97 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.627, allocations: 44.09 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.6273, allocations: 80.8 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.6273, allocations: 0 / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003491/0.6277, allocations: 113.5 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.6277, allocations: 12 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.6277, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.6277, allocations: 0 / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.6278, allocations: 23.97 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.6279, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.843e-05/0.628, allocations: 15.98 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.628, allocations: 8 kB / 1.022 GB, free: 12.98 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 6.551e-05/0.6281, allocations: 106.4 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.6281, allocations: 7.844 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004329/0.6285, allocations: 141.1 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.6285, allocations: 4 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.6285, allocations: 0 / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.6285, allocations: 0 / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.6287, allocations: 161.7 kB / 1.022 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.6287, allocations: 7.875 kB / 1.022 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001503/0.6288, allocations: 27.97 kB / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.6288, allocations: 0 / 1.023 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.6289, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.6289, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.6289, allocations: 4.125 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005373/0.6294, allocations: 185 kB / 1.023 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.6295, allocations: 89.06 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.6295, allocations: 0 / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001201/0.6296, allocations: 19.97 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.221e-05/0.6297, allocations: 8.062 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.6297, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.805e-05/0.6297, allocations: 79.28 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6297, allocations: 0 / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002251/0.6299, allocations: 39.92 kB / 1.023 GB, free: 12.01 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.0008278/0.6308, allocations: 0.7568 MB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003445/0.6311, allocations: 83.94 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6311, allocations: 0 / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.6313, allocations: 43.95 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.6315, allocations: 5.719 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001793/0.6333, allocations: 1.35 MB / 1.025 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.6335, allocations: 0.6809 MB / 1.026 GB, free: 8.961 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001151/0.6336, allocations: 23.98 kB / 1.026 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.454e-05/0.6336, allocations: 15.44 kB / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6336, allocations: 0 / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0105/0.6441, allocations: 1.904 MB / 1.028 GB, free: 7.156 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.6443, allocations: 222.4 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.617/2.262, allocations: 0 / 1.028 GB, free: 6.898 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