Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001245/0.001246, allocations: 107.3 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.001793/0.001793, allocations: 189 kB / 16.25 MB, free: 6.152 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.497/1.497, allocations: 222.9 MB / 239.9 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.48/2.48, allocations: 390.2 MB / 0.6643 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 67.84 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8658/0.8675, allocations: 140.4 MB / 0.9491 GB, free: 9.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002342/0.8699, allocations: 0.8436 MB / 0.9499 GB, free: 8.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001931/0.8718, allocations: 1.47 MB / 0.9514 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.594e-05/0.8719, allocations: 4 kB / 0.9514 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 5.065e-05/0.872, allocations: 5.312 kB / 0.9514 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.149e-05/0.8721, allocations: 0 / 0.9514 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006633/0.8727, allocations: 112.9 kB / 0.9515 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001136/0.8728, allocations: 56.77 kB / 0.9515 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.903e-05/0.8729, allocations: 6.453 kB / 0.9515 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001055/0.873, allocations: 27.89 kB / 0.9516 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.745e-05/0.8731, allocations: 37.05 kB / 0.9516 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.8732, allocations: 4.156 kB / 0.9516 GB, free: 7.086 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004936/0.8737, allocations: 314.6 kB / 0.9519 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.8737, allocations: 19.72 kB / 0.9519 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.834e-05/0.8737, allocations: 21.77 kB / 0.9519 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.8741, allocations: 206.4 kB / 0.9521 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.8741, allocations: 1.281 kB / 0.9521 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.515e-06/0.8742, allocations: 4 kB / 0.9521 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.356e-06/0.8742, allocations: 0 / 0.9521 GB, free: 6.758 MB / 0.7169 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.0007225/0.8749, allocations: 400.2 kB / 0.9525 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.429e-05/0.875, allocations: 9.094 kB / 0.9525 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004955/0.8755, allocations: 74.06 kB / 0.9526 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.8756, allocations: 174.5 kB / 0.9528 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.792e-05/0.8757, allocations: 3.031 kB / 0.9528 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.427e-05/0.8757, allocations: 9.438 kB / 0.9528 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.8761, allocations: 118.1 kB / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.8761, allocations: 0 / 0.9529 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.8762, allocations: 5.25 kB / 0.9529 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.8762, allocations: 1.219 kB / 0.9529 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005961/0.8768, allocations: 99.42 kB / 0.953 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006206/0.8774, allocations: 346.4 kB / 0.9533 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000632/0.8781, allocations: 159.2 kB / 0.9535 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002208/0.8783, allocations: 58.56 kB / 0.9535 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.8783, allocations: 1.156 kB / 0.9535 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.8783, allocations: 35.56 kB / 0.9536 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.8783, allocations: 0 / 0.9536 GB, free: 5.48 MB / 0.7169 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.01911/0.8975, allocations: 2.828 MB / 0.9563 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.8975, allocations: 57.06 kB / 0.9564 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.413e-05/0.8976, allocations: 102.9 kB / 0.9565 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.846e-05/0.8977, allocations: 26.77 kB / 0.9565 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.051e-05/0.8977, allocations: 86.14 kB / 0.9566 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 7.442e-05/0.8978, allocations: 47.78 kB / 0.9566 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.898, allocations: 69.14 kB / 0.9567 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.8981, allocations: 320 kB / 0.957 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/0.8987, allocations: 193.1 kB / 0.9572 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006276/0.8994, allocations: 188.8 kB / 0.9574 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.9006, allocations: 397.2 kB / 0.9578 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.9007, allocations: 5.094 kB / 0.9578 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001504/0.9022, allocations: 476.7 kB / 0.9582 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.9022, allocations: 4.938 kB / 0.9582 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.9022, allocations: 0 / 0.9582 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.9022, allocations: 5.062 kB / 0.9582 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008515/0.9031, allocations: 109.1 kB / 0.9583 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.9031, allocations: 5.453 kB / 0.9583 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006298/0.9038, allocations: 45.5 kB / 0.9584 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.043e-05/0.9038, allocations: 22.84 kB / 0.9584 GB, free: 2.348 MB / 0.7169 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.0001553/0.904, allocations: 117.2 kB / 0.9585 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.472e-05/0.9041, allocations: 10.69 kB / 0.9585 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.93e-05/0.9041, allocations: 13.3 kB / 0.9585 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.9041, allocations: 1.062 kB / 0.9585 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.9042, allocations: 4.688 kB / 0.9585 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.9042, allocations: 0 / 0.9585 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.9063, allocations: 1.053 MB / 0.9596 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.9063, allocations: 4 kB / 0.9596 GB, free: 1.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000856/0.9072, allocations: 105.4 kB / 0.9597 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.9072, allocations: 5.219 kB / 0.9597 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.017e-05/0.9072, allocations: 28.55 kB / 0.9597 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.9073, allocations: 4.094 kB / 0.9597 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.9073, allocations: 5.031 kB / 0.9597 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002258/0.9095, allocations: 0.7817 MB / 0.9605 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.9097, allocations: 124.3 kB / 0.9606 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.208e-05/0.9097, allocations: 5.469 kB / 0.9606 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000718/0.9105, allocations: 41.56 kB / 0.9606 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.9106, allocations: 35.45 kB / 0.9607 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.503e-05/0.9106, allocations: 30.69 kB / 0.9607 GB, free: 0.5273 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.119e-05/0.9107, allocations: 85.56 kB / 0.9608 GB, free: 456 kB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.9107, allocations: 1.062 kB / 0.9608 GB, free: 456 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0004023/0.9111, allocations: 54.84 kB / 0.9608 GB, free: 448 kB / 0.7169 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.0002137/0.9113, allocations: 107.9 kB / 0.9609 GB, free: 352 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001444/0.9128, allocations: 437 kB / 0.9614 GB, free: 128 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.9128, allocations: 0 / 0.9614 GB, free: 128 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0007066/0.9135, allocations: 225.5 kB / 0.9616 GB, free: 12 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.9139, allocations: 7.766 kB / 0.9616 GB, free: 8 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004517/0.9184, allocations: 0.7864 MB / 0.9623 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.9187, allocations: 0.6911 MB / 0.963 GB, free: 14.78 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0007199/0.9195, allocations: 91.5 kB / 0.9631 GB, free: 14.72 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002751/0.9198, allocations: 54.47 kB / 0.9632 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of SimCode: time 5.61e-07/0.9198, allocations: 0.7812 kB / 0.9632 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of Templates: time 0.008679/0.9284, allocations: 3.461 MB / 0.9665 GB, free: 12.84 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches