Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.424/2.424, allocations: 390.4 MB / 405.3 MB, free: 13.44 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.001256/0.001256, allocations: 184.8 kB / 498.1 MB, free: 5.68 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.546/1.546, allocations: 223.2 MB / 0.7949 GB, free: 17.86 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.0008753/0.000875, allocations: 98.89 kB / 0.9346 GB, free: 6.133 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004643/0.0004644, allocations: 10.5 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3036, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1892/0.4929, allocations: 150.8 MB / 1.37 GB, free: 11.25 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.4932, allocations: 87.94 kB / 1.37 GB, free: 11.17 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01681/0.51, allocations: 5.532 MB / 1.376 GB, free: 5.625 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.904e-06/0.5101, allocations: 0 / 1.376 GB, free: 5.625 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.004e-05/0.5101, allocations: 3.938 kB / 1.376 GB, free: 5.621 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005765/0.5107, allocations: 403 kB / 1.376 GB, free: 5.18 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.5108, allocations: 12.03 kB / 1.376 GB, free: 5.168 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003978/0.5112, allocations: 63.84 kB / 1.376 GB, free: 5.105 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.5113, allocations: 178.9 kB / 1.376 GB, free: 4.891 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.662e-05/0.5114, allocations: 7.938 kB / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.5114, allocations: 8 kB / 1.376 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.5118, allocations: 117.6 kB / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.515e-05/0.5118, allocations: 0 / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.5119, allocations: 4 kB / 1.376 GB, free: 4.75 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.5119, allocations: 4 kB / 1.376 GB, free: 4.746 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004766/0.5123, allocations: 127.8 kB / 1.376 GB, free: 4.621 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006855/0.513, allocations: 340.7 kB / 1.377 GB, free: 4.238 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/0.5137, allocations: 182.4 kB / 1.377 GB, free: 4.051 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.5138, allocations: 4.141 kB / 1.377 GB, free: 4.047 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/0.5138, allocations: 38.56 kB / 1.377 GB, free: 4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=7): time 1.562e-06/0.5138, allocations: 4 kB / 1.377 GB, free: 3.996 MB / 0.8698 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.01957/0.5334, allocations: 3.182 MB / 1.38 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.717e-05/0.5336, allocations: 55.41 kB / 1.38 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.5337, allocations: 93 kB / 1.38 GB, free: 0.5547 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.347e-05/0.5338, allocations: 25.7 kB / 1.38 GB, free: 0.5234 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.502e-05/0.5339, allocations: 96.03 kB / 1.38 GB, free: 436 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.508e-05/0.534, allocations: 35.41 kB / 1.38 GB, free: 400 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.133e-05/0.534, allocations: 4 kB / 1.38 GB, free: 396 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001841/0.5342, allocations: 314.8 kB / 1.381 GB, free: 72 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007129/0.535, allocations: 219.8 kB / 1.381 GB, free: 15.86 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006555/0.5356, allocations: 219.7 kB / 1.381 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006828/0.5363, allocations: 219.8 kB / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.5363, allocations: 0 / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001577/0.5379, allocations: 0.5207 MB / 1.382 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.289e-05/0.538, allocations: 7.953 kB / 1.382 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.538, allocations: 0 / 1.382 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.207e-05/0.538, allocations: 4 kB / 1.382 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008698/0.5389, allocations: 119.8 kB / 1.382 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.5389, allocations: 8.062 kB / 1.382 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006435/0.5396, allocations: 59.94 kB / 1.382 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.19e-05/0.5396, allocations: 23.94 kB / 1.382 GB, free: 14.68 MB / 0.8855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002011/0.5399, allocations: 117.9 kB / 1.382 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.529e-05/0.5399, allocations: 11.92 kB / 1.382 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.661e-05/0.54, allocations: 15.92 kB / 1.382 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.54, allocations: 0 / 1.382 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.54, allocations: 0 / 1.382 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.5401, allocations: 0 / 1.382 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.5424, allocations: 1.109 MB / 1.383 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.5424, allocations: 0 / 1.383 GB, free: 13.31 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008858/0.5433, allocations: 123.8 kB / 1.383 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.5433, allocations: 0 / 1.383 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.058e-05/0.5434, allocations: 19.94 kB / 1.383 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.5434, allocations: 4 kB / 1.383 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5434, allocations: 0 / 1.383 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002298/0.5457, allocations: 0.8737 MB / 1.384 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001717/0.5459, allocations: 109.2 kB / 1.384 GB, free: 12.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.5459, allocations: 7.938 kB / 1.384 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007064/0.5467, allocations: 60 kB / 1.384 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.942e-05/0.5468, allocations: 31.91 kB / 1.385 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.149e-05/0.5468, allocations: 23.92 kB / 1.385 GB, free: 12.03 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.995e-05/0.5469, allocations: 83.28 kB / 1.385 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.11e-07/0.5469, allocations: 4 kB / 1.385 GB, free: 11.94 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004155/0.5473, allocations: 52 kB / 1.385 GB, free: 11.89 MB / 0.8855 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 (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.000283/0.5476, allocations: 127 kB / 1.385 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001399/0.549, allocations: 479.4 kB / 1.385 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.549, allocations: 0 / 1.385 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007174/0.5498, allocations: 247.7 kB / 1.385 GB, free: 11.05 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.55, allocations: 5.891 kB / 1.385 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004405/0.5544, allocations: 0.8577 MB / 1.386 GB, free: 10.15 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.5547, allocations: 0.7004 MB / 1.387 GB, free: 9.426 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006754/0.5554, allocations: 88.67 kB / 1.387 GB, free: 9.34 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002703/0.5557, allocations: 59.3 kB / 1.387 GB, free: 9.281 MB / 0.8855 GB Notification: Performance of SimCode: time 6.92e-07/0.5557, allocations: 4 kB / 1.387 GB, free: 9.277 MB / 0.8855 GB Notification: Performance of Templates: time 0.006511/0.5622, allocations: 3.246 MB / 1.39 GB, free: 6.027 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches