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.0008073/0.0008073, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004383/0.004383, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.277/1.277, allocations: 223.3 MB / 240.3 MB, free: 5.348 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.437/2.437, allocations: 437.8 MB / 0.7121 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.000302, allocations: 12 kB / 0.873 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5655/0.5659, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.000941/0.5668, allocations: 0.5062 MB / 1.024 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001849/0.5687, allocations: 1.478 MB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.624e-05/0.5688, allocations: 0 / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.748e-05/0.5688, allocations: 0 / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.113e-05/0.5688, allocations: 0 / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000477/0.5693, allocations: 119.6 kB / 1.025 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 7.519e-05/0.5694, allocations: 51.84 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.488e-05/0.5694, allocations: 11.89 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.221e-05/0.5695, allocations: 27.91 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.943e-05/0.5696, allocations: 27.91 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.5696, allocations: 4 kB / 1.025 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000458/0.5701, allocations: 323.3 kB / 1.026 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.459e-05/0.5701, allocations: 15.92 kB / 1.026 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.845e-05/0.5702, allocations: 57.5 kB / 1.026 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.5705, allocations: 205.8 kB / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.5705, allocations: 0 / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.313e-06/0.5705, allocations: 0 / 1.026 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.897e-06/0.5705, allocations: 0 / 1.026 GB, free: 13.03 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.0006179/0.5712, allocations: 393 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.5712, allocations: 12.03 kB / 1.026 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.407e-05/0.5713, allocations: 38.73 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004674/0.5717, allocations: 76.86 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.5719, allocations: 180.2 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.5719, allocations: 4.375 kB / 1.027 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.5719, allocations: 12.31 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000389/0.5723, allocations: 117.5 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.5723, allocations: 4 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.5724, allocations: 4 kB / 1.027 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.5724, allocations: 4 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005295/0.5729, allocations: 123.8 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005777/0.5735, allocations: 344.7 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007115/0.5742, allocations: 186.4 kB / 1.027 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.5745, allocations: 68.81 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.628e-05/0.5745, allocations: 3.984 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.5745, allocations: 30.56 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.5746, allocations: 8 kB / 1.027 GB, free: 11.28 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.01946/0.594, allocations: 3.177 MB / 1.031 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.5941, allocations: 59.41 kB / 1.031 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.845e-05/0.5942, allocations: 101.8 kB / 1.031 GB, free: 7.828 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.47e-05/0.5942, allocations: 25.7 kB / 1.031 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.5943, allocations: 92.05 kB / 1.031 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.054e-05/0.5944, allocations: 39.39 kB / 1.031 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/0.5944, allocations: 21.7 kB / 1.031 GB, free: 7.637 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.5945, allocations: 310.8 kB / 1.031 GB, free: 7.324 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007236/0.5953, allocations: 219.8 kB / 1.031 GB, free: 7.109 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006908/0.596, allocations: 219.7 kB / 1.032 GB, free: 6.895 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.5974, allocations: 448.3 kB / 1.032 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.5974, allocations: 0 / 1.032 GB, free: 6.457 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001629/0.5991, allocations: 0.5207 MB / 1.033 GB, free: 5.93 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.5991, allocations: 4 kB / 1.033 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.5991, allocations: 96 / 1.033 GB, free: 5.926 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.5991, allocations: 7.875 kB / 1.033 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008514/0.6, allocations: 123.7 kB / 1.033 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.6, allocations: 0 / 1.033 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006545/0.6006, allocations: 59.94 kB / 1.033 GB, free: 5.738 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.743e-05/0.6007, allocations: 27.92 kB / 1.033 GB, free: 5.711 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.0001464/0.6009, allocations: 117.8 kB / 1.033 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.529e-05/0.6009, allocations: 0 / 1.033 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.25e-05/0.601, allocations: 12.16 kB / 1.033 GB, free: 5.57 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.601, allocations: 7.922 kB / 1.033 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.601, allocations: 0 / 1.033 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.257e-06/0.601, allocations: 3.984 kB / 1.033 GB, free: 5.559 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002309/0.6033, allocations: 1.109 MB / 1.034 GB, free: 4.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.6034, allocations: 3.938 kB / 1.034 GB, free: 4.336 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008422/0.6042, allocations: 119.8 kB / 1.034 GB, free: 4.219 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.017e-06/0.6042, allocations: 4 kB / 1.034 GB, free: 4.215 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/0.6043, allocations: 23.92 kB / 1.034 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6043, allocations: 4 kB / 1.034 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.6043, allocations: 0 / 1.034 GB, free: 4.188 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002446/0.6067, allocations: 0.87 MB / 1.035 GB, free: 3.301 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.6069, allocations: 120.9 kB / 1.035 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.307e-05/0.607, allocations: 4 kB / 1.035 GB, free: 3.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007052/0.6077, allocations: 56 kB / 1.035 GB, free: 3.105 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.6078, allocations: 31.92 kB / 1.035 GB, free: 3.074 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.487e-05/0.6078, allocations: 27.92 kB / 1.035 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.525e-05/0.6079, allocations: 75.28 kB / 1.035 GB, free: 2.973 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6079, allocations: 0 / 1.035 GB, free: 2.973 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003811/0.6083, allocations: 56 kB / 1.035 GB, free: 2.918 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.002793/0.6111, allocations: 1.426 MB / 1.037 GB, free: 1.465 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001474/0.6126, allocations: 471.6 kB / 1.037 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.6126, allocations: 0 / 1.037 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0007433/0.6133, allocations: 251.7 kB / 1.037 GB, free: 0.7578 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003262/0.6137, allocations: 10.53 kB / 1.037 GB, free: 0.75 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008773/0.6224, allocations: 3.172 MB / 1.04 GB, free: 13.49 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002376/0.6227, allocations: 0.6926 MB / 1.041 GB, free: 12.77 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0006497/0.6234, allocations: 84.67 kB / 1.041 GB, free: 12.69 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002739/0.6236, allocations: 79.22 kB / 1.041 GB, free: 12.61 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.6236, allocations: 0 / 1.041 GB, free: 12.61 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01504/0.6387, allocations: 4.241 MB / 1.045 GB, free: 8.543 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/0.6389, allocations: 217.4 kB / 1.046 GB, free: 8.289 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.332/2.971, allocations: 5.719 kB / 1.046 GB, free: 8.289 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