Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.InverseXDerivative_2_Check,fileNamePrefix="Buildings_latest_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_latest_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.001299/0.001299, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001319/0.001319, allocations: 193.6 kB / 16.14 MB, free: 6.645 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.583/2.583, allocations: 461.9 MB / 0.7342 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 72.72 kB / 0.8985 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2498, allocations: 157.4 MB / 1.052 GB, free: 8.234 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001864/0.2517, allocations: 0.8347 MB / 1.053 GB, free: 7.395 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001628/0.2534, allocations: 1.505 MB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.135e-05/0.2534, allocations: 0 / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.234e-05/0.2535, allocations: 7.938 kB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.319e-05/0.2535, allocations: 0 / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003781/0.2539, allocations: 115.6 kB / 1.055 GB, free: 5.75 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.678e-05/0.254, allocations: 59.77 kB / 1.055 GB, free: 5.691 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.88e-05/0.254, allocations: 4 kB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.058e-05/0.2541, allocations: 23.92 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.325e-05/0.2541, allocations: 31.89 kB / 1.055 GB, free: 5.633 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.2542, allocations: 4 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004037/0.2546, allocations: 315.4 kB / 1.055 GB, free: 5.32 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.263e-05/0.2546, allocations: 19.91 kB / 1.055 GB, free: 5.301 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.392e-05/0.2546, allocations: 27.86 kB / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.2549, allocations: 199.9 kB / 1.055 GB, free: 5.078 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2549, allocations: 4 kB / 1.055 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.51e-07/0.255, allocations: 0 / 1.055 GB, free: 5.074 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.406e-06/0.255, allocations: 0 / 1.055 GB, free: 5.074 MB / 0.8106 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.0005745/0.2555, allocations: 399.4 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.2556, allocations: 15.97 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.581e-05/0.2556, allocations: 34.75 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000445/0.2561, allocations: 76.75 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.831e-05/0.2562, allocations: 180.2 kB / 1.056 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.357e-05/0.2562, allocations: 8.375 kB / 1.056 GB, free: 4.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.2562, allocations: 8.375 kB / 1.056 GB, free: 4.273 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003511/0.2566, allocations: 108.7 kB / 1.056 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2566, allocations: 3.984 kB / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.2566, allocations: 0 / 1.056 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.2566, allocations: 8 kB / 1.056 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004467/0.2571, allocations: 103.9 kB / 1.056 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005279/0.2576, allocations: 340.5 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006038/0.2582, allocations: 150.5 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002276/0.2585, allocations: 60.8 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.2585, allocations: 0 / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.2585, allocations: 38.5 kB / 1.057 GB, free: 3.402 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.2585, allocations: 0 / 1.057 GB, free: 3.402 MB / 0.8106 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.0185/0.277, allocations: 2.831 MB / 1.06 GB, free: 488 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.2771, allocations: 55.34 kB / 1.06 GB, free: 420 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.398e-05/0.2772, allocations: 97.84 kB / 1.06 GB, free: 312 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.2772, allocations: 29.7 kB / 1.06 GB, free: 276 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.882e-05/0.2773, allocations: 88.08 kB / 1.06 GB, free: 184 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.016e-05/0.2774, allocations: 47.44 kB / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.2775, allocations: 65.58 kB / 1.06 GB, free: 64 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.2776, allocations: 314.9 kB / 1.06 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006269/0.2783, allocations: 199.7 kB / 1.06 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006042/0.2789, allocations: 187.8 kB / 1.061 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001228/0.2801, allocations: 396.6 kB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.91e-07/0.2801, allocations: 0 / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001451/0.2816, allocations: 483.1 kB / 1.061 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.2816, allocations: 8 kB / 1.061 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.2816, allocations: 0 / 1.061 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.2817, allocations: 0 / 1.061 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008195/0.2825, allocations: 111.7 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.2825, allocations: 4 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006155/0.2831, allocations: 39.94 kB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.125e-05/0.2832, allocations: 27.92 kB / 1.062 GB, free: 14.31 MB / 0.8262 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.0001449/0.2833, allocations: 117.8 kB / 1.062 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.306e-05/0.2834, allocations: 7.906 kB / 1.062 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.82e-05/0.2835, allocations: 11.97 kB / 1.062 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2835, allocations: 7.938 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2835, allocations: 0 / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2835, allocations: 3.984 kB / 1.062 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.2856, allocations: 1.039 MB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2856, allocations: 4 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008274/0.2865, allocations: 103.7 kB / 1.063 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.2865, allocations: 4 kB / 1.063 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.337e-05/0.2866, allocations: 27.92 kB / 1.063 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2866, allocations: 4 kB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2866, allocations: 4 kB / 1.063 GB, free: 12.86 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/0.2888, allocations: 0.7839 MB / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.2889, allocations: 121 kB / 1.064 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.792e-05/0.289, allocations: 7.938 kB / 1.064 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006639/0.2897, allocations: 48 kB / 1.064 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.2898, allocations: 23.92 kB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.626e-05/0.2899, allocations: 27.94 kB / 1.064 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.355e-05/0.2899, allocations: 83.45 kB / 1.064 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2899, allocations: 0 / 1.064 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003568/0.2903, allocations: 59.98 kB / 1.064 GB, free: 11.68 MB / 0.8262 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.002521/0.2928, allocations: 1.341 MB / 1.065 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001342/0.2942, allocations: 428 kB / 1.066 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.2942, allocations: 0 / 1.066 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006879/0.2949, allocations: 227.6 kB / 1.066 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.2952, allocations: 11.94 kB / 1.066 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008335/0.3036, allocations: 2.954 MB / 1.069 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002408/0.3038, allocations: 0.6926 MB / 1.07 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0006693/0.3045, allocations: 88.66 kB / 1.07 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.3048, allocations: 67.3 kB / 1.07 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.3048, allocations: 4 kB / 1.07 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01368/0.3185, allocations: 4.29 MB / 1.074 GB, free: 1.598 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001739/0.3187, allocations: 228.9 kB / 1.074 GB, free: 1.344 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.188, allocations: 1.375 kB / 1.074 GB, free: 1.344 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check_fmu --startTime=-1.5 --stopTime=1.5 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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