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.00132/0.00132, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001576/0.001577, allocations: 192.7 kB / 16.14 MB, free: 6.711 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.648 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.584/2.584, allocations: 390.2 MB / 0.6642 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.91 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8737/0.8751, allocations: 140.4 MB / 0.9489 GB, free: 9.172 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001724/0.8768, allocations: 0.6698 MB / 0.9496 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001358/0.8782, allocations: 1.463 MB / 0.951 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.3e-05/0.8782, allocations: 1.375 kB / 0.951 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.228e-05/0.8782, allocations: 0 / 0.951 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.824e-05/0.8783, allocations: 0 / 0.951 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003812/0.8787, allocations: 114.2 kB / 0.9511 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.354e-05/0.8787, allocations: 28.11 kB / 0.9512 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.363e-05/0.8788, allocations: 5.297 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.192e-05/0.8788, allocations: 13.67 kB / 0.9512 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.829e-05/0.8789, allocations: 29.05 kB / 0.9512 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.8789, allocations: 2.906 kB / 0.9512 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003994/0.8793, allocations: 319.2 kB / 0.9515 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.683e-05/0.8793, allocations: 9.328 kB / 0.9515 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.392e-05/0.8793, allocations: 10.52 kB / 0.9515 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.8796, allocations: 187.5 kB / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.8796, allocations: 3.938 kB / 0.9517 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8796, allocations: 0 / 0.9517 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.8796, allocations: 1.688 kB / 0.9517 GB, free: 7.062 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.0004545/0.8801, allocations: 369.9 kB / 0.9521 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.8801, allocations: 8.906 kB / 0.9521 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004659/0.8806, allocations: 67.66 kB / 0.9521 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.025e-05/0.8807, allocations: 166.4 kB / 0.9523 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.025e-05/0.8807, allocations: 4.375 kB / 0.9523 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.808e-05/0.8807, allocations: 2.219 kB / 0.9523 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002423/0.881, allocations: 78.56 kB / 0.9524 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.881, allocations: 0 / 0.9524 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.881, allocations: 0 / 0.9524 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.881, allocations: 1.281 kB / 0.9524 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002858/0.8813, allocations: 66.44 kB / 0.9524 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001224/0.8814, allocations: 168.9 kB / 0.9526 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005413/0.882, allocations: 123.5 kB / 0.9527 GB, free: 6.082 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.8822, allocations: 41.17 kB / 0.9528 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004041/0.8826, allocations: 156.7 kB / 0.9529 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.8826, allocations: 39.66 kB / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.243e-06/0.8826, allocations: 1.125 kB / 0.9529 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.001062/0.8837, allocations: 406.2 kB / 0.9533 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.802e-05/0.8837, allocations: 52.72 kB / 0.9534 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.527e-05/0.8837, allocations: 92.55 kB / 0.9535 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.8838, allocations: 29.83 kB / 0.9535 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.238e-05/0.8838, allocations: 80.14 kB / 0.9536 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.8838, allocations: 22.23 kB / 0.9536 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.336e-05/0.8838, allocations: 19.81 kB / 0.9536 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.025e-05/0.8839, allocations: 312.2 kB / 0.9539 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.8841, allocations: 40.89 kB / 0.954 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.8842, allocations: 33.59 kB / 0.954 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.8845, allocations: 80.05 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.8845, allocations: 0 / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003424/0.8849, allocations: 116.9 kB / 0.9542 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.8849, allocations: 9.594 kB / 0.9542 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.8849, allocations: 0 / 0.9542 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.8849, allocations: 5.125 kB / 0.9542 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.8851, allocations: 20.42 kB / 0.9542 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.8851, allocations: 4 kB / 0.9542 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.8852, allocations: 20.17 kB / 0.9542 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.8852, allocations: 5.172 kB / 0.9542 GB, free: 4.754 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 5.866e-05/0.8853, allocations: 108.2 kB / 0.9543 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.8853, allocations: 6.062 kB / 0.9543 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004232/0.8857, allocations: 141.2 kB / 0.9545 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.8857, allocations: 1.25 kB / 0.9545 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.8857, allocations: 0 / 0.9545 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.8857, allocations: 0 / 0.9545 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.8858, allocations: 167 kB / 0.9546 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.8859, allocations: 1.062 kB / 0.9546 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001563/0.886, allocations: 28.39 kB / 0.9547 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.886, allocations: 0 / 0.9547 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.886, allocations: 1.281 kB / 0.9547 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.8861, allocations: 5.266 kB / 0.9547 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8861, allocations: 0 / 0.9547 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005203/0.8866, allocations: 187.8 kB / 0.9549 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.8866, allocations: 87.41 kB / 0.9549 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.8867, allocations: 5.125 kB / 0.9549 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.8868, allocations: 15.89 kB / 0.955 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.8868, allocations: 6.484 kB / 0.955 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.967e-06/0.8868, allocations: 2.5 kB / 0.955 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.295e-05/0.8869, allocations: 77.88 kB / 0.955 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8869, allocations: 0 / 0.955 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002573/0.8871, allocations: 36.92 kB / 0.9551 GB, free: 3.992 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.0002008/0.8873, allocations: 131.5 kB / 0.9552 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000366/0.8877, allocations: 79.22 kB / 0.9553 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.8877, allocations: 0 / 0.9553 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.8879, allocations: 52.61 kB / 0.9553 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.8881, allocations: 10.19 kB / 0.9553 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005735/0.8886, allocations: 186.2 kB / 0.9555 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.8888, allocations: 0.6829 MB / 0.9562 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001085/0.8889, allocations: 15.44 kB / 0.9562 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.8889, allocations: 11.59 kB / 0.9562 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.8889, allocations: 0 / 0.9562 GB, free: 2.957 MB / 0.7169 GB Notification: Performance of Templates: time 0.003095/0.892, allocations: 1.132 MB / 0.9573 GB, free: 2.363 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