Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, 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.001509/0.001509, allocations: 190.7 kB / 16.25 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.477/1.477, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.473/2.473, allocations: 390.2 MB / 0.6643 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001677, allocations: 63.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.85/0.8517, allocations: 140.4 MB / 0.9491 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001968/0.8537, allocations: 0.6618 MB / 0.9498 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002086/0.8559, allocations: 1.448 MB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.212e-05/0.8559, allocations: 1.375 kB / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.8559, allocations: 0 / 0.9512 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.686e-05/0.856, allocations: 3.938 kB / 0.9512 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006114/0.8566, allocations: 117.5 kB / 0.9513 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.206e-05/0.8567, allocations: 28.98 kB / 0.9513 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.11e-05/0.8568, allocations: 5.391 kB / 0.9513 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.872e-05/0.8568, allocations: 17.19 kB / 0.9513 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.8569, allocations: 29.09 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.857, allocations: 2.812 kB / 0.9514 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004732/0.8574, allocations: 307.6 kB / 0.9517 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.406e-05/0.8575, allocations: 18.28 kB / 0.9517 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.359e-05/0.8575, allocations: 10.45 kB / 0.9517 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003243/0.8579, allocations: 195.3 kB / 0.9519 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.8579, allocations: 0 / 0.9519 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.715e-06/0.8579, allocations: 1.156 kB / 0.9519 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.8579, allocations: 0 / 0.9519 GB, free: 7.035 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006196/0.8585, allocations: 366.8 kB / 0.9522 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.8586, allocations: 9.375 kB / 0.9522 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000501/0.8591, allocations: 67.47 kB / 0.9523 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.958e-05/0.8592, allocations: 161.7 kB / 0.9525 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.5e-05/0.8592, allocations: 1.688 kB / 0.9525 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.366e-05/0.8592, allocations: 5.688 kB / 0.9525 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.8595, allocations: 81.28 kB / 0.9525 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.8595, allocations: 0.9062 kB / 0.9525 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.539e-05/0.8595, allocations: 4 kB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.8595, allocations: 0.6562 kB / 0.9525 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002911/0.8598, allocations: 63.09 kB / 0.9526 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001742/0.86, allocations: 169.5 kB / 0.9528 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006087/0.8606, allocations: 123.1 kB / 0.9529 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.8608, allocations: 43.75 kB / 0.9529 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000472/0.8613, allocations: 162.5 kB / 0.9531 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.8613, allocations: 39.48 kB / 0.9531 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.8613, allocations: 0 / 0.9531 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001176/0.8625, allocations: 402.8 kB / 0.9535 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.8626, allocations: 52.34 kB / 0.9536 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.64e-05/0.8626, allocations: 92.58 kB / 0.9536 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.8626, allocations: 33.83 kB / 0.9537 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.03e-05/0.8627, allocations: 81.73 kB / 0.9537 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.8627, allocations: 17.27 kB / 0.9538 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.003e-05/0.8628, allocations: 20.03 kB / 0.9538 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.596e-05/0.8628, allocations: 314.8 kB / 0.9541 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.863, allocations: 41.45 kB / 0.9541 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.8631, allocations: 33.97 kB / 0.9542 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.8634, allocations: 75.77 kB / 0.9542 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.8635, allocations: 0 / 0.9542 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003459/0.8638, allocations: 120.8 kB / 0.9543 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.8638, allocations: 5.781 kB / 0.9544 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.8638, allocations: 256 / 0.9544 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.8639, allocations: 1.125 kB / 0.9544 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.864, allocations: 23.23 kB / 0.9544 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.864, allocations: 5.188 kB / 0.9544 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.761e-05/0.8641, allocations: 15.45 kB / 0.9544 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.8642, allocations: 6.078 kB / 0.9544 GB, free: 4.73 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 (6): * Single equations (assignments): 6 * 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 6.192e-05/0.8642, allocations: 111.9 kB / 0.9545 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.8643, allocations: 5 kB / 0.9545 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004481/0.8647, allocations: 138.2 kB / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.8647, allocations: 0.9375 kB / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.8647, allocations: 0 / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.8647, allocations: 0 / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/0.8648, allocations: 167.4 kB / 0.9548 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.8649, allocations: 4.844 kB / 0.9548 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.865, allocations: 28.27 kB / 0.9548 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.865, allocations: 0 / 0.9548 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.865, allocations: 1.406 kB / 0.9548 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.865, allocations: 1.156 kB / 0.9548 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.8651, allocations: 3.984 kB / 0.9548 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005357/0.8656, allocations: 187.9 kB / 0.955 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.511e-05/0.8657, allocations: 91.62 kB / 0.9551 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.161e-05/0.8657, allocations: 5.062 kB / 0.9551 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.8658, allocations: 11.83 kB / 0.9551 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.723e-05/0.8658, allocations: 6.672 kB / 0.9551 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.8659, allocations: 2.969 kB / 0.9551 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.181e-05/0.8659, allocations: 77.38 kB / 0.9552 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8659, allocations: 0 / 0.9552 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000257/0.8662, allocations: 32.06 kB / 0.9552 GB, free: 3.969 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0002316/0.8664, allocations: 132.8 kB / 0.9554 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003976/0.8668, allocations: 86.91 kB / 0.9554 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8668, allocations: 0 / 0.9554 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.867, allocations: 45.27 kB / 0.9555 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.8672, allocations: 1.375 kB / 0.9555 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000641/0.8678, allocations: 201.2 kB / 0.9557 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001333/0.8679, allocations: 0.6871 MB / 0.9564 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.8681, allocations: 22.34 kB / 0.9564 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.759e-05/0.8681, allocations: 11.09 kB / 0.9564 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of SimCode: time 4.51e-07/0.8681, allocations: 0 / 0.9564 GB, free: 2.914 MB / 0.7169 GB Notification: Performance of Templates: time 0.003638/0.8718, allocations: 1.156 MB / 0.9575 GB, free: 2.316 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches