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.008165/0.008165, allocations: 101 kB / 15.73 MB, free: 6.039 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.001859/0.001859, allocations: 198.5 kB / 16.68 MB, free: 5.973 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.312/2.312, allocations: 390.2 MB / 0.6648 GB, free: 180 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 59.44 kB / 0.9504 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2647, allocations: 140.4 MB / 1.088 GB, free: 1.926 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001822/0.2666, allocations: 0.6037 MB / 1.088 GB, free: 1.324 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002206/0.2688, allocations: 1.456 MB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.793e-05/0.2689, allocations: 0 / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.372e-05/0.2689, allocations: 0 / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.202e-05/0.2689, allocations: 4 kB / 1.09 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.2695, allocations: 139.4 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.521e-05/0.2696, allocations: 27.97 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.299e-05/0.2696, allocations: 7.938 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.659e-05/0.2697, allocations: 15.98 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.542e-05/0.2698, allocations: 27.89 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.2698, allocations: 4 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004461/0.2703, allocations: 319.4 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.2703, allocations: 7.984 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3e-05/0.2703, allocations: 11.92 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.2706, allocations: 183.7 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2706, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2707, allocations: 0 / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.088e-05/0.2707, allocations: 0 / 1.09 GB, free: 15.12 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.0006024/0.2713, allocations: 370.3 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.2713, allocations: 8.031 kB / 1.091 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.665e-05/0.2714, allocations: 34.75 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000444/0.2718, allocations: 72.75 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.272, allocations: 164.4 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.2721, allocations: 4.375 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.163e-05/0.2721, allocations: 384 / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002502/0.2723, allocations: 81.69 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.2724, allocations: 4 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.2724, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.2724, allocations: 0 / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000283/0.2727, allocations: 75.84 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001901/0.2729, allocations: 161.7 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005999/0.2735, allocations: 118.6 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001603/0.2737, allocations: 52.84 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005362/0.2742, allocations: 149 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.2742, allocations: 42.5 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.172e-06/0.2743, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.001148/0.2754, allocations: 407 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.2755, allocations: 55.41 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.195e-05/0.2755, allocations: 97.84 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/0.2756, allocations: 25.7 kB / 1.092 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.189e-05/0.2756, allocations: 80.14 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.658e-05/0.2756, allocations: 15.75 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.244e-05/0.2757, allocations: 21.72 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2758, allocations: 314.8 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.276, allocations: 36.09 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.2761, allocations: 35.97 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.2764, allocations: 76.8 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.2764, allocations: 3.938 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004434/0.2769, allocations: 125.4 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.2769, allocations: 4 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2769, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2769, allocations: 0 / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.2771, allocations: 27.97 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2771, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.247e-05/0.2772, allocations: 11.98 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.2772, allocations: 8 kB / 1.093 GB, free: 12.2 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 8.934e-05/0.2773, allocations: 105.8 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.2773, allocations: 11.94 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004374/0.2778, allocations: 133.1 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.2778, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2778, allocations: 320 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2778, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001405/0.278, allocations: 169.7 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.278, allocations: 11.94 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001483/0.2781, allocations: 23.97 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2781, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.2782, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2782, allocations: 3.938 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2782, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00054/0.2787, allocations: 189 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.2788, allocations: 92.97 kB / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.2788, allocations: 0 / 1.094 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.2789, allocations: 19.97 kB / 1.094 GB, free: 11.35 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.205e-05/0.279, allocations: 4 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.279, allocations: 0 / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.578e-05/0.279, allocations: 83.34 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.279, allocations: 0 / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002248/0.2793, allocations: 27.98 kB / 1.094 GB, free: 11.23 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.0009377/0.2802, allocations: 0.7491 MB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003611/0.2806, allocations: 87.94 kB / 1.094 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2806, allocations: 0 / 1.094 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.2808, allocations: 51.89 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.2809, allocations: 4 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.2831, allocations: 1.368 MB / 1.096 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004156/0.2836, allocations: 0.6771 MB / 1.097 GB, free: 8.16 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.674e-05/0.2837, allocations: 16 kB / 1.097 GB, free: 8.145 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.2837, allocations: 11.44 kB / 1.097 GB, free: 8.133 MB / 0.8575 GB Notification: Performance of SimCode: time 7.81e-07/0.2837, allocations: 0 / 1.097 GB, free: 8.133 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.3072, allocations: 2.055 MB / 1.099 GB, free: 6.211 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.681/7.988, allocations: 13.7 kB / 1.099 GB, free: 6.203 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