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.008357/0.008357, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001116/0.001116, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.34 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.462/2.462, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 65.75 kB / 0.9509 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3217, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001939/0.3237, allocations: 0.7797 MB / 1.089 GB, free: 0.7031 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001877/0.3256, allocations: 1.483 MB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.587e-05/0.3256, allocations: 0 / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.579e-05/0.3257, allocations: 3.938 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.36e-05/0.3257, allocations: 4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005314/0.3263, allocations: 147.4 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001001/0.3264, allocations: 55.59 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.105e-05/0.3264, allocations: 8 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.865e-05/0.3265, allocations: 23.92 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.234e-05/0.3266, allocations: 35.88 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.3266, allocations: 11.94 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004307/0.3271, allocations: 311.4 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.3271, allocations: 15.92 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.03e-05/0.3271, allocations: 27.86 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.3275, allocations: 211.4 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3275, allocations: 7.984 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3275, allocations: 0 / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.3275, allocations: 0 / 1.091 GB, free: 14.36 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.0006646/0.3282, allocations: 410.8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.3282, allocations: 8.031 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004445/0.3286, allocations: 72.8 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.3288, allocations: 168.3 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.3288, allocations: 4.375 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.497e-05/0.3288, allocations: 8.375 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003664/0.3292, allocations: 113.9 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.3292, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.3293, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.3293, allocations: 3.984 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.3297, allocations: 103.8 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005507/0.3303, allocations: 332.7 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006244/0.3309, allocations: 158.4 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/0.3312, allocations: 60.78 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.3312, allocations: 160 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.3312, allocations: 42.55 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 8.52e-07/0.3312, allocations: 0 / 1.092 GB, free: 12.74 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.01723/0.3485, allocations: 2.829 MB / 1.095 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.3486, allocations: 59.34 kB / 1.095 GB, free: 9.746 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.488e-05/0.3487, allocations: 105.8 kB / 1.095 GB, free: 9.633 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.053e-05/0.3487, allocations: 29.7 kB / 1.095 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.3488, allocations: 92.03 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.263e-05/0.3489, allocations: 39.64 kB / 1.096 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.3491, allocations: 69.58 kB / 1.096 GB, free: 9.391 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3492, allocations: 314.8 kB / 1.096 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006874/0.3499, allocations: 195.7 kB / 1.096 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006751/0.3506, allocations: 195.8 kB / 1.096 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.3519, allocations: 392.7 kB / 1.097 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.352, allocations: 96 / 1.097 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001538/0.3535, allocations: 477.1 kB / 1.097 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.3535, allocations: 4 kB / 1.097 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.3536, allocations: 0 / 1.097 GB, free: 7.828 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.3536, allocations: 4 kB / 1.097 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008026/0.3544, allocations: 107.7 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.637e-06/0.3544, allocations: 3.938 kB / 1.097 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005798/0.355, allocations: 51.94 kB / 1.097 GB, free: 7.664 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-05/0.3551, allocations: 23.92 kB / 1.097 GB, free: 7.641 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.0001832/0.3552, allocations: 113.8 kB / 1.097 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.385e-05/0.3553, allocations: 11.89 kB / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.124e-05/0.3554, allocations: 11.97 kB / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3554, allocations: 0 / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.3554, allocations: 7.938 kB / 1.097 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3554, allocations: 0 / 1.097 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.3576, allocations: 1.047 MB / 1.098 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3577, allocations: 4 kB / 1.098 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007784/0.3584, allocations: 103.8 kB / 1.099 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.3585, allocations: 7.938 kB / 1.099 GB, free: 6.219 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.857e-05/0.3585, allocations: 23.92 kB / 1.099 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.3585, allocations: 0 / 1.099 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3585, allocations: 320 / 1.099 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.3608, allocations: 0.7972 MB / 1.099 GB, free: 5.383 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.361, allocations: 116.9 kB / 1.099 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.769e-05/0.3611, allocations: 7.984 kB / 1.099 GB, free: 5.242 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006503/0.3617, allocations: 48 kB / 1.099 GB, free: 5.195 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.394e-05/0.3618, allocations: 27.92 kB / 1.1 GB, free: 5.168 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.937e-05/0.3619, allocations: 23.94 kB / 1.1 GB, free: 5.145 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.408e-05/0.3619, allocations: 83.28 kB / 1.1 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.4e-07/0.3619, allocations: 0 / 1.1 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003888/0.3623, allocations: 51.94 kB / 1.1 GB, free: 5.012 MB / 0.8575 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.0002422/0.3626, allocations: 115.6 kB / 1.1 GB, free: 4.891 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001468/0.3641, allocations: 423.4 kB / 1.1 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3641, allocations: 0 / 1.1 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000731/0.3648, allocations: 227.7 kB / 1.1 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.3652, allocations: 15.92 kB / 1.1 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/0.3693, allocations: 0.7477 MB / 1.101 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002784/0.3696, allocations: 0.6967 MB / 1.102 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0005128/0.3702, allocations: 92.66 kB / 1.102 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.3704, allocations: 55.3 kB / 1.102 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of SimCode: time 6.71e-07/0.3704, allocations: 3.938 kB / 1.102 GB, free: 2.594 MB / 0.8575 GB Notification: Performance of Templates: time 0.006403/0.3768, allocations: 3.479 MB / 1.105 GB, free: 15.11 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