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.007819/0.00782, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001677/0.001677, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.269/2.269, allocations: 390.2 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 63.89 kB / 0.9509 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.947/0.9482, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001908/0.9502, allocations: 0.7715 MB / 1.089 GB, free: 5.039 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001731/0.9519, allocations: 1.482 MB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.952, allocations: 0 / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.728e-05/0.952, allocations: 0.8125 kB / 1.09 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.658e-05/0.9521, allocations: 4.688 kB / 1.09 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.9526, allocations: 144.9 kB / 1.09 GB, free: 3.887 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.9527, allocations: 60.08 kB / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.725e-05/0.9528, allocations: 4.797 kB / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.703e-05/0.9529, allocations: 24.27 kB / 1.09 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.751e-05/0.953, allocations: 34.97 kB / 1.09 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.953, allocations: 7.719 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005468/0.9535, allocations: 318.1 kB / 1.091 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.729e-05/0.9536, allocations: 17.73 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.225e-05/0.9536, allocations: 26.42 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.954, allocations: 208 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.954, allocations: 1.656 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.823e-06/0.954, allocations: 0 / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.062e-05/0.954, allocations: 0 / 1.091 GB, free: 3.66 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000604/0.9546, allocations: 403.2 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.9547, allocations: 10.09 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004585/0.9552, allocations: 76.17 kB / 1.091 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.035e-05/0.9553, allocations: 176.8 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.9553, allocations: 7.875 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.9553, allocations: 5.562 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003629/0.9557, allocations: 115.6 kB / 1.092 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.9557, allocations: 0 / 1.092 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.9557, allocations: 5.547 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.9557, allocations: 1.406 kB / 1.092 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004742/0.9562, allocations: 102.7 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005367/0.9568, allocations: 330.8 kB / 1.092 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006191/0.9574, allocations: 154.7 kB / 1.092 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.9576, allocations: 55.08 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.9577, allocations: 1.281 kB / 1.092 GB, free: 2.613 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.9577, allocations: 40.95 kB / 1.092 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.523e-06/0.9577, allocations: 3.938 kB / 1.092 GB, free: 2.562 MB / 0.8575 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.01832/0.976, allocations: 2.842 MB / 1.095 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.9761, allocations: 56.59 kB / 1.095 GB, free: 1.652 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.029e-05/0.9762, allocations: 102.3 kB / 1.095 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.9762, allocations: 25.7 kB / 1.095 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.326e-05/0.9763, allocations: 95.98 kB / 1.095 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.537e-05/0.9763, allocations: 35.72 kB / 1.095 GB, free: 1.398 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/0.9766, allocations: 73.47 kB / 1.096 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.193e-05/0.9766, allocations: 318.7 kB / 1.096 GB, free: 1.055 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007436/0.9774, allocations: 188.2 kB / 1.096 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007245/0.9781, allocations: 199.7 kB / 1.096 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/0.9795, allocations: 399.8 kB / 1.097 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.9795, allocations: 0 / 1.097 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001603/0.9811, allocations: 472.7 kB / 1.097 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.9812, allocations: 6.391 kB / 1.097 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.9812, allocations: 0 / 1.097 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.9812, allocations: 0.7188 kB / 1.097 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008528/0.9821, allocations: 110.8 kB / 1.097 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.9821, allocations: 5.547 kB / 1.097 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005797/0.9827, allocations: 45.45 kB / 1.097 GB, free: 0.707 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.151e-05/0.9827, allocations: 28 kB / 1.097 GB, free: 0.7031 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 (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.00012/0.9829, allocations: 113 kB / 1.097 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.773e-05/0.983, allocations: 7.891 kB / 1.097 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.259e-05/0.983, allocations: 14.38 kB / 1.097 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.983, allocations: 1.312 kB / 1.097 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.983, allocations: 4.969 kB / 1.097 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.9831, allocations: 0.6562 kB / 1.097 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.9853, allocations: 1.05 MB / 1.098 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.9853, allocations: 1.156 kB / 1.098 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008164/0.9862, allocations: 105.8 kB / 1.099 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.9862, allocations: 3.938 kB / 1.099 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.299e-05/0.9863, allocations: 23.09 kB / 1.099 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.9863, allocations: 4 kB / 1.099 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.9863, allocations: 2.094 kB / 1.099 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002442/0.9887, allocations: 0.7908 MB / 1.099 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001823/0.9889, allocations: 117.6 kB / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.37e-05/0.989, allocations: 1.438 kB / 1.099 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006527/0.9896, allocations: 51.77 kB / 1.099 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.9898, allocations: 30.94 kB / 1.1 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.532e-05/0.9898, allocations: 30.81 kB / 1.1 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.928e-05/0.9899, allocations: 83.67 kB / 1.1 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1e-07/0.9899, allocations: 1.094 kB / 1.1 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005539/0.9905, allocations: 51.34 kB / 1.1 GB, free: 15.35 MB / 0.8731 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.0002527/0.9907, allocations: 118.9 kB / 1.1 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001571/0.9923, allocations: 423.4 kB / 1.1 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.9923, allocations: 1.031 kB / 1.1 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0008526/0.9932, allocations: 222 kB / 1.1 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004046/0.9936, allocations: 20.91 kB / 1.1 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.998, allocations: 0.7504 MB / 1.101 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/0.9983, allocations: 0.6909 MB / 1.102 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0004722/0.9988, allocations: 90.34 kB / 1.102 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002617/0.999, allocations: 57.92 kB / 1.102 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of SimCode: time 1.232e-06/0.9991, allocations: 3.938 kB / 1.102 GB, free: 14.12 MB / 0.8731 GB Notification: Performance of Templates: time 0.008541/1.008, allocations: 3.469 MB / 1.105 GB, free: 13.91 MB / 0.8731 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