Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.57/2.57, allocations: 390.3 MB / 405.3 MB, free: 13.45 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 187.2 kB / 498.1 MB, free: 5.688 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.74/1.74, allocations: 223.2 MB / 0.7948 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009449/0.0009448, allocations: 104.1 kB / 0.9346 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003766, allocations: 10.97 kB / 1.084 GB, free: 221.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3061, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1947/0.5009, allocations: 150 MB / 1.369 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.5012, allocations: 79.89 kB / 1.369 GB, free: 12.03 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01254/0.5137, allocations: 4.139 MB / 1.373 GB, free: 7.879 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.673e-06/0.5137, allocations: 0 / 1.373 GB, free: 7.879 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.421e-06/0.5138, allocations: 0 / 1.373 GB, free: 7.879 MB / 0.8698 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.0004055/0.5142, allocations: 368.9 kB / 1.374 GB, free: 7.473 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.5142, allocations: 12.03 kB / 1.374 GB, free: 7.461 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003579/0.5146, allocations: 67.83 kB / 1.374 GB, free: 7.395 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001248/0.5147, allocations: 167 kB / 1.374 GB, free: 7.191 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.5147, allocations: 0 / 1.374 GB, free: 7.191 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.114e-05/0.5148, allocations: 4 kB / 1.374 GB, free: 7.188 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.515, allocations: 81.62 kB / 1.374 GB, free: 7.102 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.5151, allocations: 4 kB / 1.374 GB, free: 7.098 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.5151, allocations: 4 kB / 1.374 GB, free: 7.094 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.5151, allocations: 7.938 kB / 1.374 GB, free: 7.086 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.5154, allocations: 75.88 kB / 1.374 GB, free: 7.012 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002116/0.5156, allocations: 165.6 kB / 1.374 GB, free: 6.801 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006445/0.5163, allocations: 142.6 kB / 1.375 GB, free: 6.652 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.717e-05/0.5163, allocations: 4 kB / 1.375 GB, free: 6.648 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.5164, allocations: 34.56 kB / 1.375 GB, free: 6.605 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.5164, allocations: 4 kB / 1.375 GB, free: 6.602 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.001223/0.5176, allocations: 442.2 kB / 1.375 GB, free: 6.117 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.374e-05/0.5177, allocations: 51.41 kB / 1.375 GB, free: 6.055 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.174e-05/0.5177, allocations: 92.98 kB / 1.375 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.5178, allocations: 29.64 kB / 1.375 GB, free: 5.922 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.133e-05/0.5178, allocations: 84.12 kB / 1.375 GB, free: 5.836 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.5178, allocations: 11.81 kB / 1.375 GB, free: 5.824 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.5178, allocations: 0 / 1.375 GB, free: 5.824 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.518, allocations: 326.9 kB / 1.376 GB, free: 5.496 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.5181, allocations: 40.02 kB / 1.376 GB, free: 5.457 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.5183, allocations: 39.97 kB / 1.376 GB, free: 5.418 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.5184, allocations: 47.97 kB / 1.376 GB, free: 5.371 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.5184, allocations: 0 / 1.376 GB, free: 5.371 MB / 0.8698 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003502/0.5188, allocations: 125.5 kB / 1.376 GB, free: 5.242 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.5188, allocations: 4.938 kB / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.5188, allocations: 0 / 1.376 GB, free: 5.238 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.5189, allocations: 4 kB / 1.376 GB, free: 5.234 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.519, allocations: 23.98 kB / 1.376 GB, free: 5.211 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.519, allocations: 7.938 kB / 1.376 GB, free: 5.203 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.554e-05/0.5191, allocations: 19.92 kB / 1.376 GB, free: 5.184 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.327e-05/0.5192, allocations: 7.984 kB / 1.376 GB, free: 5.176 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.219e-05/0.5193, allocations: 113.8 kB / 1.376 GB, free: 5.055 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.467e-05/0.5193, allocations: 4 kB / 1.376 GB, free: 5.051 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004705/0.5197, allocations: 149.2 kB / 1.376 GB, free: 4.898 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.5198, allocations: 4 kB / 1.376 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.5198, allocations: 0 / 1.376 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.5198, allocations: 0 / 1.376 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.5199, allocations: 169.9 kB / 1.376 GB, free: 4.68 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.52, allocations: 4.328 kB / 1.376 GB, free: 4.676 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.5201, allocations: 27.92 kB / 1.376 GB, free: 4.648 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.5201, allocations: 4 kB / 1.376 GB, free: 4.645 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.5201, allocations: 0 / 1.376 GB, free: 4.645 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.5201, allocations: 4 kB / 1.376 GB, free: 4.641 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5202, allocations: 3.984 kB / 1.376 GB, free: 4.637 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005472/0.5207, allocations: 209 kB / 1.377 GB, free: 4.414 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.842e-05/0.5208, allocations: 89.03 kB / 1.377 GB, free: 4.309 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.5208, allocations: 0 / 1.377 GB, free: 4.309 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.521, allocations: 19.98 kB / 1.377 GB, free: 4.289 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.038e-05/0.521, allocations: 7.984 kB / 1.377 GB, free: 4.281 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.521, allocations: 0 / 1.377 GB, free: 4.281 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.595e-05/0.5211, allocations: 83.34 kB / 1.377 GB, free: 4.199 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1e-07/0.5211, allocations: 0 / 1.377 GB, free: 4.199 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002674/0.5213, allocations: 43.86 kB / 1.377 GB, free: 4.156 MB / 0.8698 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002771/0.5216, allocations: 149.3 kB / 1.377 GB, free: 4.004 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003844/0.522, allocations: 92.03 kB / 1.377 GB, free: 3.914 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.522, allocations: 0 / 1.377 GB, free: 3.914 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.5222, allocations: 55.89 kB / 1.377 GB, free: 3.859 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.5223, allocations: 8 kB / 1.377 GB, free: 3.852 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006132/0.523, allocations: 208.5 kB / 1.377 GB, free: 3.613 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002847/0.5233, allocations: 0.6809 MB / 1.378 GB, free: 2.906 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0001388/0.5234, allocations: 19.94 kB / 1.378 GB, free: 2.887 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.891e-05/0.5235, allocations: 11.44 kB / 1.378 GB, free: 2.875 MB / 0.8698 GB Notification: Performance of SimCode: time 5.71e-07/0.5235, allocations: 0 / 1.378 GB, free: 2.875 MB / 0.8698 GB Notification: Performance of Templates: time 0.003455/0.5269, allocations: 1.076 MB / 1.379 GB, free: 1.797 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches