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.009106/0.009106, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.00216/0.00216, allocations: 196.1 kB / 16.68 MB, free: 6.352 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.273 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.802/2.802, allocations: 469.8 MB / 0.7425 GB, free: 7.285 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001894, allocations: 71.89 kB / 1.065 GB, free: 13.49 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3229, allocations: 159.1 MB / 1.22 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002211/0.3251, allocations: 0.7892 MB / 1.221 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002085/0.3272, allocations: 1.47 MB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.257e-05/0.3273, allocations: 0 / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.296e-05/0.3274, allocations: 3.938 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.452e-05/0.3274, allocations: 3.938 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006241/0.3281, allocations: 147.4 kB / 1.223 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.3282, allocations: 47.89 kB / 1.223 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.313e-05/0.3282, allocations: 7.984 kB / 1.223 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.3284, allocations: 27.86 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.125e-05/0.3284, allocations: 31.91 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.518e-05/0.3285, allocations: 4 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005237/0.329, allocations: 323.3 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.358e-05/0.329, allocations: 15.92 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.366e-05/0.3291, allocations: 31.84 kB / 1.223 GB, free: 11.33 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.3294, allocations: 203.4 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 8.355e-06/0.3295, allocations: 4 kB / 1.223 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.513e-06/0.3295, allocations: 3.938 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3295, allocations: 0 / 1.223 GB, free: 11.12 MB / 0.9825 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.000782/0.3303, allocations: 406.9 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.3303, allocations: 8.031 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.658e-05/0.3304, allocations: 42.73 kB / 1.224 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004655/0.3309, allocations: 64.86 kB / 1.224 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.331, allocations: 180.2 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.29e-05/0.3311, allocations: 8.375 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.3311, allocations: 8.375 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004092/0.3315, allocations: 109.7 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.3316, allocations: 0 / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.3316, allocations: 8 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-06/0.3316, allocations: 0 / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004942/0.3321, allocations: 103.9 kB / 1.224 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005956/0.3327, allocations: 336.6 kB / 1.224 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006587/0.3334, allocations: 150.4 kB / 1.225 GB, free: 9.57 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.3336, allocations: 60.81 kB / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.3337, allocations: 0 / 1.225 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.3337, allocations: 38.55 kB / 1.225 GB, free: 9.461 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.3337, allocations: 0 / 1.225 GB, free: 9.461 MB / 0.9825 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.01782/0.3515, allocations: 2.842 MB / 1.227 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.101e-05/0.3516, allocations: 55.34 kB / 1.228 GB, free: 6.457 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.944e-05/0.3517, allocations: 101.9 kB / 1.228 GB, free: 6.348 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.474e-05/0.3518, allocations: 25.7 kB / 1.228 GB, free: 6.316 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.658e-05/0.3518, allocations: 92.08 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 6.794e-05/0.3519, allocations: 43.61 kB / 1.228 GB, free: 6.18 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001681/0.3521, allocations: 69.58 kB / 1.228 GB, free: 6.105 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3522, allocations: 322.8 kB / 1.228 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006854/0.3529, allocations: 187.9 kB / 1.228 GB, free: 5.598 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006678/0.3536, allocations: 191.7 kB / 1.229 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.355, allocations: 399.9 kB / 1.229 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.61e-07/0.355, allocations: 0 / 1.229 GB, free: 5.02 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00163/0.3566, allocations: 485.2 kB / 1.229 GB, free: 4.539 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3567, allocations: 4 kB / 1.229 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.3567, allocations: 0 / 1.229 GB, free: 4.535 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.3567, allocations: 4 kB / 1.229 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008114/0.3575, allocations: 111.7 kB / 1.229 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3575, allocations: 0 / 1.229 GB, free: 4.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.3581, allocations: 43.94 kB / 1.23 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/0.3582, allocations: 27.94 kB / 1.23 GB, free: 4.352 MB / 0.9825 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.0001568/0.3584, allocations: 122.3 kB / 1.23 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.441e-05/0.3584, allocations: 3.953 kB / 1.23 GB, free: 4.219 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.353e-05/0.3585, allocations: 15.97 kB / 1.23 GB, free: 4.195 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3585, allocations: 3.938 kB / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3585, allocations: 0 / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.3585, allocations: 0 / 1.23 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002297/0.3608, allocations: 1.043 MB / 1.231 GB, free: 3.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.3609, allocations: 4 kB / 1.231 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007977/0.3617, allocations: 115.8 kB / 1.231 GB, free: 2.926 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3617, allocations: 0 / 1.231 GB, free: 2.926 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.618e-05/0.3617, allocations: 23.94 kB / 1.231 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3617, allocations: 320 / 1.231 GB, free: 2.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.3618, allocations: 7.984 kB / 1.231 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.3641, allocations: 0.784 MB / 1.232 GB, free: 2.094 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.3643, allocations: 125 kB / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/0.3644, allocations: 0 / 1.232 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006595/0.365, allocations: 51.92 kB / 1.232 GB, free: 1.902 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3652, allocations: 23.94 kB / 1.232 GB, free: 1.879 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.726e-05/0.3652, allocations: 27.92 kB / 1.232 GB, free: 1.852 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.758e-05/0.3653, allocations: 83.22 kB / 1.232 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.3653, allocations: 0 / 1.232 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003637/0.3657, allocations: 52 kB / 1.232 GB, free: 1.719 MB / 0.9825 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.002771/0.3684, allocations: 1.349 MB / 1.233 GB, free: 352 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00148/0.3699, allocations: 427.5 kB / 1.234 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.3699, allocations: 0 / 1.234 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007361/0.3707, allocations: 227.7 kB / 1.234 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.371, allocations: 17.62 kB / 1.234 GB, free: 15.69 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008652/0.3797, allocations: 2.951 MB / 1.237 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.38, allocations: 0.6924 MB / 1.237 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005129/0.3805, allocations: 92.66 kB / 1.238 GB, free: 11.86 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.3808, allocations: 63.3 kB / 1.238 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.3808, allocations: 0 / 1.238 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.003/1.384, allocations: 4.573 MB / 1.242 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.99/15.38, allocations: 6.594 kB / 1.242 GB, free: 7.344 MB / 0.9981 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[388]=-1.113000 " 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