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.347/1.347, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 183.8 kB / 326.5 MB, free: 2.234 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.674/1.674, allocations: 205.4 MB / 0.5775 GB, free: 20.56 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.0009074/0.0009075, allocations: 91.03 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000283/0.0002831, allocations: 12.44 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1634/0.1637, allocations: 106.4 MB / 0.9001 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1547/0.3184, allocations: 132.5 MB / 1.029 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.3187, allocations: 83.95 kB / 1.03 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01202/0.3307, allocations: 4.086 MB / 1.034 GB, free: 7.617 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3307, allocations: 0 / 1.034 GB, free: 7.617 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.3307, allocations: 0 / 1.034 GB, free: 7.617 MB / 0.6823 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.0003586/0.3311, allocations: 375.2 kB / 1.034 GB, free: 7.203 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.3311, allocations: 8.031 kB / 1.034 GB, free: 7.195 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003605/0.3315, allocations: 59.94 kB / 1.034 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.3316, allocations: 175 kB / 1.034 GB, free: 6.926 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.3317, allocations: 3.938 kB / 1.034 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.3317, allocations: 0 / 1.034 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.3319, allocations: 87.23 kB / 1.034 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.513e-06/0.3319, allocations: 0 / 1.034 GB, free: 6.832 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.332, allocations: 8 kB / 1.034 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.332, allocations: 0 / 1.034 GB, free: 6.824 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.3323, allocations: 79.92 kB / 1.034 GB, free: 6.746 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001705/0.3324, allocations: 169.7 kB / 1.034 GB, free: 6.531 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000572/0.333, allocations: 134.5 kB / 1.035 GB, free: 6.391 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.3331, allocations: 12.02 kB / 1.035 GB, free: 6.379 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.3331, allocations: 42.5 kB / 1.035 GB, free: 6.328 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.011e-06/0.3331, allocations: 0 / 1.035 GB, free: 6.328 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5): time 0.001085/0.3342, allocations: 434.2 kB / 1.035 GB, free: 5.852 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.036e-05/0.3342, allocations: 51.41 kB / 1.035 GB, free: 5.789 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.903e-05/0.3343, allocations: 93 kB / 1.035 GB, free: 5.691 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.3343, allocations: 25.7 kB / 1.035 GB, free: 5.66 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.445e-05/0.3344, allocations: 80.14 kB / 1.035 GB, free: 5.578 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/0.3344, allocations: 27.64 kB / 1.035 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.782e-06/0.3344, allocations: 0 / 1.035 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001104/0.3345, allocations: 314.8 kB / 1.036 GB, free: 5.234 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.3347, allocations: 40.09 kB / 1.036 GB, free: 5.195 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.3348, allocations: 39.97 kB / 1.036 GB, free: 5.156 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.335, allocations: 51.92 kB / 1.036 GB, free: 5.105 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.335, allocations: 0 / 1.036 GB, free: 5.105 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003509/0.3354, allocations: 117.6 kB / 1.036 GB, free: 4.984 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.3354, allocations: 15.94 kB / 1.036 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.3354, allocations: 0 / 1.036 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.3354, allocations: 0 / 1.036 GB, free: 4.969 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.3356, allocations: 27.97 kB / 1.036 GB, free: 4.941 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.3356, allocations: 0 / 1.036 GB, free: 4.941 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.947e-05/0.3357, allocations: 23.98 kB / 1.036 GB, free: 4.918 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.3357, allocations: 0 / 1.036 GB, free: 4.918 MB / 0.6823 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 8.117e-05/0.3358, allocations: 116 kB / 1.036 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.228e-05/0.3358, allocations: 0 / 1.036 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000439/0.3362, allocations: 153.1 kB / 1.036 GB, free: 4.641 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3363, allocations: 0 / 1.036 GB, free: 4.641 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.3363, allocations: 0 / 1.036 GB, free: 4.641 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.3363, allocations: 8.266 kB / 1.036 GB, free: 4.633 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.3364, allocations: 165.6 kB / 1.036 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3364, allocations: 320 / 1.036 GB, free: 4.422 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001549/0.3366, allocations: 31.97 kB / 1.036 GB, free: 4.391 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.3366, allocations: 4 kB / 1.036 GB, free: 4.387 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.3366, allocations: 3.984 kB / 1.036 GB, free: 4.383 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-05/0.3366, allocations: 7.938 kB / 1.036 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3367, allocations: 0 / 1.036 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005443/0.3372, allocations: 204.9 kB / 1.037 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.3373, allocations: 85.05 kB / 1.037 GB, free: 4.055 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.3373, allocations: 8.016 kB / 1.037 GB, free: 4.047 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.3374, allocations: 23.98 kB / 1.037 GB, free: 4.023 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.617e-05/0.3375, allocations: 4 kB / 1.037 GB, free: 4.02 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.3375, allocations: 4 kB / 1.037 GB, free: 4.016 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.196e-05/0.3375, allocations: 79.27 kB / 1.037 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3375, allocations: 0 / 1.037 GB, free: 3.938 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002397/0.3378, allocations: 39.94 kB / 1.037 GB, free: 3.898 MB / 0.6823 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.0002061/0.338, allocations: 139.2 kB / 1.037 GB, free: 3.754 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00036/0.3384, allocations: 95.92 kB / 1.037 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3384, allocations: 0 / 1.037 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001643/0.3385, allocations: 59.89 kB / 1.037 GB, free: 3.602 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001008/0.3387, allocations: 4 kB / 1.037 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005709/0.3392, allocations: 192.6 kB / 1.037 GB, free: 3.383 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.3394, allocations: 0.6809 MB / 1.038 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000114/0.3396, allocations: 23.98 kB / 1.038 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.423e-05/0.3396, allocations: 11.44 kB / 1.038 GB, free: 2.641 MB / 0.6823 GB Notification: Performance of SimCode: time 2.1e-07/0.3396, allocations: 3.938 kB / 1.038 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of Templates: time 0.003251/0.3429, allocations: 1.087 MB / 1.039 GB, free: 1.559 MB / 0.6823 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