Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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_11_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_11_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.007744/0.007744, allocations: 97.23 kB / 15.73 MB, free: 5.547 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.002123/0.002123, allocations: 191.9 kB / 16.67 MB, free: 5.48 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.374/1.374, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.811/2.811, allocations: 469.8 MB / 0.7425 GB, free: 3.332 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 71.89 kB / 1.065 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9221/0.9235, allocations: 159.1 MB / 1.221 GB, free: 2.062 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002223/0.9257, allocations: 0.7801 MB / 1.221 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002153/0.9278, allocations: 1.485 MB / 1.223 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.033e-05/0.9279, allocations: 0 / 1.223 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.068e-05/0.9279, allocations: 3.938 kB / 1.223 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 5.299e-05/0.928, allocations: 3.938 kB / 1.223 GB, free: 15.78 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005779/0.9285, allocations: 147.4 kB / 1.223 GB, free: 15.63 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.9286, allocations: 47.91 kB / 1.223 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 5.183e-05/0.9287, allocations: 4 kB / 1.223 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.9288, allocations: 27.92 kB / 1.223 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.091e-05/0.9289, allocations: 39.81 kB / 1.223 GB, free: 15.52 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.9289, allocations: 4 kB / 1.223 GB, free: 15.51 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004589/0.9293, allocations: 319.4 kB / 1.223 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.487e-05/0.9294, allocations: 15.98 kB / 1.223 GB, free: 15.18 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.9294, allocations: 19.86 kB / 1.223 GB, free: 15.16 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003205/0.9297, allocations: 219.9 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.9297, allocations: 7.984 kB / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.693e-06/0.9297, allocations: 0 / 1.224 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.9297, allocations: 0 / 1.224 GB, free: 14.95 MB / 0.9512 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.0006495/0.9304, allocations: 402.9 kB / 1.224 GB, free: 14.5 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.9304, allocations: 12.03 kB / 1.224 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004431/0.9309, allocations: 72.84 kB / 1.224 GB, free: 14.42 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.931, allocations: 168.3 kB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.9311, allocations: 4.375 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.9311, allocations: 8.375 kB / 1.224 GB, free: 14.21 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000387/0.9315, allocations: 113.9 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.9315, allocations: 4 kB / 1.224 GB, free: 14.09 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.859e-05/0.9315, allocations: 4 kB / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.9315, allocations: 0 / 1.224 GB, free: 14.08 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004545/0.932, allocations: 103.9 kB / 1.225 GB, free: 13.98 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005781/0.9326, allocations: 336.6 kB / 1.225 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005875/0.9332, allocations: 150.5 kB / 1.225 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002121/0.9334, allocations: 56.8 kB / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.9334, allocations: 4.156 kB / 1.225 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.9334, allocations: 38.5 kB / 1.225 GB, free: 13.34 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.9334, allocations: 0 / 1.225 GB, free: 13.34 MB / 0.9512 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.01798/0.9514, allocations: 2.834 MB / 1.228 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.9514, allocations: 63.34 kB / 1.228 GB, free: 10.33 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.007e-05/0.9515, allocations: 93.86 kB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.798e-05/0.9516, allocations: 37.69 kB / 1.228 GB, free: 10.19 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.573e-05/0.9516, allocations: 88.09 kB / 1.228 GB, free: 10.1 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.431e-05/0.9517, allocations: 39.69 kB / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.9519, allocations: 65.58 kB / 1.228 GB, free: 9.988 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001396/0.9521, allocations: 314.8 kB / 1.229 GB, free: 9.672 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006192/0.9527, allocations: 187.8 kB / 1.229 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005994/0.9533, allocations: 199.8 kB / 1.229 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001216/0.9545, allocations: 394.2 kB / 1.229 GB, free: 8.906 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.9545, allocations: 0 / 1.229 GB, free: 8.906 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001476/0.956, allocations: 481.3 kB / 1.23 GB, free: 8.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.956, allocations: 4 kB / 1.23 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.956, allocations: 0 / 1.23 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.016e-05/0.956, allocations: 4.281 kB / 1.23 GB, free: 8.422 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000817/0.9568, allocations: 107.7 kB / 1.23 GB, free: 8.316 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.9569, allocations: 3.938 kB / 1.23 GB, free: 8.312 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005712/0.9574, allocations: 55.94 kB / 1.23 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.626e-05/0.9575, allocations: 23.92 kB / 1.23 GB, free: 8.234 MB / 0.9512 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.0001537/0.9576, allocations: 122.2 kB / 1.23 GB, free: 8.105 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-05/0.9577, allocations: 11.94 kB / 1.23 GB, free: 8.094 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.085e-05/0.9578, allocations: 11.97 kB / 1.23 GB, free: 8.07 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.9578, allocations: 4 kB / 1.23 GB, free: 8.066 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.9578, allocations: 3.938 kB / 1.23 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.9578, allocations: 0 / 1.23 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002119/0.9599, allocations: 1.051 MB / 1.231 GB, free: 6.906 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.9599, allocations: 0 / 1.231 GB, free: 6.906 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007921/0.9607, allocations: 107.8 kB / 1.231 GB, free: 6.801 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.9607, allocations: 3.938 kB / 1.231 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/0.9608, allocations: 23.94 kB / 1.231 GB, free: 6.773 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.9608, allocations: 3.984 kB / 1.231 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.9608, allocations: 0 / 1.231 GB, free: 6.77 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00219/0.963, allocations: 0.7878 MB / 1.232 GB, free: 5.965 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000139/0.9631, allocations: 124.9 kB / 1.232 GB, free: 5.824 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.96e-05/0.9632, allocations: 7.984 kB / 1.232 GB, free: 5.816 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006701/0.9639, allocations: 48 kB / 1.232 GB, free: 5.77 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.964, allocations: 23.92 kB / 1.232 GB, free: 5.746 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.365e-05/0.964, allocations: 23.94 kB / 1.232 GB, free: 5.723 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.948e-05/0.9641, allocations: 83.28 kB / 1.232 GB, free: 5.641 MB / 0.9512 GB Notification: Performance of sort global known variables: time 6.1e-08/0.9641, allocations: 0 / 1.232 GB, free: 5.641 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003686/0.9644, allocations: 48 kB / 1.232 GB, free: 5.594 MB / 0.9512 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.0002182/0.9646, allocations: 123.1 kB / 1.232 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001366/0.966, allocations: 422 kB / 1.233 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.966, allocations: 0 / 1.233 GB, free: 5.055 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0006621/0.9667, allocations: 219.7 kB / 1.233 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000332/0.967, allocations: 11.98 kB / 1.233 GB, free: 4.828 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.9712, allocations: 0.7669 MB / 1.234 GB, free: 4.035 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002631/0.9714, allocations: 0.6929 MB / 1.235 GB, free: 3.316 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0004648/0.9719, allocations: 88.67 kB / 1.235 GB, free: 3.23 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000244/0.9721, allocations: 55.3 kB / 1.235 GB, free: 3.176 MB / 0.9512 GB Notification: Performance of SimCode: time 3.91e-07/0.9721, allocations: 4 kB / 1.235 GB, free: 3.172 MB / 0.9512 GB Notification: Performance of Templates: time 0.006617/0.9788, allocations: 3.482 MB / 1.238 GB, free: 15.7 MB / 0.9669 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches