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.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: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002013/0.002013, allocations: 197.9 kB / 16.14 MB, free: 6.711 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.404/1.404, allocations: 222.9 MB / 239.8 MB, free: 4.629 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.781/2.781, allocations: 437 MB / 0.7099 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 67.91 kB / 0.8685 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6837/0.6849, allocations: 151.6 MB / 1.017 GB, free: 2.977 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001995/0.687, allocations: 0.6799 MB / 1.017 GB, free: 2.293 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00197/0.689, allocations: 1.454 MB / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.499e-05/0.689, allocations: 0 / 1.019 GB, free: 0.8203 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.568e-05/0.689, allocations: 4 kB / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.963e-05/0.6891, allocations: 0 / 1.019 GB, free: 0.8164 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004061/0.6895, allocations: 111.7 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.064e-05/0.6895, allocations: 31.95 kB / 1.019 GB, free: 0.6758 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.6896, allocations: 4 kB / 1.019 GB, free: 0.6719 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.867e-05/0.6896, allocations: 19.98 kB / 1.019 GB, free: 0.6523 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.695e-05/0.6897, allocations: 23.91 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.6897, allocations: 4 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004276/0.6902, allocations: 319.3 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.733e-05/0.6902, allocations: 3.984 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.228e-05/0.6902, allocations: 15.92 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.6905, allocations: 179.7 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.6906, allocations: 7.922 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.393e-06/0.6906, allocations: 0 / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.6906, allocations: 0 / 1.019 GB, free: 112 kB / 0.7637 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.0005393/0.6911, allocations: 365.6 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.6912, allocations: 8.031 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005431/0.6917, allocations: 68.84 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001061/0.6918, allocations: 160.4 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.6919, allocations: 8.359 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.6919, allocations: 8.281 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002583/0.6921, allocations: 81.94 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.6922, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.6922, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.6922, allocations: 0 / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.6925, allocations: 71.86 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001978/0.6927, allocations: 161.6 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006126/0.6933, allocations: 122.6 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.6935, allocations: 48.86 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004678/0.694, allocations: 153 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.764e-05/0.694, allocations: 38.5 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.694, allocations: 4 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5): time 0.001171/0.6952, allocations: 402.2 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.6952, allocations: 51.41 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.49e-05/0.6953, allocations: 97.86 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.722e-05/0.6953, allocations: 29.64 kB / 1.021 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.085e-05/0.6954, allocations: 88.12 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.953e-05/0.6954, allocations: 11.81 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.817e-05/0.6955, allocations: 21.84 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.6956, allocations: 318.8 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001633/0.6958, allocations: 31.97 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001477/0.6959, allocations: 39.97 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002983/0.6962, allocations: 76.8 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.6962, allocations: 0 / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003652/0.6966, allocations: 117.8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.6966, allocations: 8 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.6966, allocations: 4 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.065e-05/0.6966, allocations: 0 / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.6968, allocations: 27.91 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.6968, allocations: 0 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.579e-05/0.6969, allocations: 11.98 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.6969, allocations: 4 kB / 1.022 GB, free: 13.24 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.687e-05/0.697, allocations: 113.8 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.916e-05/0.697, allocations: 11.84 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004539/0.6975, allocations: 129.2 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.6975, allocations: 4 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.6975, allocations: 0 / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.6975, allocations: 3.938 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.6977, allocations: 173.6 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.6977, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.6978, allocations: 28.23 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.6979, allocations: 0 / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.6979, allocations: 0 / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.6979, allocations: 0 / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.6979, allocations: 4 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005541/0.6984, allocations: 185 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.538e-05/0.6985, allocations: 93 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.6986, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.6987, allocations: 15.97 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.6987, allocations: 8.062 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.6988, allocations: 7.938 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.76e-05/0.6988, allocations: 79.28 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6988, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002316/0.699, allocations: 35.92 kB / 1.023 GB, free: 12.26 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.0002944/0.6993, allocations: 135.2 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003677/0.6997, allocations: 88.14 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6997, allocations: 3.938 kB / 1.023 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001636/0.6999, allocations: 47.91 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001608/0.7001, allocations: 15.59 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006458/0.7007, allocations: 191.4 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.701, allocations: 0.6809 MB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001105/0.7011, allocations: 16 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.864e-05/0.7012, allocations: 15.44 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.7012, allocations: 0 / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of Templates: time 0.003379/0.7046, allocations: 1.119 MB / 1.025 GB, free: 9.902 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (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 & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches