Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001363/0.001363, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 199.1 kB / 16.79 MB, free: 6.809 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.419/1.419, allocations: 222.9 MB / 240.5 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.669/2.669, allocations: 461.8 MB / 0.7348 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001207, allocations: 66.47 kB / 0.8991 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2954/0.2967, allocations: 157.4 MB / 1.053 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002163/0.2989, allocations: 0.8527 MB / 1.054 GB, free: 7.496 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001775/0.3007, allocations: 1.501 MB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.24e-05/0.3007, allocations: 0 / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.375e-05/0.3008, allocations: 0 / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.118e-05/0.3008, allocations: 3.938 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.3012, allocations: 115.7 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.047e-05/0.3013, allocations: 51.84 kB / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.424e-05/0.3014, allocations: 0 / 1.055 GB, free: 5.809 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.367e-05/0.3014, allocations: 27.91 kB / 1.055 GB, free: 5.781 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.523e-05/0.3015, allocations: 35.89 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.3015, allocations: 4 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004075/0.302, allocations: 323.3 kB / 1.056 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.044e-05/0.302, allocations: 15.92 kB / 1.056 GB, free: 5.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.725e-05/0.302, allocations: 23.86 kB / 1.056 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002208/0.3022, allocations: 143.8 kB / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3023, allocations: 0 / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.92e-07/0.3023, allocations: 0 / 1.056 GB, free: 5.246 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.837e-06/0.3023, allocations: 0 / 1.056 GB, free: 5.246 MB / 0.8106 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.0006467/0.3029, allocations: 399.7 kB / 1.056 GB, free: 4.809 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.303, allocations: 15.97 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004479/0.3034, allocations: 64.86 kB / 1.056 GB, free: 4.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.3036, allocations: 180.2 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.3036, allocations: 8.375 kB / 1.056 GB, free: 4.508 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.3037, allocations: 8.375 kB / 1.056 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004646/0.3041, allocations: 109.9 kB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.3041, allocations: 0 / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.3042, allocations: 0 / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.682e-06/0.3042, allocations: 4 kB / 1.057 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004557/0.3046, allocations: 99.89 kB / 1.057 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.3052, allocations: 344.6 kB / 1.057 GB, free: 3.898 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005875/0.3058, allocations: 150.5 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.3061, allocations: 64.69 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.3061, allocations: 4 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3061, allocations: 34.55 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.123e-06/0.3061, allocations: 0 / 1.057 GB, free: 3.629 MB / 0.8106 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.01834/0.3245, allocations: 2.832 MB / 1.06 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.3245, allocations: 55.34 kB / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.414e-05/0.3246, allocations: 97.84 kB / 1.06 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.234e-05/0.3247, allocations: 33.7 kB / 1.06 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.3248, allocations: 95.97 kB / 1.06 GB, free: 404 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 7.529e-05/0.3248, allocations: 43.44 kB / 1.06 GB, free: 360 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.325, allocations: 65.58 kB / 1.06 GB, free: 288 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.3252, allocations: 314.8 kB / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006638/0.3258, allocations: 195.8 kB / 1.061 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006422/0.3265, allocations: 191.8 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001299/0.3278, allocations: 392.4 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3278, allocations: 3.984 kB / 1.061 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001563/0.3294, allocations: 484.2 kB / 1.062 GB, free: 14.72 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.3294, allocations: 4.094 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3294, allocations: 7.938 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.351e-05/0.3295, allocations: 0 / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008672/0.3303, allocations: 107.7 kB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.3304, allocations: 3.938 kB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006337/0.331, allocations: 51.94 kB / 1.062 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.845e-05/0.3311, allocations: 23.94 kB / 1.062 GB, free: 14.52 MB / 0.8262 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.0001849/0.3313, allocations: 113.8 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.929e-05/0.3314, allocations: 7.906 kB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.741e-05/0.3314, allocations: 11.97 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.3314, allocations: 4 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3314, allocations: 3.938 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3315, allocations: 0 / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3337, allocations: 1.043 MB / 1.063 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3337, allocations: 0 / 1.063 GB, free: 13.22 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008385/0.3345, allocations: 107.8 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.3345, allocations: 7.938 kB / 1.063 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.832e-05/0.3346, allocations: 23.94 kB / 1.063 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3346, allocations: 0 / 1.063 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3346, allocations: 0 / 1.063 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.3369, allocations: 0.7955 MB / 1.064 GB, free: 12.27 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000138/0.3371, allocations: 117 kB / 1.064 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.858e-05/0.3371, allocations: 4 kB / 1.064 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006796/0.3378, allocations: 51.98 kB / 1.064 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.791e-05/0.3379, allocations: 19.94 kB / 1.064 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.058e-05/0.338, allocations: 31.92 kB / 1.064 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.182e-05/0.338, allocations: 79.28 kB / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.338, allocations: 0 / 1.064 GB, free: 11.95 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003766/0.3384, allocations: 52 kB / 1.064 GB, free: 11.9 MB / 0.8262 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.0002468/0.3387, allocations: 119.2 kB / 1.065 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001391/0.3401, allocations: 419.5 kB / 1.065 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3401, allocations: 0 / 1.065 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0006907/0.3408, allocations: 223.7 kB / 1.065 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.3412, allocations: 15.98 kB / 1.065 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004209/0.3454, allocations: 0.8097 MB / 1.066 GB, free: 10.29 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.3457, allocations: 0.6927 MB / 1.067 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/0.3461, allocations: 79.23 kB / 1.067 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of SimCode: time 5.1e-07/0.3461, allocations: 0 / 1.067 GB, free: 9.492 MB / 0.8262 GB Notification: Performance of Templates: time 0.005469/0.3516, allocations: 3.773 MB / 1.07 GB, free: 5.707 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)