Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002306/0.002306, allocations: 198.1 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.714/2.714, allocations: 461.8 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 69.23 kB / 0.8984 GB, free: 37.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3169, allocations: 157.4 MB / 1.052 GB, free: 8.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002385/0.3193, allocations: 0.8309 MB / 1.053 GB, free: 8.043 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002022/0.3213, allocations: 1.52 MB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.361e-05/0.3214, allocations: 0 / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.024e-05/0.3215, allocations: 3.938 kB / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.497e-05/0.3215, allocations: 0 / 1.054 GB, free: 6.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004707/0.322, allocations: 119.7 kB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.768e-05/0.3221, allocations: 47.91 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.074e-05/0.3221, allocations: 0 / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.388e-05/0.3222, allocations: 23.92 kB / 1.055 GB, free: 6.312 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.91e-05/0.3223, allocations: 39.88 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.574e-05/0.3223, allocations: 4 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.3228, allocations: 311.3 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.529e-05/0.3228, allocations: 23.91 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.866e-05/0.3228, allocations: 23.86 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003202/0.3232, allocations: 199.6 kB / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3232, allocations: 0 / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.91e-07/0.3232, allocations: 0 / 1.055 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.3232, allocations: 0 / 1.055 GB, free: 5.723 MB / 0.8106 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.0006826/0.3239, allocations: 407.6 kB / 1.056 GB, free: 5.277 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.3239, allocations: 8.031 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004721/0.3244, allocations: 68.84 kB / 1.056 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.3246, allocations: 180.2 kB / 1.056 GB, free: 4.988 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.3246, allocations: 8.375 kB / 1.056 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.802e-05/0.3246, allocations: 4.375 kB / 1.056 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003757/0.325, allocations: 113.9 kB / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.325, allocations: 0 / 1.056 GB, free: 4.859 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.325, allocations: 4 kB / 1.056 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.3251, allocations: 4 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/0.3255, allocations: 103.9 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006417/0.3262, allocations: 328.7 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006347/0.3268, allocations: 158.4 kB / 1.056 GB, free: 4.215 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/0.3271, allocations: 52.81 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.3271, allocations: 3.984 kB / 1.057 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.3272, allocations: 38.56 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.3272, allocations: 0 / 1.057 GB, free: 4.109 MB / 0.8106 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.01906/0.3462, allocations: 2.834 MB / 1.059 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.3463, allocations: 55.44 kB / 1.059 GB, free: 1.113 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.468e-05/0.3464, allocations: 105.7 kB / 1.06 GB, free: 1 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.647e-05/0.3464, allocations: 25.7 kB / 1.06 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.006e-05/0.3465, allocations: 104 kB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.169e-05/0.3466, allocations: 35.45 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.3467, allocations: 69.58 kB / 1.06 GB, free: 0.7539 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3469, allocations: 314.8 kB / 1.06 GB, free: 448 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006519/0.3475, allocations: 191.8 kB / 1.06 GB, free: 256 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006317/0.3482, allocations: 195.8 kB / 1.06 GB, free: 60 kB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.3495, allocations: 391.7 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.3495, allocations: 0 / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001516/0.351, allocations: 481.4 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.351, allocations: 4 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.351, allocations: 7.938 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.255e-06/0.3511, allocations: 3.984 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008598/0.3519, allocations: 103.8 kB / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3519, allocations: 3.938 kB / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006506/0.3526, allocations: 43.94 kB / 1.061 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.368e-05/0.3527, allocations: 35.92 kB / 1.061 GB, free: 15 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000148/0.3528, allocations: 117.8 kB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.514e-05/0.3529, allocations: 7.906 kB / 1.062 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.745e-05/0.353, allocations: 11.97 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.353, allocations: 4 kB / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.353, allocations: 3.938 kB / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.353, allocations: 0 / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002212/0.3552, allocations: 1.047 MB / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.3552, allocations: 0 / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008814/0.3561, allocations: 107.8 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.3561, allocations: 3.938 kB / 1.063 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-05/0.3562, allocations: 19.94 kB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.3562, allocations: 3.938 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.3562, allocations: 7.922 kB / 1.063 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002385/0.3586, allocations: 0.7879 MB / 1.063 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.3588, allocations: 117 kB / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.077e-05/0.3588, allocations: 0 / 1.064 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007414/0.3596, allocations: 55.98 kB / 1.064 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.3597, allocations: 19.94 kB / 1.064 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.798e-05/0.3598, allocations: 27.92 kB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.923e-05/0.3598, allocations: 83.28 kB / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3598, allocations: 0 / 1.064 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003846/0.3602, allocations: 48 kB / 1.064 GB, free: 12.38 MB / 0.8262 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000227/0.3604, allocations: 127.1 kB / 1.064 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001472/0.3619, allocations: 415.5 kB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3619, allocations: 3.938 kB / 1.064 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0007641/0.3627, allocations: 223.7 kB / 1.065 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000398/0.3631, allocations: 21.02 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004459/0.3676, allocations: 0.7807 MB / 1.065 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.3679, allocations: 0.6888 MB / 1.066 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0007138/0.3686, allocations: 96.66 kB / 1.066 GB, free: 9.98 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002719/0.3689, allocations: 55.3 kB / 1.066 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of SimCode: time 7.51e-07/0.3689, allocations: 0 / 1.066 GB, free: 9.926 MB / 0.8262 GB Notification: Performance of Templates: time 0.00649/0.3754, allocations: 3.328 MB / 1.069 GB, free: 6.605 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches