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.005143/0.005143, allocations: 101.6 kB / 15.73 MB, free: 6.008 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.001019/0.001019, allocations: 188.3 kB / 16.67 MB, free: 5.93 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 / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.679/2.679, allocations: 461.9 MB / 0.7348 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 67.89 kB / 1.054 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9164/0.9178, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002566/0.9205, allocations: 0.7906 MB / 1.209 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002276/0.9228, allocations: 1.474 MB / 1.21 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.277e-05/0.9228, allocations: 4 kB / 1.21 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 3.626e-05/0.9229, allocations: 3.938 kB / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 5.862e-05/0.923, allocations: 0 / 1.21 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006541/0.9237, allocations: 139.4 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.9238, allocations: 51.91 kB / 1.21 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 5.159e-05/0.9238, allocations: 7.938 kB / 1.21 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001014/0.9239, allocations: 31.91 kB / 1.21 GB, free: 11.14 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.811e-05/0.924, allocations: 35.83 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.9241, allocations: 4 kB / 1.21 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000532/0.9246, allocations: 319.4 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.573e-05/0.9246, allocations: 11.98 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.661e-05/0.9247, allocations: 27.84 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003952/0.9251, allocations: 207.5 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.9251, allocations: 4 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.613e-06/0.9251, allocations: 0 / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.9251, allocations: 0 / 1.211 GB, free: 10.54 MB / 0.9356 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.000722/0.9258, allocations: 399.2 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.9259, allocations: 12.03 kB / 1.211 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004563/0.9264, allocations: 72.75 kB / 1.211 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.9265, allocations: 170.1 kB / 1.211 GB, free: 9.82 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.502e-05/0.9266, allocations: 8.375 kB / 1.211 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.132e-05/0.9266, allocations: 4.375 kB / 1.211 GB, free: 9.809 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003642/0.927, allocations: 113.9 kB / 1.212 GB, free: 9.691 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.927, allocations: 7.984 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.779e-05/0.927, allocations: 7.938 kB / 1.212 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.927, allocations: 0 / 1.212 GB, free: 9.676 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004524/0.9275, allocations: 107.8 kB / 1.212 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006362/0.9281, allocations: 332.6 kB / 1.212 GB, free: 9.195 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/0.9287, allocations: 158.4 kB / 1.212 GB, free: 9.031 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.929, allocations: 56.8 kB / 1.212 GB, free: 8.973 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.929, allocations: 4 kB / 1.212 GB, free: 8.969 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.429e-05/0.9291, allocations: 34.56 kB / 1.212 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.9291, allocations: 0 / 1.212 GB, free: 8.926 MB / 0.9356 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.01717/0.9462, allocations: 2.832 MB / 1.215 GB, free: 6 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.9463, allocations: 59.28 kB / 1.215 GB, free: 5.93 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.788e-05/0.9464, allocations: 109.8 kB / 1.215 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.558e-05/0.9465, allocations: 25.7 kB / 1.215 GB, free: 5.781 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.9465, allocations: 91.98 kB / 1.215 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.9466, allocations: 39.45 kB / 1.215 GB, free: 5.648 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001778/0.9468, allocations: 65.58 kB / 1.215 GB, free: 5.578 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.9469, allocations: 318.8 kB / 1.216 GB, free: 5.258 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006247/0.9476, allocations: 187.9 kB / 1.216 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006184/0.9482, allocations: 206 kB / 1.216 GB, free: 4.875 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.9495, allocations: 392.5 kB / 1.216 GB, free: 4.488 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.9495, allocations: 0 / 1.216 GB, free: 4.488 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001522/0.9511, allocations: 477.3 kB / 1.217 GB, free: 4.016 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.9511, allocations: 4 kB / 1.217 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.9511, allocations: 0 / 1.217 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.224e-05/0.9511, allocations: 0 / 1.217 GB, free: 4.012 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000836/0.952, allocations: 111.7 kB / 1.217 GB, free: 3.902 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.952, allocations: 3.938 kB / 1.217 GB, free: 3.898 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005548/0.9526, allocations: 43.94 kB / 1.217 GB, free: 3.855 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-05/0.9526, allocations: 31.92 kB / 1.217 GB, free: 3.824 MB / 0.9356 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.0001595/0.9528, allocations: 113.8 kB / 1.217 GB, free: 3.703 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.222e-05/0.9529, allocations: 7.906 kB / 1.217 GB, free: 3.695 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.941e-05/0.953, allocations: 7.969 kB / 1.217 GB, free: 3.68 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.953, allocations: 0 / 1.217 GB, free: 3.68 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.953, allocations: 3.938 kB / 1.217 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.953, allocations: 0 / 1.217 GB, free: 3.676 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.9552, allocations: 1.055 MB / 1.218 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.9552, allocations: 0 / 1.218 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007696/0.956, allocations: 107.8 kB / 1.218 GB, free: 2.402 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.956, allocations: 3.938 kB / 1.218 GB, free: 2.398 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.047e-05/0.9561, allocations: 27.92 kB / 1.218 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.9561, allocations: 0 / 1.218 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.9561, allocations: 0 / 1.218 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002247/0.9583, allocations: 0.799 MB / 1.219 GB, free: 1.559 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.9585, allocations: 120.8 kB / 1.219 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.629e-05/0.9585, allocations: 4 kB / 1.219 GB, free: 1.418 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006058/0.9592, allocations: 48 kB / 1.219 GB, free: 1.371 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.536e-05/0.9593, allocations: 27.92 kB / 1.219 GB, free: 1.344 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.508e-05/0.9593, allocations: 19.94 kB / 1.219 GB, free: 1.324 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.179e-05/0.9594, allocations: 83.45 kB / 1.219 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9594, allocations: 0 / 1.219 GB, free: 1.242 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003863/0.9598, allocations: 59.98 kB / 1.219 GB, free: 1.184 MB / 0.9356 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.0002505/0.96, allocations: 111.2 kB / 1.22 GB, free: 1.066 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001406/0.9614, allocations: 419.8 kB / 1.22 GB, free: 0.6562 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.9615, allocations: 4 kB / 1.22 GB, free: 0.6523 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0006937/0.9622, allocations: 239.5 kB / 1.22 GB, free: 428 kB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003815/0.9625, allocations: 4 kB / 1.22 GB, free: 424 kB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003869/0.9664, allocations: 0.7558 MB / 1.221 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.9668, allocations: 0.6923 MB / 1.222 GB, free: 14.91 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0004749/0.9673, allocations: 92.67 kB / 1.222 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.9675, allocations: 55.3 kB / 1.222 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of SimCode: time 5.61e-07/0.9675, allocations: 0 / 1.222 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of Templates: time 0.007417/0.9749, allocations: 3.477 MB / 1.225 GB, free: 11.29 MB / 0.9512 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