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.005588/0.005588, allocations: 102.1 kB / 15.73 MB, free: 6.031 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.001095/0.001095, allocations: 193.8 kB / 16.67 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 4.188 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.377/2.377, allocations: 390.2 MB / 0.6648 GB, free: 160 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 63.72 kB / 0.9509 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3011, allocations: 140.4 MB / 1.088 GB, free: 1.469 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001844/0.3029, allocations: 0.7793 MB / 1.089 GB, free: 0.6914 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001694/0.3046, allocations: 1.479 MB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.687e-05/0.3047, allocations: 4 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.3047, allocations: 7.938 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.591e-05/0.3048, allocations: 3.938 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004997/0.3053, allocations: 139.4 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.386e-05/0.3054, allocations: 59.59 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.188e-05/0.3055, allocations: 4 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.709e-05/0.3055, allocations: 35.89 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.444e-05/0.3056, allocations: 23.91 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.3056, allocations: 4 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004348/0.3061, allocations: 323.3 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.207e-05/0.3061, allocations: 19.92 kB / 1.091 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.148e-05/0.3061, allocations: 23.84 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002951/0.3064, allocations: 211.6 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3065, allocations: 4 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3065, allocations: 4 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.3065, allocations: 0 / 1.091 GB, free: 14.34 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.0006343/0.3071, allocations: 395.3 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.3072, allocations: 12.03 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004474/0.3076, allocations: 72.75 kB / 1.091 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.918e-05/0.3077, allocations: 164.3 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.3078, allocations: 8.375 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.3078, allocations: 8.375 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00034/0.3081, allocations: 115.5 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.3082, allocations: 4 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.3082, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3082, allocations: 0 / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.3086, allocations: 103.9 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/0.3092, allocations: 340.5 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005779/0.3098, allocations: 154.4 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002126/0.31, allocations: 56.81 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.838e-05/0.31, allocations: 3.938 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.388e-05/0.31, allocations: 34.56 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.31, allocations: 3.938 kB / 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.01742/0.3275, allocations: 2.834 MB / 1.095 GB, free: 9.809 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.536e-05/0.3275, allocations: 59.34 kB / 1.095 GB, free: 9.738 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.758e-05/0.3276, allocations: 101.8 kB / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.3277, allocations: 29.7 kB / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.732e-05/0.3277, allocations: 80.14 kB / 1.095 GB, free: 9.512 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.826e-05/0.3278, allocations: 43.45 kB / 1.095 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.328, allocations: 65.48 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.514e-05/0.3281, allocations: 322.8 kB / 1.096 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006078/0.3287, allocations: 195.8 kB / 1.096 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005934/0.3293, allocations: 187.8 kB / 1.096 GB, free: 8.699 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001211/0.3305, allocations: 398.8 kB / 1.097 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.3305, allocations: 4 kB / 1.097 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001392/0.3319, allocations: 469.2 kB / 1.097 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.3319, allocations: 4 kB / 1.097 GB, free: 7.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.3319, allocations: 4 kB / 1.097 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.332, allocations: 0 / 1.097 GB, free: 7.832 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008256/0.3328, allocations: 107.8 kB / 1.097 GB, free: 7.727 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.3328, allocations: 7.922 kB / 1.097 GB, free: 7.719 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005928/0.3334, allocations: 51.88 kB / 1.097 GB, free: 7.668 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.431e-05/0.3335, allocations: 23.94 kB / 1.097 GB, free: 7.645 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.0001422/0.3336, allocations: 117.8 kB / 1.097 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.046e-05/0.3337, allocations: 7.906 kB / 1.097 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.31e-05/0.3338, allocations: 11.97 kB / 1.097 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3338, allocations: 3.984 kB / 1.097 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.3338, allocations: 7.938 kB / 1.097 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3338, allocations: 0 / 1.097 GB, free: 7.484 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.3358, allocations: 1.043 MB / 1.098 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3358, allocations: 0 / 1.098 GB, free: 6.336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008055/0.3366, allocations: 103.8 kB / 1.098 GB, free: 6.234 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.3366, allocations: 7.938 kB / 1.099 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.091e-05/0.3367, allocations: 27.92 kB / 1.099 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3367, allocations: 1.016 kB / 1.099 GB, free: 6.199 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3367, allocations: 3.938 kB / 1.099 GB, free: 6.195 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.3388, allocations: 0.7919 MB / 1.099 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001283/0.3389, allocations: 116.9 kB / 1.099 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.906e-05/0.339, allocations: 8 kB / 1.099 GB, free: 5.246 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006496/0.3397, allocations: 44.09 kB / 1.099 GB, free: 5.203 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.279e-05/0.3398, allocations: 31.86 kB / 1.099 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.239e-05/0.3398, allocations: 27.94 kB / 1.1 GB, free: 5.145 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.017e-05/0.3399, allocations: 83.27 kB / 1.1 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3399, allocations: 0 / 1.1 GB, free: 5.062 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003549/0.3403, allocations: 56 kB / 1.1 GB, free: 5.008 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.0002061/0.3405, allocations: 103.2 kB / 1.1 GB, free: 4.898 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001325/0.3418, allocations: 437.4 kB / 1.1 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3418, allocations: 4 kB / 1.1 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0006543/0.3425, allocations: 219.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.0003666/0.3428, allocations: 9.547 kB / 1.1 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004073/0.3469, allocations: 0.7557 MB / 1.101 GB, free: 3.465 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002221/0.3472, allocations: 0.6929 MB / 1.102 GB, free: 2.746 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0004621/0.3476, allocations: 89 kB / 1.102 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.3479, allocations: 55.3 kB / 1.102 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.3479, allocations: 0 / 1.102 GB, free: 2.605 MB / 0.8575 GB Notification: Performance of Templates: time 0.006137/0.354, allocations: 3.579 MB / 1.105 GB, free: 15.02 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