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) 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.1.0-maint.11.x/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001757/0.001758, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001902/0.001902, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.424/1.424, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.706/2.706, allocations: 469.8 MB / 0.7424 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 76.27 kB / 0.9087 GB, free: 34.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2561, allocations: 159.2 MB / 1.064 GB, free: 14.13 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001852/0.258, allocations: 0.7833 MB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001661/0.2596, allocations: 1.479 MB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.995e-05/0.2597, allocations: 4 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.2597, allocations: 3.938 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.305e-05/0.2597, allocations: 3.938 kB / 1.066 GB, free: 11.83 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.2602, allocations: 143.4 kB / 1.066 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.379e-05/0.2603, allocations: 51.91 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.909e-05/0.2603, allocations: 11.92 kB / 1.067 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.908e-05/0.2604, allocations: 23.92 kB / 1.067 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.64e-05/0.2604, allocations: 31.89 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.2605, allocations: 4 kB / 1.067 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004219/0.2609, allocations: 319.4 kB / 1.067 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.214e-05/0.2609, allocations: 19.91 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.199e-05/0.261, allocations: 27.86 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.2613, allocations: 203.9 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.2613, allocations: 0 / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.2613, allocations: 4 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.2613, allocations: 0 / 1.067 GB, free: 11.01 MB / 0.8262 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.0005901/0.2619, allocations: 395.4 kB / 1.067 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.2619, allocations: 12.03 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.245e-05/0.262, allocations: 38.73 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000409/0.2624, allocations: 68.77 kB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.2625, allocations: 184.2 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.246e-05/0.2626, allocations: 8.312 kB / 1.068 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.2626, allocations: 8.375 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.2629, allocations: 106.5 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.2629, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.263, allocations: 8 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.263, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004583/0.2634, allocations: 99.89 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005159/0.264, allocations: 332.6 kB / 1.068 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006136/0.2646, allocations: 154.4 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002256/0.2648, allocations: 56.81 kB / 1.069 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 9.728e-06/0.2648, allocations: 0 / 1.069 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.2649, allocations: 42.48 kB / 1.069 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 9.22e-07/0.2649, allocations: 0 / 1.069 GB, free: 9.352 MB / 0.8262 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.01712/0.282, allocations: 2.843 MB / 1.071 GB, free: 6.414 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.959e-05/0.2821, allocations: 55.34 kB / 1.071 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.381e-05/0.2821, allocations: 101.8 kB / 1.071 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.488e-05/0.2822, allocations: 25.7 kB / 1.072 GB, free: 6.207 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.696e-05/0.2822, allocations: 100.1 kB / 1.072 GB, free: 6.105 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.809e-05/0.2823, allocations: 39.36 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000163/0.2825, allocations: 69.58 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001131/0.2826, allocations: 310.8 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006472/0.2833, allocations: 195.8 kB / 1.072 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006387/0.2839, allocations: 196.9 kB / 1.072 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.2852, allocations: 389.4 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.2852, allocations: 0 / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001523/0.2868, allocations: 482.2 kB / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2868, allocations: 8 kB / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.2868, allocations: 0 / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.2868, allocations: 0 / 1.073 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007729/0.2876, allocations: 107.7 kB / 1.073 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.2876, allocations: 0 / 1.073 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/0.2882, allocations: 43.94 kB / 1.073 GB, free: 4.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.941e-05/0.2882, allocations: 23.94 kB / 1.073 GB, free: 4.258 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.000147/0.2884, allocations: 125.8 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.2885, allocations: 7.906 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.237e-05/0.2885, allocations: 7.969 kB / 1.074 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.453e-06/0.2885, allocations: 7.938 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2885, allocations: 0 / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.2885, allocations: 4 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.2907, allocations: 1.043 MB / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.2907, allocations: 0 / 1.075 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007674/0.2915, allocations: 119.7 kB / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2915, allocations: 0 / 1.075 GB, free: 2.828 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.703e-05/0.2915, allocations: 19.94 kB / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2916, allocations: 0 / 1.075 GB, free: 2.809 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2916, allocations: 4 kB / 1.075 GB, free: 2.805 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.2938, allocations: 0.7917 MB / 1.075 GB, free: 1.996 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.294, allocations: 120.9 kB / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.272e-05/0.2941, allocations: 96 / 1.076 GB, free: 1.859 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006433/0.2947, allocations: 51.94 kB / 1.076 GB, free: 1.809 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.139e-05/0.2948, allocations: 27.92 kB / 1.076 GB, free: 1.781 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.376e-05/0.2949, allocations: 27.92 kB / 1.076 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.282e-05/0.2949, allocations: 83.22 kB / 1.076 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2949, allocations: 0 / 1.076 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003393/0.2953, allocations: 56 kB / 1.076 GB, free: 1.617 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.002633/0.2979, allocations: 1.337 MB / 1.077 GB, free: 260 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001447/0.2994, allocations: 432.4 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2994, allocations: 0 / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007182/0.3001, allocations: 224.1 kB / 1.078 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.3004, allocations: 14.11 kB / 1.078 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008279/0.3087, allocations: 2.938 MB / 1.081 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.309, allocations: 0.6931 MB / 1.081 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0006084/0.3096, allocations: 88.66 kB / 1.081 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002542/0.3099, allocations: 67.3 kB / 1.081 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3099, allocations: 4 kB / 1.081 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.191/1.501, allocations: 4.536 MB / 1.086 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.859/11.36, allocations: 4.562 kB / 1.086 GB, free: 7.281 MB / 0.8419 GB (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) 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/OpenModelicaLibraryTesting/files/Buildings_11_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