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.006729/0.006729, allocations: 101 kB / 15.73 MB, free: 6.051 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.001652/0.001652, allocations: 188.4 kB / 16.67 MB, free: 5.98 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.502/1.502, allocations: 222.9 MB / 240.4 MB, free: 4.305 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.736/2.736, allocations: 437.1 MB / 0.7105 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 71.88 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2938, allocations: 151.6 MB / 1.166 GB, free: 7.27 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001949/0.2958, allocations: 0.6039 MB / 1.167 GB, free: 6.664 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001916/0.2977, allocations: 1.447 MB / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.456e-05/0.2978, allocations: 0 / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.071e-05/0.2979, allocations: 0 / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.128e-05/0.2979, allocations: 0 / 1.168 GB, free: 5.199 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007102/0.2986, allocations: 139.4 kB / 1.168 GB, free: 5.062 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.576e-05/0.2987, allocations: 31.95 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.182e-05/0.2988, allocations: 4 kB / 1.168 GB, free: 5.027 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.462e-05/0.2988, allocations: 23.86 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.217e-05/0.2989, allocations: 27.97 kB / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.299, allocations: 0 / 1.168 GB, free: 4.977 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005189/0.2995, allocations: 319.3 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.176e-05/0.2995, allocations: 7.984 kB / 1.169 GB, free: 4.656 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.795e-05/0.2996, allocations: 15.92 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003184/0.2999, allocations: 187.6 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2999, allocations: 0 / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2999, allocations: 0 / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.2999, allocations: 0 / 1.169 GB, free: 4.457 MB / 0.92 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.0005066/0.3004, allocations: 362.4 kB / 1.169 GB, free: 4.059 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.3005, allocations: 12.02 kB / 1.169 GB, free: 4.047 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.3005, allocations: 34.75 kB / 1.169 GB, free: 4.004 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004465/0.301, allocations: 64.77 kB / 1.169 GB, free: 3.941 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.3011, allocations: 168.4 kB / 1.17 GB, free: 3.738 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.3011, allocations: 4.375 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.3011, allocations: 384 / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002504/0.3014, allocations: 81.7 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.3014, allocations: 0 / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.3014, allocations: 4 kB / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3014, allocations: 0 / 1.17 GB, free: 3.645 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002835/0.3017, allocations: 63.92 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.3019, allocations: 165.7 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005767/0.3025, allocations: 114.6 kB / 1.17 GB, free: 3.25 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.3027, allocations: 52.75 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004254/0.3031, allocations: 157 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.3031, allocations: 34.5 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 1.242e-06/0.3032, allocations: 0 / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.001133/0.3043, allocations: 407 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.271e-05/0.3043, allocations: 59.39 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.561e-05/0.3044, allocations: 97.8 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.3044, allocations: 25.7 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.626e-05/0.3045, allocations: 80.14 kB / 1.171 GB, free: 2.242 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.137e-05/0.3045, allocations: 23.73 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-05/0.3045, allocations: 21.7 kB / 1.171 GB, free: 2.191 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.14e-05/0.3046, allocations: 315 kB / 1.171 GB, free: 1.875 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3048, allocations: 35.97 kB / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.305, allocations: 39.95 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002854/0.3052, allocations: 76.98 kB / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3053, allocations: 0 / 1.171 GB, free: 1.723 MB / 0.92 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000347/0.3056, allocations: 121.4 kB / 1.171 GB, free: 1.598 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.3056, allocations: 4 kB / 1.171 GB, free: 1.594 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3056, allocations: 4 kB / 1.171 GB, free: 1.59 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3057, allocations: 336 / 1.171 GB, free: 1.59 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.3058, allocations: 27.97 kB / 1.171 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3058, allocations: 0 / 1.171 GB, free: 1.562 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.245e-05/0.3059, allocations: 11.98 kB / 1.171 GB, free: 1.551 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.3059, allocations: 4 kB / 1.171 GB, free: 1.547 MB / 0.92 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.641e-05/0.306, allocations: 113.8 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.866e-05/0.3061, allocations: 7.922 kB / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004474/0.3065, allocations: 133.1 kB / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.3065, allocations: 0 / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3065, allocations: 0 / 1.172 GB, free: 1.277 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3065, allocations: 11.98 kB / 1.172 GB, free: 1.266 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.3067, allocations: 161.7 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3067, allocations: 3.938 kB / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.3068, allocations: 23.97 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.3069, allocations: 0 / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.3069, allocations: 7.938 kB / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.3069, allocations: 0 / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3069, allocations: 0 / 1.172 GB, free: 1.023 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005477/0.3074, allocations: 196.9 kB / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.119e-05/0.3075, allocations: 85.03 kB / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.3075, allocations: 192 / 1.172 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.3077, allocations: 16.02 kB / 1.172 GB, free: 0.6953 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.813e-05/0.3077, allocations: 8 kB / 1.172 GB, free: 0.6875 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3077, allocations: 12.05 kB / 1.172 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.967e-05/0.3077, allocations: 75.28 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3077, allocations: 3.938 kB / 1.172 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002326/0.308, allocations: 28 kB / 1.172 GB, free: 0.5703 MB / 0.92 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.0008688/0.3089, allocations: 0.7569 MB / 1.173 GB, free: 15.78 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003566/0.3092, allocations: 83.98 kB / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3092, allocations: 0 / 1.173 GB, free: 15.7 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.3094, allocations: 43.91 kB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001541/0.3096, allocations: 4 kB / 1.173 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.3115, allocations: 1.37 MB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.3117, allocations: 0.6807 MB / 1.175 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.35e-05/0.3118, allocations: 16 kB / 1.175 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.688e-05/0.3119, allocations: 15.42 kB / 1.175 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.3119, allocations: 4 kB / 1.175 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05332/0.3652, allocations: 2.062 MB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.408, allocations: 3.938 kB / 1.177 GB, free: 11.54 MB / 0.9356 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