Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.InverseXDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,fileNamePrefix="Buildings_10_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.0008802/0.0008802, allocations: 94.91 kB / 15.37 MB, free: 0.7266 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.0009584/0.0009584, allocations: 177.2 kB / 16.27 MB, free: 6.664 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.334/1.334, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.429/2.429, allocations: 437.8 MB / 0.7121 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003883/0.0003884, allocations: 16 kB / 0.873 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5642/0.5646, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.0006398/0.5653, allocations: 341.5 kB / 1.023 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001585/0.5669, allocations: 1.455 MB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.247e-05/0.5669, allocations: 0 / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.365e-05/0.5669, allocations: 0 / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.022e-05/0.5669, allocations: 3.938 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.5673, allocations: 111.7 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.08e-05/0.5674, allocations: 27.97 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.969e-05/0.5674, allocations: 4 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.388e-05/0.5675, allocations: 15.98 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.205e-05/0.5675, allocations: 31.84 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.278e-05/0.5676, allocations: 0 / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004034/0.568, allocations: 315.3 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.438e-05/0.568, allocations: 8 kB / 1.025 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.101e-05/0.568, allocations: 37.62 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.5683, allocations: 179.7 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.5683, allocations: 8 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.233e-06/0.5683, allocations: 0 / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.795e-06/0.5683, allocations: 0 / 1.026 GB, free: 13.31 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004485/0.5688, allocations: 365.7 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.5688, allocations: 8.031 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.415e-05/0.5688, allocations: 34.73 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004518/0.5693, allocations: 88.84 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.866e-05/0.5694, allocations: 160.4 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.5694, allocations: 4.375 kB / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.5694, allocations: 384 / 1.026 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.5697, allocations: 89.75 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.741e-06/0.5697, allocations: 0 / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.5697, allocations: 0 / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.5697, allocations: 3.938 kB / 1.026 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.57, allocations: 75.94 kB / 1.026 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.5702, allocations: 177.5 kB / 1.027 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005732/0.5708, allocations: 138.6 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001674/0.571, allocations: 52.92 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004513/0.5714, allocations: 173 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.5715, allocations: 42.5 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.5715, allocations: 3.938 kB / 1.027 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.001112/0.5726, allocations: 430.2 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.589e-05/0.5726, allocations: 51.41 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.909e-05/0.5727, allocations: 97.86 kB / 1.028 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.5727, allocations: 25.7 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/0.5727, allocations: 84.14 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.643e-05/0.5728, allocations: 19.7 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-05/0.5728, allocations: 13.72 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.393e-05/0.5729, allocations: 314.8 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.5731, allocations: 40.09 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.5732, allocations: 43.95 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/0.5735, allocations: 96.98 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.5735, allocations: 0 / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003655/0.5739, allocations: 129.5 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.5739, allocations: 4 kB / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.5739, allocations: 0 / 1.028 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.574, allocations: 7.938 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.5741, allocations: 31.91 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.5741, allocations: 4 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.5742, allocations: 11.98 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.5743, allocations: 4 kB / 1.028 GB, free: 10.25 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 (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 7.133e-05/0.5743, allocations: 114.4 kB / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.5743, allocations: 11.92 kB / 1.028 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004431/0.5748, allocations: 145.1 kB / 1.029 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.5748, allocations: 0 / 1.029 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.5748, allocations: 0 / 1.029 GB, free: 9.969 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.5748, allocations: 4.312 kB / 1.029 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.5749, allocations: 165.7 kB / 1.029 GB, free: 9.754 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.575, allocations: 3.938 kB / 1.029 GB, free: 9.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.5751, allocations: 23.97 kB / 1.029 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.5751, allocations: 8 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.5751, allocations: 3.984 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.5751, allocations: 0 / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.5752, allocations: 0 / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005654/0.5757, allocations: 213 kB / 1.029 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.5758, allocations: 89.12 kB / 1.029 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.5758, allocations: 4 kB / 1.029 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.5759, allocations: 15.98 kB / 1.029 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.447e-05/0.576, allocations: 8.062 kB / 1.029 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.576, allocations: 7.984 kB / 1.029 GB, free: 9.348 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.92e-05/0.576, allocations: 79.28 kB / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.576, allocations: 0 / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002153/0.5762, allocations: 31.94 kB / 1.029 GB, free: 9.238 MB / 0.7794 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.000868/0.5771, allocations: 0.7725 MB / 1.03 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003514/0.5775, allocations: 99.92 kB / 1.03 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5775, allocations: 4 kB / 1.03 GB, free: 8.336 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.5777, allocations: 47.97 kB / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.5778, allocations: 4.688 kB / 1.03 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001881/0.5797, allocations: 1.406 MB / 1.031 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.5799, allocations: 0.6809 MB / 1.032 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001069/0.58, allocations: 19.98 kB / 1.032 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.468e-05/0.5801, allocations: 11.44 kB / 1.032 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.5801, allocations: 0 / 1.032 GB, free: 6.059 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1363/0.7164, allocations: 1.846 MB / 1.034 GB, free: 4.383 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000197/0.7166, allocations: 221.2 kB / 1.034 GB, free: 4.125 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/2.49, allocations: 2.75 kB / 1.034 GB, free: 4.125 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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