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.004603/0.004604, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.001134/0.001134, allocations: 188.9 kB / 16.67 MB, free: 5.973 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.451/2.451, allocations: 390.2 MB / 0.6648 GB, free: 108 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 64.69 kB / 0.9509 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3342, allocations: 140.4 MB / 1.088 GB, free: 1.449 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001587/0.3358, allocations: 0.5999 MB / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001723/0.3376, allocations: 1.452 MB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.505e-05/0.3376, allocations: 3.938 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.452e-05/0.3376, allocations: 7.938 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.336e-05/0.3376, allocations: 3.938 kB / 1.09 GB, free: 15.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004687/0.3381, allocations: 139.4 kB / 1.09 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.406e-05/0.3382, allocations: 27.97 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.758e-05/0.3382, allocations: 4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.293e-05/0.3383, allocations: 23.97 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.731e-05/0.3384, allocations: 23.91 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.3384, allocations: 4 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003963/0.3388, allocations: 319.3 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.728e-05/0.3388, allocations: 3.984 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.933e-05/0.3389, allocations: 15.92 kB / 1.091 GB, free: 14.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.3391, allocations: 179.7 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3391, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.087e-06/0.3392, allocations: 3.984 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3392, allocations: 0 / 1.091 GB, free: 14.64 MB / 0.8575 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.0005623/0.3397, allocations: 367.4 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.3398, allocations: 12.03 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000466/0.3402, allocations: 64.84 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.3404, allocations: 172.2 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/0.3404, allocations: 4.375 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.3404, allocations: 384 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.3407, allocations: 81.94 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.3407, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3407, allocations: 4 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3408, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000297/0.3411, allocations: 63.92 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.3413, allocations: 161.7 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005953/0.3419, allocations: 126.5 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001534/0.342, allocations: 40.92 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004401/0.3425, allocations: 157 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.627e-05/0.3425, allocations: 34.5 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.273e-06/0.3425, allocations: 4 kB / 1.092 GB, free: 13.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5): time 0.001187/0.3437, allocations: 406.3 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/0.3438, allocations: 51.41 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.258e-05/0.3438, allocations: 97.86 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.3439, allocations: 25.7 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.741e-05/0.3439, allocations: 80.14 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.3439, allocations: 23.73 kB / 1.093 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.276e-05/0.344, allocations: 21.84 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.3441, allocations: 318.8 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.3443, allocations: 31.97 kB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001403/0.3444, allocations: 39.91 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.3447, allocations: 84.92 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.3447, allocations: 0 / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003297/0.3451, allocations: 113.6 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.3451, allocations: 8 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.3451, allocations: 0 / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3451, allocations: 7.938 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.3452, allocations: 23.97 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.3453, allocations: 0 / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.22e-05/0.3454, allocations: 11.98 kB / 1.093 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.3454, allocations: 4 kB / 1.093 GB, free: 11.76 MB / 0.8575 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 7.862e-05/0.3455, allocations: 117.8 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.668e-05/0.3455, allocations: 7.844 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004142/0.3459, allocations: 133.1 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3459, allocations: 4 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3459, allocations: 4 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.3459, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001365/0.3461, allocations: 169.6 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3461, allocations: 0 / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.3462, allocations: 27.91 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3463, allocations: 3.938 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.3463, allocations: 4 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3463, allocations: 0 / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3463, allocations: 4 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005351/0.3468, allocations: 181.2 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.046e-05/0.3469, allocations: 89 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.3469, allocations: 8.031 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.347, allocations: 15.97 kB / 1.094 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.484e-05/0.3471, allocations: 8.062 kB / 1.094 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.3471, allocations: 4 kB / 1.094 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.044e-05/0.3471, allocations: 75.28 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.3471, allocations: 0 / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002196/0.3474, allocations: 35.98 kB / 1.094 GB, free: 10.79 MB / 0.8575 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.0002416/0.3476, allocations: 131.7 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003487/0.348, allocations: 84.02 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.348, allocations: 0 / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001622/0.3481, allocations: 43.97 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001532/0.3483, allocations: 4 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005807/0.3489, allocations: 201.2 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.3491, allocations: 0.6768 MB / 1.095 GB, free: 9.59 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 9.197e-05/0.3492, allocations: 16 kB / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.356e-05/0.3493, allocations: 11.44 kB / 1.095 GB, free: 9.562 MB / 0.8575 GB Notification: Performance of SimCode: time 2.5e-07/0.3493, allocations: 4 kB / 1.095 GB, free: 9.559 MB / 0.8575 GB Notification: Performance of Templates: time 0.003243/0.3525, allocations: 1.156 MB / 1.096 GB, free: 8.406 MB / 0.8575 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