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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.006982/0.006982, allocations: 99.38 kB / 15.73 MB, free: 6.008 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.001588/0.001588, allocations: 196 kB / 16.68 MB, free: 5.93 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.608/2.608, allocations: 437 MB / 0.7105 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 71.89 kB / 1.018 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2687, allocations: 151.6 MB / 1.166 GB, free: 7.207 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.00212/0.2709, allocations: 0.7755 MB / 1.167 GB, free: 6.43 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001867/0.2727, allocations: 1.481 MB / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.546e-05/0.2728, allocations: 0 / 1.168 GB, free: 4.93 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.802e-05/0.2729, allocations: 3.938 kB / 1.168 GB, free: 4.926 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.842e-05/0.2729, allocations: 0 / 1.168 GB, free: 4.926 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.2735, allocations: 147.4 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.2736, allocations: 47.91 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.888e-05/0.2736, allocations: 7.984 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.783e-05/0.2737, allocations: 23.92 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.049e-05/0.2738, allocations: 39.83 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.2738, allocations: 4 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004858/0.2743, allocations: 319.4 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.2743, allocations: 7.984 kB / 1.169 GB, free: 4.34 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.072e-05/0.2744, allocations: 31.84 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.2747, allocations: 218.3 kB / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2747, allocations: 0 / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.703e-06/0.2748, allocations: 0 / 1.169 GB, free: 4.098 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.2748, allocations: 0 / 1.169 GB, free: 4.098 MB / 0.92 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.0006129/0.2754, allocations: 400.2 kB / 1.17 GB, free: 3.66 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.2754, allocations: 8.031 kB / 1.17 GB, free: 3.652 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.454e-05/0.2755, allocations: 42.69 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004551/0.2759, allocations: 72.75 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001021/0.2761, allocations: 164.4 kB / 1.17 GB, free: 3.332 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.713e-05/0.2761, allocations: 8.375 kB / 1.17 GB, free: 3.324 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.674e-05/0.2761, allocations: 8.375 kB / 1.17 GB, free: 3.316 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003558/0.2765, allocations: 109.7 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.2765, allocations: 4 kB / 1.17 GB, free: 3.199 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.465e-05/0.2765, allocations: 4 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.2765, allocations: 4 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004934/0.277, allocations: 107.8 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005442/0.2776, allocations: 340.5 kB / 1.17 GB, free: 2.703 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.2782, allocations: 158.4 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.2785, allocations: 56.81 kB / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.088e-05/0.2785, allocations: 0 / 1.171 GB, free: 2.48 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.2786, allocations: 30.56 kB / 1.171 GB, free: 2.441 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.2786, allocations: 4 kB / 1.171 GB, free: 2.438 MB / 0.92 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.01866/0.2972, allocations: 2.83 MB / 1.173 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.878e-05/0.2973, allocations: 55.34 kB / 1.174 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.063e-05/0.2974, allocations: 105.8 kB / 1.174 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.291e-05/0.2974, allocations: 25.7 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 4.14e-05/0.2975, allocations: 88.05 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.494e-05/0.2975, allocations: 35.45 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.2977, allocations: 73.58 kB / 1.174 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.601e-05/0.2978, allocations: 330.7 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.2985, allocations: 187.8 kB / 1.174 GB, free: 14.58 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006402/0.2991, allocations: 187.3 kB / 1.174 GB, free: 14.4 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/0.3005, allocations: 400.5 kB / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3005, allocations: 0 / 1.175 GB, free: 14.01 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001525/0.302, allocations: 473.3 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.302, allocations: 4 kB / 1.175 GB, free: 13.54 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3021, allocations: 4 kB / 1.175 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3021, allocations: 96 / 1.175 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000843/0.3029, allocations: 119.6 kB / 1.175 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.3029, allocations: 0 / 1.175 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006064/0.3036, allocations: 43.94 kB / 1.175 GB, free: 13.37 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-05/0.3036, allocations: 27.94 kB / 1.176 GB, free: 13.34 MB / 0.9356 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.0001335/0.3038, allocations: 113.8 kB / 1.176 GB, free: 13.22 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.336e-05/0.3039, allocations: 11.91 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.48e-05/0.3039, allocations: 11.95 kB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/0.3039, allocations: 3.938 kB / 1.176 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3039, allocations: 192 / 1.176 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3039, allocations: 0 / 1.176 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.3061, allocations: 1.055 MB / 1.177 GB, free: 12.03 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3061, allocations: 4 kB / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008431/0.307, allocations: 107.7 kB / 1.177 GB, free: 11.92 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.307, allocations: 3.984 kB / 1.177 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-05/0.307, allocations: 23.94 kB / 1.177 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.307, allocations: 4 kB / 1.177 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3071, allocations: 0 / 1.177 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002286/0.3093, allocations: 0.7957 MB / 1.178 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001432/0.3095, allocations: 124.9 kB / 1.178 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.533e-05/0.3096, allocations: 0 / 1.178 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006964/0.3103, allocations: 47.94 kB / 1.178 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.892e-05/0.3104, allocations: 31.98 kB / 1.178 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.766e-05/0.3104, allocations: 19.94 kB / 1.178 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.673e-05/0.3105, allocations: 83.27 kB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3105, allocations: 0 / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00038/0.3109, allocations: 52 kB / 1.178 GB, free: 10.7 MB / 0.9356 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.002629/0.3135, allocations: 1.348 MB / 1.179 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.315, allocations: 419.6 kB / 1.18 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.315, allocations: 0 / 1.18 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0007205/0.3157, allocations: 223.7 kB / 1.18 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.3161, allocations: 11.98 kB / 1.18 GB, free: 8.688 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00835/0.3244, allocations: 2.943 MB / 1.183 GB, free: 5.668 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.3247, allocations: 0.6963 MB / 1.183 GB, free: 4.945 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0004909/0.3252, allocations: 88.66 kB / 1.184 GB, free: 4.859 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002643/0.3255, allocations: 63.3 kB / 1.184 GB, free: 4.797 MB / 0.9356 GB Notification: Performance of SimCode: time 1.723e-06/0.3255, allocations: 3.938 kB / 1.184 GB, free: 4.793 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/0.3476, allocations: 4.579 MB / 1.188 GB, free: 356 kB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.077/8.425, allocations: 16.2 kB / 1.188 GB, free: 344 kB / 0.9356 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