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.00158/0.00158, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001859/0.001858, allocations: 198.8 kB / 16.26 MB, free: 6.621 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.84/2.84, allocations: 461.9 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 68.05 kB / 0.8986 GB, free: 37.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3165, allocations: 157.4 MB / 1.052 GB, free: 8.746 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002205/0.3188, allocations: 0.8501 MB / 1.053 GB, free: 7.891 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001895/0.3207, allocations: 1.489 MB / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.248e-05/0.3207, allocations: 0 / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.671e-05/0.3208, allocations: 0 / 1.055 GB, free: 6.383 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.579e-05/0.3208, allocations: 3.938 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004756/0.3213, allocations: 115.7 kB / 1.055 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.651e-05/0.3214, allocations: 63.83 kB / 1.055 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.704e-05/0.3215, allocations: 4 kB / 1.055 GB, free: 6.199 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.19e-05/0.3215, allocations: 27.92 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.746e-05/0.3216, allocations: 31.89 kB / 1.055 GB, free: 6.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.3216, allocations: 4 kB / 1.055 GB, free: 6.137 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004096/0.322, allocations: 315.4 kB / 1.055 GB, free: 5.828 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.056e-05/0.3221, allocations: 19.91 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.583e-05/0.3221, allocations: 23.86 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000298/0.3224, allocations: 203.6 kB / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3224, allocations: 0 / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3224, allocations: 0 / 1.055 GB, free: 5.586 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.3224, allocations: 0 / 1.055 GB, free: 5.586 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.0006589/0.3231, allocations: 411.6 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.3232, allocations: 8.625 kB / 1.056 GB, free: 5.129 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004363/0.3236, allocations: 72.8 kB / 1.056 GB, free: 5.059 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.3237, allocations: 180.1 kB / 1.056 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.3238, allocations: 4.375 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.891e-05/0.3238, allocations: 8.375 kB / 1.056 GB, free: 4.832 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000377/0.3242, allocations: 112.7 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3242, allocations: 0 / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.3242, allocations: 4 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3242, allocations: 4 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004536/0.3247, allocations: 107.8 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006117/0.3253, allocations: 328.7 kB / 1.057 GB, free: 4.234 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006149/0.326, allocations: 154.4 kB / 1.057 GB, free: 4.074 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.3262, allocations: 60.81 kB / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.3262, allocations: 0 / 1.057 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.3262, allocations: 30.56 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 8.31e-07/0.3262, allocations: 0 / 1.057 GB, free: 3.973 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.0184/0.3446, allocations: 2.839 MB / 1.06 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.3447, allocations: 59.34 kB / 1.06 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.684e-05/0.3448, allocations: 97.86 kB / 1.06 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.287e-05/0.3449, allocations: 29.7 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.414e-05/0.345, allocations: 95.97 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.318e-05/0.345, allocations: 35.45 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.3452, allocations: 73.56 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3453, allocations: 318.8 kB / 1.06 GB, free: 304 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006245/0.346, allocations: 191.9 kB / 1.06 GB, free: 112 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006309/0.3466, allocations: 195.7 kB / 1.061 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001225/0.3478, allocations: 388.5 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.3479, allocations: 0 / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00144/0.3493, allocations: 484.1 kB / 1.061 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.3493, allocations: 8 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3494, allocations: 0 / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.3494, allocations: 0 / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008475/0.3502, allocations: 107.7 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.3502, allocations: 7.938 kB / 1.062 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000633/0.3509, allocations: 43.94 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.351, allocations: 27.94 kB / 1.062 GB, free: 14.87 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.0001572/0.3511, allocations: 115.5 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.794e-05/0.3512, allocations: 11.84 kB / 1.062 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.345e-05/0.3513, allocations: 11.97 kB / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.3513, allocations: 0 / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/0.3513, allocations: 3.938 kB / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3513, allocations: 4 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.3534, allocations: 1.039 MB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3534, allocations: 4 kB / 1.063 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008514/0.3543, allocations: 108 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.3543, allocations: 7.938 kB / 1.063 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.185e-05/0.3543, allocations: 19.94 kB / 1.063 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3543, allocations: 4 kB / 1.063 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3544, allocations: 3.984 kB / 1.063 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002197/0.3566, allocations: 0.7994 MB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.3567, allocations: 117 kB / 1.064 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.827e-05/0.3568, allocations: 0 / 1.064 GB, free: 12.47 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007157/0.3575, allocations: 48 kB / 1.064 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.3576, allocations: 31.92 kB / 1.064 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.453e-05/0.3577, allocations: 23.92 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.227e-05/0.3577, allocations: 79.28 kB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3577, allocations: 4 kB / 1.064 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003739/0.3581, allocations: 52 kB / 1.064 GB, free: 12.23 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.0002158/0.3583, allocations: 119.2 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001387/0.3597, allocations: 423.7 kB / 1.065 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.3597, allocations: 4 kB / 1.065 GB, free: 11.69 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006887/0.3604, allocations: 231.6 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.3608, allocations: 14.23 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004248/0.3651, allocations: 0.7869 MB / 1.066 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.3653, allocations: 0.6846 MB / 1.066 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0006863/0.366, allocations: 92.66 kB / 1.066 GB, free: 9.84 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002537/0.3663, allocations: 55.3 kB / 1.066 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.3663, allocations: 0 / 1.066 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of Templates: time 0.006036/0.3723, allocations: 3.468 MB / 1.07 GB, free: 6.32 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