Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_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.008264/0.008264, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.00195/0.00195, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.797/2.797, allocations: 461.9 MB / 0.7348 GB, free: 14.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 64.12 kB / 1.054 GB, free: 7.566 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.298, allocations: 157.4 MB / 1.207 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.002174/0.3002, allocations: 0.6129 MB / 1.208 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002061/0.3023, allocations: 1.446 MB / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.341e-05/0.3024, allocations: 0 / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.575e-05/0.3024, allocations: 0 / 1.209 GB, free: 7.996 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.005e-05/0.3025, allocations: 3.938 kB / 1.209 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007372/0.3032, allocations: 143.4 kB / 1.209 GB, free: 7.852 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.452e-05/0.3033, allocations: 27.98 kB / 1.21 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.313e-05/0.3034, allocations: 3.984 kB / 1.21 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.193e-05/0.3035, allocations: 15.98 kB / 1.21 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.3036, allocations: 27.91 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.3036, allocations: 4 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000602/0.3042, allocations: 319.3 kB / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.085e-05/0.3042, allocations: 0 / 1.21 GB, free: 7.461 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.3043, allocations: 15.92 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.3046, allocations: 187.6 kB / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3046, allocations: 0 / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3046, allocations: 0 / 1.21 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.3047, allocations: 0 / 1.21 GB, free: 7.262 MB / 0.9669 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.0005994/0.3053, allocations: 375.7 kB / 1.21 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3053, allocations: 12.62 kB / 1.21 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.088e-05/0.3054, allocations: 30.75 kB / 1.21 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004922/0.3059, allocations: 72.84 kB / 1.211 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.306, allocations: 164.3 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.306, allocations: 4.312 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.238e-05/0.3061, allocations: 4.375 kB / 1.211 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.3063, allocations: 81.75 kB / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.3064, allocations: 0 / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.3064, allocations: 0 / 1.211 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.3064, allocations: 3.984 kB / 1.211 GB, free: 6.43 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003197/0.3067, allocations: 67.92 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002308/0.3069, allocations: 165.6 kB / 1.211 GB, free: 6.152 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006397/0.3076, allocations: 122.5 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.3078, allocations: 44.92 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004786/0.3083, allocations: 157 kB / 1.211 GB, free: 5.805 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3083, allocations: 38.5 kB / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.493e-06/0.3083, allocations: 0 / 1.211 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5): time 0.001234/0.3096, allocations: 406.2 kB / 1.212 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.3096, allocations: 55.41 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.569e-05/0.3097, allocations: 89.86 kB / 1.212 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.3097, allocations: 25.7 kB / 1.212 GB, free: 5.113 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.054e-05/0.3097, allocations: 84.14 kB / 1.212 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.233e-05/0.3098, allocations: 23.64 kB / 1.212 GB, free: 5.004 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.063e-05/0.3098, allocations: 17.72 kB / 1.212 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.689e-05/0.3099, allocations: 326.9 kB / 1.212 GB, free: 4.652 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000163/0.3101, allocations: 31.97 kB / 1.212 GB, free: 4.621 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.3103, allocations: 39.97 kB / 1.212 GB, free: 4.582 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003373/0.3106, allocations: 76.92 kB / 1.212 GB, free: 4.504 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3106, allocations: 8 kB / 1.212 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004038/0.311, allocations: 109.6 kB / 1.213 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3111, allocations: 4 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3111, allocations: 8 kB / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.3111, allocations: 0 / 1.213 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.3113, allocations: 19.98 kB / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.3113, allocations: 3.984 kB / 1.213 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.3114, allocations: 15.98 kB / 1.213 GB, free: 4.332 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.1e-05/0.3114, allocations: 0 / 1.213 GB, free: 4.332 MB / 0.9669 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.000113/0.3116, allocations: 117.8 kB / 1.213 GB, free: 4.207 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.131e-05/0.3116, allocations: 3.938 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005174/0.3121, allocations: 133.2 kB / 1.213 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3121, allocations: 4 kB / 1.213 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3121, allocations: 4 kB / 1.213 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3122, allocations: 3.938 kB / 1.213 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.3123, allocations: 161.7 kB / 1.213 GB, free: 3.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.3123, allocations: 3.938 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.3125, allocations: 19.98 kB / 1.213 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.125e-06/0.3125, allocations: 4 kB / 1.213 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.3125, allocations: 11.92 kB / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3125, allocations: 0 / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3125, allocations: 0 / 1.213 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006245/0.3132, allocations: 184.9 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.953e-05/0.3133, allocations: 89.06 kB / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.3133, allocations: 192 / 1.213 GB, free: 3.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.3134, allocations: 19.98 kB / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.798e-05/0.3135, allocations: 8.047 kB / 1.213 GB, free: 3.48 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.3135, allocations: 4 kB / 1.213 GB, free: 3.477 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.599e-05/0.3136, allocations: 75.28 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3136, allocations: 0 / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002776/0.3138, allocations: 39.98 kB / 1.213 GB, free: 3.363 MB / 0.9669 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.001063/0.3149, allocations: 0.749 MB / 1.214 GB, free: 2.582 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000399/0.3153, allocations: 83.98 kB / 1.214 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3153, allocations: 0 / 1.214 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000178/0.3155, allocations: 47.89 kB / 1.214 GB, free: 2.453 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001878/0.3157, allocations: 4.328 kB / 1.214 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.3181, allocations: 1.36 MB / 1.216 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.3183, allocations: 0.6807 MB / 1.216 GB, free: 304 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 9.196e-05/0.3184, allocations: 19.98 kB / 1.216 GB, free: 284 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.784e-05/0.3185, allocations: 11.44 kB / 1.216 GB, free: 272 kB / 0.9669 GB Notification: Performance of SimCode: time 3.71e-07/0.3185, allocations: 4 kB / 1.216 GB, free: 268 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.3401, allocations: 2.086 MB / 1.218 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.558/7.898, allocations: 12.66 kB / 1.218 GB, free: 14.3 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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