Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00154/0.00154, allocations: 111.3 kB / 17.6 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 190.8 kB / 20.78 MB, free: 1.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 225.6 MB / 249.4 MB, free: 3.25 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.962/2.962, allocations: 476.7 MB / 0.7629 GB, free: 15.12 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.InverseXDerivative_2_Check,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002018, allocations: 67.89 kB / 1.107 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.095/1.097, allocations: 168.7 MB / 1.272 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002304/1.099, allocations: 0.8011 MB / 1.272 GB, free: 7.199 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.002179/1.101, allocations: 1.49 MB / 1.274 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.559e-05/1.101, allocations: 8.906 kB / 1.274 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.185e-05/1.101, allocations: 0.7031 kB / 1.274 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.248e-05/1.101, allocations: 3.938 kB / 1.274 GB, free: 6.105 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005686/1.102, allocations: 146.1 kB / 1.274 GB, free: 6.039 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001151/1.102, allocations: 51.98 kB / 1.274 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.132e-05/1.102, allocations: 9.75 kB / 1.274 GB, free: 6.016 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.951e-05/1.102, allocations: 29.86 kB / 1.274 GB, free: 6 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.706e-05/1.102, allocations: 30.52 kB / 1.274 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/1.102, allocations: 3.969 kB / 1.274 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004995/1.103, allocations: 324.8 kB / 1.274 GB, free: 5.898 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/1.103, allocations: 13.52 kB / 1.274 GB, free: 5.891 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 4.052e-05/1.103, allocations: 23.62 kB / 1.274 GB, free: 5.875 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003492/1.103, allocations: 211.1 kB / 1.275 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/1.103, allocations: 0.75 kB / 1.275 GB, free: 5.816 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.034e-06/1.103, allocations: 4 kB / 1.275 GB, free: 5.812 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.566e-06/1.103, allocations: 1.062 kB / 1.275 GB, free: 5.812 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006598/1.104, allocations: 406.9 kB / 1.275 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/1.104, allocations: 9.688 kB / 1.275 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.741e-05/1.104, allocations: 33.33 kB / 1.275 GB, free: 5.375 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004864/1.104, allocations: 85.11 kB / 1.275 GB, free: 5.355 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001004/1.104, allocations: 168 kB / 1.275 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/1.104, allocations: 2.812 kB / 1.275 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/1.104, allocations: 13.09 kB / 1.275 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004023/1.105, allocations: 112.4 kB / 1.275 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/1.105, allocations: 0.625 kB / 1.275 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/1.105, allocations: 5.156 kB / 1.275 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/1.105, allocations: 1.781 kB / 1.275 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005075/1.105, allocations: 101.5 kB / 1.276 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005839/1.106, allocations: 331.7 kB / 1.276 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006615/1.107, allocations: 156.3 kB / 1.276 GB, free: 4.73 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002473/1.107, allocations: 58.83 kB / 1.276 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.952e-05/1.107, allocations: 1.562 kB / 1.276 GB, free: 4.711 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/1.107, allocations: 31.75 kB / 1.276 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/1.107, allocations: 0 / 1.276 GB, free: 4.672 MB / 0.9981 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.01923/1.126, allocations: 2.841 MB / 1.279 GB, free: 3.828 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.366e-05/1.126, allocations: 56.53 kB / 1.279 GB, free: 3.762 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.425e-05/1.126, allocations: 102 kB / 1.279 GB, free: 3.66 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/1.126, allocations: 35.42 kB / 1.279 GB, free: 3.621 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.554e-05/1.126, allocations: 86.88 kB / 1.279 GB, free: 3.535 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 6.934e-05/1.126, allocations: 43.17 kB / 1.279 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002031/1.127, allocations: 65.16 kB / 1.279 GB, free: 3.48 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 7.043e-05/1.127, allocations: 323 kB / 1.28 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007396/1.127, allocations: 192.5 kB / 1.28 GB, free: 3.117 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000754/1.128, allocations: 192.2 kB / 1.28 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/1.129, allocations: 396.6 kB / 1.28 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/1.13, allocations: 0 / 1.28 GB, free: 2.965 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001596/1.131, allocations: 476.5 kB / 1.281 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/1.131, allocations: 7.156 kB / 1.281 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.131, allocations: 0 / 1.281 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/1.131, allocations: 0.5156 kB / 1.281 GB, free: 2.832 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008579/1.132, allocations: 114.4 kB / 1.281 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/1.132, allocations: 0.7031 kB / 1.281 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/1.133, allocations: 50.64 kB / 1.281 GB, free: 2.812 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.052e-05/1.133, allocations: 23.75 kB / 1.281 GB, free: 2.812 MB / 0.9981 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 (13): * Single equations (assignments): 13 * 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.0001238/1.133, allocations: 113.3 kB / 1.281 GB, free: 2.695 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.613e-05/1.133, allocations: 8.547 kB / 1.281 GB, free: 2.691 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.956e-05/1.133, allocations: 21.22 kB / 1.281 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/1.133, allocations: 5.906 kB / 1.281 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.133, allocations: 0.7031 kB / 1.281 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/1.133, allocations: 0.75 kB / 1.281 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002155/1.135, allocations: 1.043 MB / 1.282 GB, free: 1.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/1.135, allocations: 0.75 kB / 1.282 GB, free: 1.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008392/1.136, allocations: 110.2 kB / 1.282 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/1.136, allocations: 1.25 kB / 1.282 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.897e-05/1.136, allocations: 25.58 kB / 1.282 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/1.136, allocations: 5.844 kB / 1.282 GB, free: 1.965 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.136, allocations: 4.703 kB / 1.282 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002391/1.138, allocations: 0.7871 MB / 1.283 GB, free: 1.66 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001352/1.139, allocations: 125.2 kB / 1.283 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.158e-05/1.139, allocations: 6.328 kB / 1.283 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006524/1.139, allocations: 43.47 kB / 1.283 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/1.139, allocations: 25.31 kB / 1.283 GB, free: 1.547 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.805e-05/1.139, allocations: 32.33 kB / 1.283 GB, free: 1.539 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.714e-05/1.139, allocations: 78.98 kB / 1.283 GB, free: 1.465 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/1.139, allocations: 0 / 1.283 GB, free: 1.465 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0004246/1.14, allocations: 52.36 kB / 1.283 GB, free: 1.461 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_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 (11): * Single equations (assignments): 11 * 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.002637/1.143, allocations: 1.345 MB / 1.285 GB, free: 0.6211 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001532/1.144, allocations: 421.1 kB / 1.285 GB, free: 0.5312 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.144, allocations: 1.188 kB / 1.285 GB, free: 0.5312 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007542/1.145, allocations: 224.3 kB / 1.285 GB, free: 496 kB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/1.145, allocations: 11.08 kB / 1.285 GB, free: 492 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008961/1.154, allocations: 2.958 MB / 1.288 GB, free: 14.89 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/1.154, allocations: 0.6924 MB / 1.289 GB, free: 14.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0005001/1.155, allocations: 91.7 kB / 1.289 GB, free: 14.14 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002988/1.155, allocations: 62.84 kB / 1.289 GB, free: 14.12 MB / 1.014 GB Notification: Performance of SimCode: time 1.233e-06/1.155, allocations: 1.125 kB / 1.289 GB, free: 14.12 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/1.187, allocations: 4.621 MB / 1.294 GB, free: 13.59 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.162/9.348, allocations: 14.64 kB / 1.294 GB, free: 13.59 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,y,y_comp,der_y,der_y_comp,der_err,err Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,delta,der(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,time,x,y,y_comp [Calling sys.exit(0), Time elapsed: 15.66771923599299]