Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.358/1.358, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001122/0.001121, allocations: 178.8 kB / 326.5 MB, free: 2.25 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.554/1.554, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0009146/0.0009145, allocations: 96.45 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004244/0.0004245, allocations: 13.06 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2193, allocations: 106.3 MB / 0.9001 GB, free: 63.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1534/0.3727, allocations: 133.2 MB / 1.03 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.373, allocations: 87.94 kB / 1.03 GB, free: 10.44 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01622/0.3893, allocations: 5.484 MB / 1.036 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3893, allocations: 0 / 1.036 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.3893, allocations: 0 / 1.036 GB, free: 4.945 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004751/0.3898, allocations: 399 kB / 1.036 GB, free: 4.508 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3898, allocations: 8.031 kB / 1.036 GB, free: 4.5 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003819/0.3902, allocations: 75.83 kB / 1.036 GB, free: 4.426 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001194/0.3904, allocations: 171 kB / 1.036 GB, free: 4.219 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.868e-05/0.3904, allocations: 4 kB / 1.036 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.3904, allocations: 4 kB / 1.036 GB, free: 4.211 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003716/0.3908, allocations: 125.5 kB / 1.036 GB, free: 4.082 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3908, allocations: 0 / 1.036 GB, free: 4.082 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.3909, allocations: 4 kB / 1.036 GB, free: 4.078 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.3909, allocations: 7.938 kB / 1.036 GB, free: 4.07 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004566/0.3913, allocations: 123.9 kB / 1.037 GB, free: 3.949 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005472/0.3919, allocations: 340.6 kB / 1.037 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/0.3925, allocations: 182.4 kB / 1.037 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.3926, allocations: 4 kB / 1.037 GB, free: 3.375 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.3926, allocations: 38.55 kB / 1.037 GB, free: 3.328 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.3926, allocations: 0 / 1.037 GB, free: 3.328 MB / 0.6823 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.01924/0.4118, allocations: 3.179 MB / 1.04 GB, free: 56 kB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.964e-05/0.412, allocations: 59.34 kB / 1.04 GB, free: 15.98 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.821e-05/0.4121, allocations: 100.9 kB / 1.04 GB, free: 15.88 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.4121, allocations: 25.7 kB / 1.04 GB, free: 15.85 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.043e-05/0.4122, allocations: 88.05 kB / 1.04 GB, free: 15.76 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.803e-05/0.4122, allocations: 43.45 kB / 1.04 GB, free: 15.71 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.4123, allocations: 4 kB / 1.04 GB, free: 15.71 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001483/0.4124, allocations: 310.8 kB / 1.041 GB, free: 15.4 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006408/0.4131, allocations: 219.9 kB / 1.041 GB, free: 15.18 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000605/0.4137, allocations: 222.6 kB / 1.041 GB, free: 14.97 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006411/0.4144, allocations: 219.8 kB / 1.041 GB, free: 14.75 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.4144, allocations: 0 / 1.041 GB, free: 14.75 MB / 0.698 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001487/0.4159, allocations: 0.5169 MB / 1.042 GB, free: 14.23 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.4159, allocations: 4 kB / 1.042 GB, free: 14.23 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.4159, allocations: 7.938 kB / 1.042 GB, free: 14.22 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.4159, allocations: 0 / 1.042 GB, free: 14.22 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008781/0.4168, allocations: 123.7 kB / 1.042 GB, free: 14.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.882e-06/0.4168, allocations: 0 / 1.042 GB, free: 14.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/0.4175, allocations: 59.94 kB / 1.042 GB, free: 14.04 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-05/0.4176, allocations: 27.92 kB / 1.042 GB, free: 14.01 MB / 0.698 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.0001507/0.4177, allocations: 109.9 kB / 1.042 GB, free: 13.89 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.52e-05/0.4178, allocations: 11.91 kB / 1.042 GB, free: 13.88 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.159e-05/0.4179, allocations: 15.97 kB / 1.042 GB, free: 13.87 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.4179, allocations: 3.953 kB / 1.042 GB, free: 13.87 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4179, allocations: 0 / 1.042 GB, free: 13.87 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.4179, allocations: 0 / 1.042 GB, free: 13.87 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002143/0.42, allocations: 1.105 MB / 1.043 GB, free: 12.65 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.42, allocations: 4 kB / 1.043 GB, free: 12.64 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009441/0.421, allocations: 115.8 kB / 1.043 GB, free: 12.53 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.421, allocations: 0 / 1.043 GB, free: 12.53 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.024e-05/0.4211, allocations: 23.92 kB / 1.043 GB, free: 12.51 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4211, allocations: 0 / 1.043 GB, free: 12.51 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.4211, allocations: 0 / 1.043 GB, free: 12.51 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002231/0.4233, allocations: 0.8737 MB / 1.044 GB, free: 11.62 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.4235, allocations: 124.9 kB / 1.044 GB, free: 11.48 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.921e-05/0.4236, allocations: 4.062 kB / 1.044 GB, free: 11.47 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007884/0.4244, allocations: 63.94 kB / 1.045 GB, free: 11.41 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.573e-05/0.4245, allocations: 23.92 kB / 1.045 GB, free: 11.39 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.586e-05/0.4245, allocations: 23.94 kB / 1.045 GB, free: 11.36 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.272e-05/0.4246, allocations: 87.27 kB / 1.045 GB, free: 11.28 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4246, allocations: 0 / 1.045 GB, free: 11.28 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003802/0.425, allocations: 55.94 kB / 1.045 GB, free: 11.22 MB / 0.698 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.000226/0.4252, allocations: 115.2 kB / 1.045 GB, free: 11.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.00135/0.4266, allocations: 471.8 kB / 1.045 GB, free: 10.64 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4266, allocations: 4 kB / 1.045 GB, free: 10.63 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006888/0.4273, allocations: 259.5 kB / 1.046 GB, free: 10.38 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002407/0.4275, allocations: 8 kB / 1.046 GB, free: 10.37 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004433/0.432, allocations: 0.8618 MB / 1.046 GB, free: 9.48 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003587/0.4324, allocations: 0.7007 MB / 1.047 GB, free: 8.754 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0006823/0.433, allocations: 96.64 kB / 1.047 GB, free: 8.66 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.4333, allocations: 59.3 kB / 1.047 GB, free: 8.602 MB / 0.698 GB Notification: Performance of SimCode: time 1.062e-06/0.4333, allocations: 0 / 1.047 GB, free: 8.602 MB / 0.698 GB Notification: Performance of Templates: time 0.0061/0.4394, allocations: 3.247 MB / 1.05 GB, free: 5.359 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches