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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.006638/0.006638, allocations: 102 kB / 15.73 MB, free: 6.051 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.00142/0.00142, allocations: 195 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.422/1.422, 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 11.0.1-master/package.mo): time 2.795/2.795, allocations: 461.9 MB / 0.7348 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 64.12 kB / 1.054 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3471, allocations: 157.4 MB / 1.208 GB, free: 9.629 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002197/0.3493, allocations: 0.7913 MB / 1.209 GB, free: 8.836 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001831/0.3511, allocations: 1.478 MB / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.71e-05/0.3512, allocations: 0 / 1.21 GB, free: 7.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.149e-05/0.3513, allocations: 3.938 kB / 1.21 GB, free: 7.336 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.388e-05/0.3513, allocations: 7.938 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005071/0.3518, allocations: 141.6 kB / 1.21 GB, free: 7.191 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.866e-05/0.3519, allocations: 47.91 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.607e-05/0.352, allocations: 4 kB / 1.21 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 8.824e-05/0.3521, allocations: 35.89 kB / 1.21 GB, free: 7.105 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.078e-05/0.3521, allocations: 27.91 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.766e-05/0.3522, allocations: 4 kB / 1.21 GB, free: 7.074 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004254/0.3526, allocations: 323.3 kB / 1.211 GB, free: 6.758 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.3526, allocations: 11.94 kB / 1.211 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.612e-05/0.3527, allocations: 27.8 kB / 1.211 GB, free: 6.719 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.353, allocations: 215.6 kB / 1.211 GB, free: 6.508 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.353, allocations: 4 kB / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.984e-06/0.353, allocations: 0 / 1.211 GB, free: 6.504 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.051e-06/0.353, allocations: 0 / 1.211 GB, free: 6.504 MB / 0.9669 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.0007065/0.3537, allocations: 399.3 kB / 1.211 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.3538, allocations: 12.62 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004554/0.3542, allocations: 72.75 kB / 1.211 GB, free: 5.984 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.3544, allocations: 168.3 kB / 1.211 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.3544, allocations: 4.375 kB / 1.211 GB, free: 5.777 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.505e-05/0.3544, allocations: 4.375 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003807/0.3548, allocations: 125.8 kB / 1.212 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3548, allocations: 3.906 kB / 1.212 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.3549, allocations: 0 / 1.212 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3549, allocations: 0 / 1.212 GB, free: 5.641 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004809/0.3554, allocations: 103.9 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005883/0.356, allocations: 336.6 kB / 1.212 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006365/0.3566, allocations: 162.4 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002344/0.3568, allocations: 48.81 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.3569, allocations: 4 kB / 1.212 GB, free: 4.938 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.3569, allocations: 38.56 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3569, allocations: 0 / 1.212 GB, free: 4.891 MB / 0.9669 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.01762/0.3745, allocations: 2.835 MB / 1.215 GB, free: 1.961 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.972e-05/0.3746, allocations: 55.34 kB / 1.215 GB, free: 1.895 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.531e-05/0.3747, allocations: 109.8 kB / 1.215 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.3748, allocations: 29.7 kB / 1.215 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.336e-05/0.3748, allocations: 84.05 kB / 1.215 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.754e-05/0.3749, allocations: 39.45 kB / 1.215 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001652/0.3751, allocations: 65.58 kB / 1.215 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.3752, allocations: 322.8 kB / 1.216 GB, free: 1.223 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/0.3758, allocations: 183.8 kB / 1.216 GB, free: 1.043 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006442/0.3765, allocations: 199.8 kB / 1.216 GB, free: 0.8477 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.3778, allocations: 389.9 kB / 1.216 GB, free: 476 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3778, allocations: 0 / 1.216 GB, free: 476 kB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001518/0.3793, allocations: 487.4 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.3794, allocations: 4 kB / 1.217 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3794, allocations: 4.094 kB / 1.217 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.3794, allocations: 3.938 kB / 1.217 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007912/0.3802, allocations: 107.8 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.3802, allocations: 3.938 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000587/0.3808, allocations: 47.88 kB / 1.217 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-05/0.3809, allocations: 28.94 kB / 1.217 GB, free: 15.79 MB / 0.9825 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.0001363/0.381, allocations: 117.8 kB / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.393e-05/0.3811, allocations: 4 kB / 1.217 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.961e-05/0.3812, allocations: 11.97 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.3812, allocations: 0 / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.3812, allocations: 7.875 kB / 1.217 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3812, allocations: 7.984 kB / 1.217 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.3834, allocations: 1.039 MB / 1.218 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3834, allocations: 0 / 1.218 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008073/0.3842, allocations: 107.7 kB / 1.218 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.3843, allocations: 7.938 kB / 1.218 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.556e-05/0.3843, allocations: 23.92 kB / 1.218 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3843, allocations: 0 / 1.218 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.3843, allocations: 0 / 1.218 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002318/0.3867, allocations: 0.7917 MB / 1.219 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001546/0.3868, allocations: 120.8 kB / 1.219 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/0.3869, allocations: 4 kB / 1.219 GB, free: 13.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006612/0.3876, allocations: 48 kB / 1.219 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.991e-05/0.3877, allocations: 27.92 kB / 1.219 GB, free: 13.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.576e-05/0.3877, allocations: 23.94 kB / 1.219 GB, free: 13.29 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.8e-05/0.3878, allocations: 83.27 kB / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3878, allocations: 0 / 1.219 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003721/0.3882, allocations: 52 kB / 1.219 GB, free: 13.16 MB / 0.9825 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.0002104/0.3884, allocations: 116.7 kB / 1.22 GB, free: 13.04 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00145/0.3898, allocations: 419.5 kB / 1.22 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3898, allocations: 4 kB / 1.22 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0007277/0.3906, allocations: 232 kB / 1.22 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.3909, allocations: 8.219 kB / 1.22 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004256/0.3952, allocations: 0.7635 MB / 1.221 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.3955, allocations: 0.6889 MB / 1.222 GB, free: 10.89 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0004983/0.396, allocations: 92.67 kB / 1.222 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.3962, allocations: 55.3 kB / 1.222 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of SimCode: time 4.91e-07/0.3962, allocations: 0 / 1.222 GB, free: 10.74 MB / 0.9825 GB Notification: Performance of Templates: time 0.006443/0.4027, allocations: 3.583 MB / 1.225 GB, free: 7.16 MB / 0.9825 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) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches