Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) 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.InverseXDerivative_2_Check,fileNamePrefix="Buildings_10_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_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check",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.001363/0.001363, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001482/0.001482, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.315/1.315, allocations: 222.9 MB / 239.8 MB, free: 4.629 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.48/2.48, allocations: 437 MB / 0.71 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.89 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6038/0.6052, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002188/0.6074, allocations: 0.845 MB / 1.018 GB, free: 1.918 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001616/0.609, allocations: 1.493 MB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.458e-05/0.6091, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.182e-05/0.6091, allocations: 0 / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.737e-05/0.6092, allocations: 7.938 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003778/0.6096, allocations: 119.6 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.54e-05/0.6096, allocations: 47.91 kB / 1.019 GB, free: 240 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.547e-05/0.6097, allocations: 7.984 kB / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.847e-05/0.6097, allocations: 27.91 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.588e-05/0.6098, allocations: 35.89 kB / 1.019 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.702e-05/0.6098, allocations: 4 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000404/0.6102, allocations: 315.4 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.6103, allocations: 15.92 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.711e-05/0.6103, allocations: 27.84 kB / 1.02 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002801/0.6106, allocations: 201.9 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.6106, allocations: 3.938 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.72e-07/0.6106, allocations: 0 / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.458e-06/0.6106, allocations: 0 / 1.02 GB, free: 15.61 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005856/0.6112, allocations: 407.3 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.6113, allocations: 8.031 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.149e-05/0.6113, allocations: 38.75 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004353/0.6117, allocations: 68.84 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.565e-05/0.6118, allocations: 176.2 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.6119, allocations: 384 / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.6119, allocations: 8.375 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003485/0.6123, allocations: 117.7 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.6123, allocations: 3.938 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.6123, allocations: 3.938 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.6123, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004701/0.6128, allocations: 103.9 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005127/0.6133, allocations: 336.7 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/0.6139, allocations: 158.4 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.6142, allocations: 56.81 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.6142, allocations: 0 / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.6142, allocations: 34.56 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 8.51e-07/0.6142, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 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.01821/0.6324, allocations: 2.834 MB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.6325, allocations: 55.34 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.251e-05/0.6326, allocations: 105.8 kB / 1.024 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.492e-05/0.6326, allocations: 29.7 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.054e-05/0.6327, allocations: 84.05 kB / 1.024 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.843e-05/0.6327, allocations: 47.39 kB / 1.024 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000158/0.6329, allocations: 65.58 kB / 1.024 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.819e-05/0.633, allocations: 318.8 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006206/0.6336, allocations: 191.8 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006228/0.6342, allocations: 195.5 kB / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001256/0.6355, allocations: 392.5 kB / 1.025 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.6355, allocations: 4 kB / 1.025 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001455/0.637, allocations: 477.2 kB / 1.026 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.637, allocations: 4 kB / 1.026 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.637, allocations: 0 / 1.026 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.637, allocations: 3.938 kB / 1.026 GB, free: 9.035 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008154/0.6379, allocations: 115.9 kB / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.6379, allocations: 5 kB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005991/0.6385, allocations: 43.94 kB / 1.026 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.692e-05/0.6385, allocations: 23.94 kB / 1.026 GB, free: 8.852 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 (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.0001372/0.6387, allocations: 113.8 kB / 1.026 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-05/0.6388, allocations: 15.83 kB / 1.026 GB, free: 8.715 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.327e-05/0.6388, allocations: 11.97 kB / 1.026 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.6388, allocations: 7.938 kB / 1.026 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.6389, allocations: 3.984 kB / 1.026 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.6389, allocations: 4 kB / 1.026 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002053/0.6409, allocations: 1.043 MB / 1.027 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.6409, allocations: 0 / 1.027 GB, free: 7.531 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008229/0.6418, allocations: 107.8 kB / 1.027 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.6418, allocations: 7.938 kB / 1.027 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.475e-05/0.6418, allocations: 27.92 kB / 1.027 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.6418, allocations: 0 / 1.027 GB, free: 7.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.6419, allocations: 7.875 kB / 1.027 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002215/0.6441, allocations: 0.784 MB / 1.028 GB, free: 6.582 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.6442, allocations: 117 kB / 1.028 GB, free: 6.449 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.862e-05/0.6443, allocations: 12.06 kB / 1.028 GB, free: 6.438 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006859/0.645, allocations: 39.94 kB / 1.028 GB, free: 6.398 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.795e-05/0.6451, allocations: 27.92 kB / 1.028 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.719e-05/0.6452, allocations: 31.94 kB / 1.028 GB, free: 6.34 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.251e-05/0.6452, allocations: 79.27 kB / 1.028 GB, free: 6.262 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6452, allocations: 0 / 1.028 GB, free: 6.262 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003611/0.6456, allocations: 52 kB / 1.029 GB, free: 6.211 MB / 0.7794 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.00249/0.6481, allocations: 1.352 MB / 1.03 GB, free: 4.832 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001346/0.6494, allocations: 419.5 kB / 1.03 GB, free: 4.422 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.6494, allocations: 7.938 kB / 1.03 GB, free: 4.414 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0006817/0.6501, allocations: 223.7 kB / 1.03 GB, free: 4.195 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.6505, allocations: 11 kB / 1.03 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008428/0.6589, allocations: 2.953 MB / 1.033 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.6591, allocations: 0.6965 MB / 1.034 GB, free: 448 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0006766/0.6598, allocations: 92.61 kB / 1.034 GB, free: 356 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002929/0.6601, allocations: 67.3 kB / 1.034 GB, free: 288 kB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.6601, allocations: 0 / 1.034 GB, free: 288 kB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01365/0.6738, allocations: 4.304 MB / 1.038 GB, free: 12.11 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.674, allocations: 220.4 kB / 1.039 GB, free: 11.86 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.519, allocations: 0 / 1.039 GB, free: 11.86 MB / 0.795 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.500000 File[1]=-1.500000 " 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