Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001783/0.001783, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001929/0.001929, allocations: 195.5 kB / 16.14 MB, free: 6.637 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.445/1.445, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.749/2.749, allocations: 437 MB / 0.71 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 75.88 kB / 0.8686 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6484/0.6504, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002241/0.6527, allocations: 0.8488 MB / 1.017 GB, free: 1.898 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002093/0.6548, allocations: 1.497 MB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.338e-05/0.6548, allocations: 3.938 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.175e-05/0.6549, allocations: 0 / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.219e-05/0.6549, allocations: 4 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004896/0.6554, allocations: 115.7 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.453e-05/0.6555, allocations: 51.84 kB / 1.019 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.184e-05/0.6556, allocations: 7.984 kB / 1.019 GB, free: 208 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 8.383e-05/0.6557, allocations: 23.92 kB / 1.019 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.32e-05/0.6557, allocations: 31.89 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.016e-05/0.6558, allocations: 4 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.6562, allocations: 315.3 kB / 1.019 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.317e-05/0.6563, allocations: 15.92 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.842e-05/0.6563, allocations: 23.92 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.6567, allocations: 207.5 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.6567, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.41e-07/0.6567, allocations: 4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.6567, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 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.0007165/0.6574, allocations: 401.4 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.6575, allocations: 12.03 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000493/0.658, allocations: 68.84 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.6581, allocations: 176.2 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.331e-05/0.6582, allocations: 8.375 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.467e-05/0.6582, allocations: 4.375 kB / 1.02 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004088/0.6586, allocations: 111.2 kB / 1.02 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.6587, allocations: 4 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.6587, allocations: 4 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.6587, allocations: 3.938 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000495/0.6592, allocations: 103.9 kB / 1.021 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006014/0.6598, allocations: 328.6 kB / 1.021 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006697/0.6605, allocations: 158.4 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.6607, allocations: 56.81 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.6608, allocations: 3.984 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.6608, allocations: 38.66 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.6608, allocations: 0 / 1.021 GB, free: 13.98 MB / 0.7794 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.01985/0.6807, allocations: 2.833 MB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.6808, allocations: 59.28 kB / 1.024 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.726e-05/0.6809, allocations: 109.9 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.294e-05/0.6809, allocations: 29.64 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.345e-05/0.681, allocations: 88.05 kB / 1.024 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.911e-05/0.6811, allocations: 39.39 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000185/0.6813, allocations: 69.58 kB / 1.024 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001524/0.6814, allocations: 322.8 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000705/0.6821, allocations: 191.8 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006801/0.6828, allocations: 193.4 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.6842, allocations: 392.5 kB / 1.025 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.6842, allocations: 0 / 1.025 GB, free: 9.543 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001658/0.6859, allocations: 482.1 kB / 1.026 GB, free: 9.066 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.6859, allocations: 4 kB / 1.026 GB, free: 9.062 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.6859, allocations: 4 kB / 1.026 GB, free: 9.059 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.774e-05/0.686, allocations: 3.984 kB / 1.026 GB, free: 9.055 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009092/0.6869, allocations: 107.8 kB / 1.026 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.6869, allocations: 3.938 kB / 1.026 GB, free: 8.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006867/0.6876, allocations: 43.94 kB / 1.026 GB, free: 8.902 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-05/0.6877, allocations: 27.94 kB / 1.026 GB, free: 8.875 MB / 0.7794 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.0001726/0.6878, allocations: 117.8 kB / 1.026 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.884e-05/0.6879, allocations: 7.906 kB / 1.026 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.684e-05/0.688, allocations: 11.95 kB / 1.026 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.688, allocations: 0 / 1.026 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.688, allocations: 3.938 kB / 1.026 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.688, allocations: 4 kB / 1.026 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.6904, allocations: 1.047 MB / 1.027 GB, free: 7.562 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.6904, allocations: 3.938 kB / 1.027 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008887/0.6913, allocations: 111.8 kB / 1.027 GB, free: 7.449 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.6913, allocations: 3.938 kB / 1.027 GB, free: 7.445 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.265e-05/0.6914, allocations: 23.94 kB / 1.027 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.6914, allocations: 0 / 1.027 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.6914, allocations: 0 / 1.027 GB, free: 7.422 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.6938, allocations: 0.7956 MB / 1.028 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.694, allocations: 117 kB / 1.028 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.167e-05/0.6941, allocations: 0 / 1.028 GB, free: 6.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007441/0.6948, allocations: 52 kB / 1.028 GB, free: 6.426 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.695, allocations: 31.86 kB / 1.028 GB, free: 6.395 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/0.695, allocations: 23.92 kB / 1.028 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.773e-05/0.6951, allocations: 79.28 kB / 1.028 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6951, allocations: 0 / 1.028 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003883/0.6955, allocations: 56 kB / 1.028 GB, free: 6.238 MB / 0.7794 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.0002145/0.6957, allocations: 115.8 kB / 1.028 GB, free: 6.117 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.001509/0.6972, allocations: 430.5 kB / 1.029 GB, free: 5.699 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6972, allocations: 4 kB / 1.029 GB, free: 5.695 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000757/0.698, allocations: 227.7 kB / 1.029 GB, free: 5.473 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.6984, allocations: 5.078 kB / 1.029 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/0.7028, allocations: 0.7809 MB / 1.03 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.7032, allocations: 0.6965 MB / 1.031 GB, free: 3.941 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0007158/0.7039, allocations: 96.64 kB / 1.031 GB, free: 3.848 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002788/0.7042, allocations: 51.31 kB / 1.031 GB, free: 3.797 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.7042, allocations: 0 / 1.031 GB, free: 3.797 MB / 0.7794 GB Notification: Performance of Templates: time 0.006518/0.7107, allocations: 3.321 MB / 1.034 GB, free: 476 kB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches