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.00828/0.00828, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001997/0.001997, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.427/1.427, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.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.486/2.486, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.91 kB / 1.019 GB, free: 9.332 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9241/0.9252, allocations: 151.6 MB / 1.167 GB, free: 3.797 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002111/0.9274, allocations: 0.7901 MB / 1.167 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001894/0.9293, allocations: 1.464 MB / 1.169 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.371e-05/0.9294, allocations: 0 / 1.169 GB, free: 1.527 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.503e-05/0.9294, allocations: 3.938 kB / 1.169 GB, free: 1.523 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.867e-05/0.9295, allocations: 7.938 kB / 1.169 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005133/0.93, allocations: 143.4 kB / 1.169 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.9301, allocations: 51.89 kB / 1.169 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.518e-05/0.9302, allocations: 7.984 kB / 1.169 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.343e-05/0.9303, allocations: 31.92 kB / 1.169 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.342e-05/0.9303, allocations: 23.91 kB / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.9304, allocations: 4 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004707/0.9308, allocations: 327.3 kB / 1.169 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.61e-05/0.9309, allocations: 15.92 kB / 1.169 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.503e-05/0.9309, allocations: 23.91 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.9313, allocations: 211.9 kB / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.9313, allocations: 0 / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9313, allocations: 0 / 1.17 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.9313, allocations: 4 kB / 1.17 GB, free: 0.6914 MB / 0.8887 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.0006873/0.932, allocations: 402.9 kB / 1.17 GB, free: 256 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.932, allocations: 16.86 kB / 1.17 GB, free: 240 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004601/0.9325, allocations: 72.78 kB / 1.17 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.9326, allocations: 164.3 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.627e-05/0.9327, allocations: 8.375 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.9327, allocations: 16.3 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.9331, allocations: 111.5 kB / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.9331, allocations: 0 / 1.17 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.9331, allocations: 4 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.9331, allocations: 0 / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000476/0.9336, allocations: 103.9 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006076/0.9342, allocations: 336.6 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/0.9349, allocations: 162.4 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.9351, allocations: 56.81 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.9352, allocations: 4 kB / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.9352, allocations: 30.56 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.9352, allocations: 0 / 1.171 GB, free: 15.07 MB / 0.9044 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.01735/0.9526, allocations: 2.844 MB / 1.174 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.9526, allocations: 59.34 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.442e-05/0.9527, allocations: 101.8 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.9528, allocations: 33.7 kB / 1.174 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.558e-05/0.9528, allocations: 84.09 kB / 1.174 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.76e-05/0.9529, allocations: 43.67 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.9531, allocations: 65.58 kB / 1.174 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.9532, allocations: 322.8 kB / 1.175 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006679/0.9539, allocations: 187.9 kB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006418/0.9545, allocations: 199.8 kB / 1.175 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.9559, allocations: 389.8 kB / 1.175 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.9559, allocations: 0 / 1.175 GB, free: 10.63 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001513/0.9574, allocations: 482.5 kB / 1.176 GB, free: 10.16 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.9574, allocations: 4 kB / 1.176 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.9574, allocations: 1.016 kB / 1.176 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.9575, allocations: 0 / 1.176 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007795/0.9582, allocations: 111.8 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.9583, allocations: 3.938 kB / 1.176 GB, free: 10.04 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005364/0.9588, allocations: 47.94 kB / 1.176 GB, free: 9.992 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.524e-05/0.9589, allocations: 23.94 kB / 1.176 GB, free: 9.969 MB / 0.9044 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.0001426/0.959, allocations: 121.7 kB / 1.176 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.384e-05/0.9591, allocations: 3.953 kB / 1.176 GB, free: 9.836 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.384e-05/0.9592, allocations: 20.05 kB / 1.176 GB, free: 9.812 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.9592, allocations: 3.938 kB / 1.176 GB, free: 9.809 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.9592, allocations: 3.938 kB / 1.176 GB, free: 9.805 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.9592, allocations: 3.938 kB / 1.176 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.9614, allocations: 1.035 MB / 1.177 GB, free: 8.656 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.9614, allocations: 0 / 1.177 GB, free: 8.656 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.9622, allocations: 111.7 kB / 1.177 GB, free: 8.547 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.9622, allocations: 3.938 kB / 1.177 GB, free: 8.543 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.035e-05/0.9623, allocations: 27.94 kB / 1.177 GB, free: 8.516 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.9623, allocations: 0 / 1.177 GB, free: 8.516 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.9623, allocations: 0 / 1.177 GB, free: 8.516 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002343/0.9646, allocations: 0.7878 MB / 1.178 GB, free: 7.711 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.9648, allocations: 121 kB / 1.178 GB, free: 7.574 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.284e-05/0.9648, allocations: 4 kB / 1.178 GB, free: 7.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006032/0.9655, allocations: 48 kB / 1.178 GB, free: 7.523 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.972e-05/0.9656, allocations: 27.92 kB / 1.178 GB, free: 7.496 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.472e-05/0.9656, allocations: 19.94 kB / 1.178 GB, free: 7.477 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 5.197e-05/0.9657, allocations: 87.45 kB / 1.178 GB, free: 7.391 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9657, allocations: 0 / 1.178 GB, free: 7.391 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003533/0.966, allocations: 52 kB / 1.178 GB, free: 7.34 MB / 0.9044 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.0002579/0.9663, allocations: 123.2 kB / 1.178 GB, free: 7.211 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001462/0.9678, allocations: 423.5 kB / 1.179 GB, free: 6.797 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.409e-06/0.9678, allocations: 0 / 1.179 GB, free: 6.797 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007381/0.9685, allocations: 231.7 kB / 1.179 GB, free: 6.57 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003953/0.9689, allocations: 12.56 kB / 1.179 GB, free: 6.559 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004013/0.973, allocations: 0.7526 MB / 1.18 GB, free: 5.781 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.9733, allocations: 0.6923 MB / 1.181 GB, free: 5.062 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0005235/0.9738, allocations: 100.6 kB / 1.181 GB, free: 4.965 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002472/0.9741, allocations: 51.31 kB / 1.181 GB, free: 4.914 MB / 0.9044 GB Notification: Performance of SimCode: time 4.81e-07/0.9741, allocations: 0 / 1.181 GB, free: 4.914 MB / 0.9044 GB Notification: Performance of Templates: time 0.007358/0.9814, allocations: 3.479 MB / 1.184 GB, free: 1.434 MB / 0.9044 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=480 -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