Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.525/1.525, allocations: 249.5 MB / 257 MB, free: 6.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 180.9 kB / 316.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.914/1.914, allocations: 205.3 MB / 0.5671 GB, free: 15.9 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000917/0.0009173, allocations: 90.47 kB / 0.6714 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.307e-05/2.308e-05, allocations: 8 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2586, allocations: 106.3 MB / 0.8852 GB, free: 12.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.908/1.167, allocations: 132.7 MB / 1.015 GB, free: 5.129 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003309/1.167, allocations: 82.31 kB / 1.015 GB, free: 5.082 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01249/1.18, allocations: 4.049 MB / 1.019 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.633e-06/1.18, allocations: 0 / 1.019 GB, free: 1.672 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.454e-06/1.18, allocations: 0 / 1.019 GB, free: 1.672 MB / 0.6355 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.0004625/1.18, allocations: 358 kB / 1.019 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/1.18, allocations: 8.031 kB / 1.019 GB, free: 1.273 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003912/1.181, allocations: 60.75 kB / 1.019 GB, free: 1.215 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/1.181, allocations: 175 kB / 1.019 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/1.181, allocations: 0 / 1.019 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/1.181, allocations: 3.875 kB / 1.019 GB, free: 1.004 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.151e-05/1.181, allocations: 23.94 kB / 1.019 GB, free: 0.9844 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000144/1.181, allocations: 49.59 kB / 1.019 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/1.181, allocations: 0 / 1.019 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/1.181, allocations: 0.9375 kB / 1.019 GB, free: 0.9297 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/1.181, allocations: 4 kB / 1.019 GB, free: 0.9258 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001922/1.181, allocations: 146 kB / 1.02 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002566/1.182, allocations: 54.17 kB / 1.02 GB, free: 0.6992 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.747e-05/1.182, allocations: 28.56 kB / 1.02 GB, free: 0.6719 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 4.548e-05/1.182, allocations: 4 kB / 1.02 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/1.182, allocations: 30.56 kB / 1.02 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/1.182, allocations: 0 / 1.02 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5): time 0.001317/1.183, allocations: 429.5 kB / 1.02 GB, free: 180 kB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/1.183, allocations: 51.41 kB / 1.02 GB, free: 116 kB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.53e-05/1.183, allocations: 92.81 kB / 1.02 GB, free: 20 kB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.686e-05/1.183, allocations: 29.7 kB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 3.51e-05/1.183, allocations: 80.14 kB / 1.02 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.988e-05/1.183, allocations: 19.77 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.975e-06/1.183, allocations: 4 kB / 1.02 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000127/1.184, allocations: 318.7 kB / 1.021 GB, free: 15.56 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.249e-05/1.184, allocations: 15.62 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.636e-05/1.184, allocations: 11.94 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002651/1.184, allocations: 63.8 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/1.184, allocations: 0 / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003275/1.184, allocations: 117.2 kB / 1.021 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/1.184, allocations: 4 kB / 1.021 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/1.184, allocations: 0 / 1.021 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/1.184, allocations: 4 kB / 1.021 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/1.184, allocations: 31.95 kB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/1.184, allocations: 0 / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/1.185, allocations: 15.98 kB / 1.021 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.769e-06/1.185, allocations: 0 / 1.021 GB, free: 15.32 MB / 0.6511 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 () * 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.551e-05/1.185, allocations: 112.9 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/1.185, allocations: 3.953 kB / 1.021 GB, free: 15.2 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004508/1.185, allocations: 137.2 kB / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/1.185, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/1.185, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/1.185, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/1.185, allocations: 146.1 kB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/1.185, allocations: 4 kB / 1.021 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/1.186, allocations: 28.23 kB / 1.021 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/1.186, allocations: 3.953 kB / 1.021 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/1.186, allocations: 7.984 kB / 1.021 GB, free: 14.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/1.186, allocations: 4 kB / 1.021 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/1.186, allocations: 0 / 1.021 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004302/1.186, allocations: 168.4 kB / 1.022 GB, free: 14.68 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 8.131e-05/1.186, allocations: 85.12 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/1.186, allocations: 3.953 kB / 1.022 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/1.186, allocations: 20.05 kB / 1.022 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/1.186, allocations: 7.984 kB / 1.022 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.156e-06/1.186, allocations: 0 / 1.022 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 3.676e-05/1.186, allocations: 83.22 kB / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.186, allocations: 0 / 1.022 GB, free: 14.47 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000246/1.187, allocations: 35.94 kB / 1.022 GB, free: 14.43 MB / 0.6511 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 () * 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.0002822/1.187, allocations: 150.9 kB / 1.022 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001282/1.187, allocations: 35.25 kB / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/1.187, allocations: 0 / 1.022 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.894e-05/1.187, allocations: 19.94 kB / 1.022 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/1.187, allocations: 3.984 kB / 1.022 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005064/1.188, allocations: 121.5 kB / 1.022 GB, free: 14.1 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/1.188, allocations: 0.6807 MB / 1.023 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001126/1.188, allocations: 12 kB / 1.023 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.436e-05/1.188, allocations: 15.42 kB / 1.023 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/1.188, allocations: 0 / 1.023 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of Templates: time 0.003592/1.192, allocations: 1.055 MB / 1.024 GB, free: 12.33 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches