Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",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.005601/0.005601, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001315/0.001315, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.594/2.594, allocations: 461.9 MB / 0.7348 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 63.91 kB / 1.054 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.014/1.015, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001922/1.017, allocations: 0.6025 MB / 1.208 GB, free: 12.97 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001811/1.019, allocations: 1.452 MB / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.729e-05/1.019, allocations: 0 / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 1.359e-05/1.019, allocations: 0 / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.481e-05/1.019, allocations: 0 / 1.209 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005062/1.02, allocations: 147.4 kB / 1.209 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 6.853e-05/1.02, allocations: 31.86 kB / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.167e-05/1.02, allocations: 0 / 1.209 GB, free: 11.32 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 4.685e-05/1.02, allocations: 15.98 kB / 1.21 GB, free: 11.31 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 9.102e-05/1.02, allocations: 35.88 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.351e-05/1.02, allocations: 0 / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004271/1.02, allocations: 311.4 kB / 1.21 GB, free: 10.97 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.073e-05/1.02, allocations: 11.97 kB / 1.21 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 3.631e-05/1.02, allocations: 19.92 kB / 1.21 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002833/1.021, allocations: 187.6 kB / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/1.021, allocations: 0 / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.565e-06/1.021, allocations: 0 / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.242e-06/1.021, allocations: 0 / 1.21 GB, free: 10.75 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005311/1.021, allocations: 361.8 kB / 1.21 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.021, allocations: 12.03 kB / 1.21 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.787e-05/1.021, allocations: 30.75 kB / 1.21 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004648/1.022, allocations: 72.69 kB / 1.21 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/1.022, allocations: 164.4 kB / 1.211 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/1.022, allocations: 4.375 kB / 1.211 GB, free: 10.03 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.804e-05/1.022, allocations: 8.375 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/1.022, allocations: 77.69 kB / 1.211 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/1.022, allocations: 0 / 1.211 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/1.022, allocations: 4 kB / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/1.022, allocations: 0 / 1.211 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002844/1.023, allocations: 59.94 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002027/1.023, allocations: 177.5 kB / 1.211 GB, free: 9.656 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005851/1.023, allocations: 126.6 kB / 1.211 GB, free: 9.523 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/1.024, allocations: 40.86 kB / 1.211 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004611/1.024, allocations: 161 kB / 1.211 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/1.024, allocations: 34.5 kB / 1.211 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/1.024, allocations: 0 / 1.211 GB, free: 9.262 MB / 0.9356 GB Notification: Performance of matching and sorting (n=5): time 0.001184/1.025, allocations: 402.2 kB / 1.212 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/1.025, allocations: 51.41 kB / 1.212 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.987e-05/1.025, allocations: 101.9 kB / 1.212 GB, free: 8.645 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/1.025, allocations: 25.7 kB / 1.212 GB, free: 8.613 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 3.339e-05/1.025, allocations: 80.14 kB / 1.212 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/1.026, allocations: 19.8 kB / 1.212 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/1.026, allocations: 17.72 kB / 1.212 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001156/1.026, allocations: 314.8 kB / 1.212 GB, free: 8.172 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/1.026, allocations: 40.08 kB / 1.212 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/1.026, allocations: 31.97 kB / 1.212 GB, free: 8.102 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/1.026, allocations: 76.8 kB / 1.212 GB, free: 8.023 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/1.026, allocations: 3.938 kB / 1.212 GB, free: 8.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003577/1.027, allocations: 121.5 kB / 1.213 GB, free: 7.895 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/1.027, allocations: 4 kB / 1.213 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/1.027, allocations: 0 / 1.213 GB, free: 7.891 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/1.027, allocations: 4 kB / 1.213 GB, free: 7.887 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/1.027, allocations: 23.98 kB / 1.213 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/1.027, allocations: 0 / 1.213 GB, free: 7.863 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/1.027, allocations: 11.98 kB / 1.213 GB, free: 7.852 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/1.027, allocations: 11.86 kB / 1.213 GB, free: 7.84 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 (6): * Single equations (assignments): 6 * 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 8.827e-05/1.027, allocations: 113.8 kB / 1.213 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/1.027, allocations: 3.938 kB / 1.213 GB, free: 7.715 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004499/1.028, allocations: 137.1 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/1.028, allocations: 0.6406 kB / 1.213 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/1.028, allocations: 4 kB / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/1.028, allocations: 0 / 1.213 GB, free: 7.57 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/1.028, allocations: 177.6 kB / 1.213 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/1.028, allocations: 3.938 kB / 1.213 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001553/1.028, allocations: 23.98 kB / 1.213 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/1.028, allocations: 0 / 1.213 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/1.028, allocations: 7.984 kB / 1.213 GB, free: 7.312 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/1.028, allocations: 0 / 1.213 GB, free: 7.312 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/1.028, allocations: 0 / 1.213 GB, free: 7.312 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005543/1.029, allocations: 188.9 kB / 1.213 GB, free: 7.109 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.498e-05/1.029, allocations: 93.03 kB / 1.213 GB, free: 7 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/1.029, allocations: 4.031 kB / 1.213 GB, free: 6.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/1.029, allocations: 11.98 kB / 1.213 GB, free: 6.984 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.321e-05/1.029, allocations: 3.984 kB / 1.213 GB, free: 6.98 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/1.029, allocations: 8 kB / 1.213 GB, free: 6.973 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.355e-05/1.029, allocations: 75.28 kB / 1.213 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.029, allocations: 0 / 1.213 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002343/1.029, allocations: 40.08 kB / 1.213 GB, free: 6.859 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0008864/1.03, allocations: 0.7334 MB / 1.214 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003707/1.03, allocations: 87.98 kB / 1.214 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.03, allocations: 0 / 1.214 GB, free: 6.008 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001603/1.031, allocations: 51.89 kB / 1.214 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001684/1.031, allocations: 4 kB / 1.214 GB, free: 5.953 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/1.033, allocations: 1.36 MB / 1.216 GB, free: 4.508 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/1.033, allocations: 0.6807 MB / 1.216 GB, free: 3.801 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.873e-05/1.033, allocations: 19.92 kB / 1.216 GB, free: 3.781 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.499e-05/1.033, allocations: 19.44 kB / 1.216 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/1.033, allocations: 0 / 1.216 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/1.055, allocations: 2.084 MB / 1.218 GB, free: 1.82 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.413/8.468, allocations: 6.688 kB / 1.218 GB, free: 1.816 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,y_comp,y Variables in the result:delta,der(x),der(y_comp),err,time,x,y,y_comp