Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.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.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00789/0.00789, allocations: 96.8 kB / 15.73 MB, free: 5.547 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.001761/0.001761, allocations: 190 kB / 16.67 MB, free: 5.48 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.439/2.439, allocations: 437 MB / 0.7105 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 67.91 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.838/0.8393, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001812/0.8412, allocations: 0.606 MB / 1.167 GB, free: 3.238 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001872/0.843, allocations: 1.451 MB / 1.169 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.451e-05/0.8431, allocations: 4 kB / 1.169 GB, free: 1.77 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.759e-05/0.8431, allocations: 3.938 kB / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 2.409e-05/0.8431, allocations: 0 / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000454/0.8436, allocations: 139.4 kB / 1.169 GB, free: 1.629 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 6.61e-05/0.8437, allocations: 23.98 kB / 1.169 GB, free: 1.605 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.119e-05/0.8437, allocations: 7.984 kB / 1.169 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.806e-05/0.8438, allocations: 19.92 kB / 1.169 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.95e-05/0.8439, allocations: 19.97 kB / 1.169 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.8439, allocations: 4 kB / 1.169 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004269/0.8443, allocations: 319.3 kB / 1.169 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.8443, allocations: 7.938 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.446e-05/0.8444, allocations: 7.984 kB / 1.169 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002868/0.8447, allocations: 192 kB / 1.169 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.8447, allocations: 0 / 1.169 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.473e-06/0.8447, allocations: 4 kB / 1.169 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.8447, allocations: 0 / 1.169 GB, free: 1.039 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000525/0.8452, allocations: 367.1 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.8453, allocations: 8.625 kB / 1.17 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004614/0.8457, allocations: 68.84 kB / 1.17 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.8459, allocations: 172.3 kB / 1.17 GB, free: 360 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/0.8459, allocations: 4.375 kB / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.492e-05/0.8459, allocations: 4.375 kB / 1.17 GB, free: 352 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002509/0.8462, allocations: 81.92 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.8462, allocations: 0 / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.494e-05/0.8462, allocations: 0 / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.8463, allocations: 4 kB / 1.17 GB, free: 260 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.8465, allocations: 63.88 kB / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002283/0.8468, allocations: 181.6 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005967/0.8474, allocations: 122.5 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001595/0.8476, allocations: 44.92 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004621/0.848, allocations: 153 kB / 1.171 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.8481, allocations: 34.5 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=4): time 1.163e-06/0.8481, allocations: 4 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of matching and sorting (n=5): time 0.001109/0.8492, allocations: 402.2 kB / 1.171 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.8492, allocations: 51.41 kB / 1.171 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.25e-05/0.8493, allocations: 97.86 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.669e-05/0.8493, allocations: 29.7 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 2.749e-05/0.8493, allocations: 80.14 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.8494, allocations: 19.83 kB / 1.171 GB, free: 14.82 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.8494, allocations: 21.72 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8496, allocations: 310.8 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.8497, allocations: 40.08 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.8499, allocations: 39.91 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002787/0.8502, allocations: 72.8 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.8502, allocations: 4 kB / 1.172 GB, free: 14.33 MB / 0.9044 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003484/0.8505, allocations: 113.8 kB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.8505, allocations: 8 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.8506, allocations: 0 / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.8506, allocations: 0 / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.8507, allocations: 27.98 kB / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.8507, allocations: 0 / 1.172 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.154e-05/0.8508, allocations: 11.98 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.249e-05/0.8508, allocations: 7.984 kB / 1.172 GB, free: 14.16 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 (6): * Single equations (assignments): 6 * 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 7.877e-05/0.8509, allocations: 116 kB / 1.172 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/0.851, allocations: 15.83 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004216/0.8514, allocations: 133.2 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.8514, allocations: 0 / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.8514, allocations: 0 / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.8514, allocations: 0 / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.8516, allocations: 169.6 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.8516, allocations: 4 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.8517, allocations: 27.92 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.8517, allocations: 3.938 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.689e-06/0.8517, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.8518, allocations: 3.984 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.8518, allocations: 0 / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000542/0.8523, allocations: 185 kB / 1.173 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.8524, allocations: 93.02 kB / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.8525, allocations: 0 / 1.173 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001135/0.8526, allocations: 12.31 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.827e-05/0.8526, allocations: 11.98 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.8526, allocations: 0 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.155e-05/0.8527, allocations: 79.28 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8527, allocations: 4.156 kB / 1.173 GB, free: 13.21 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002223/0.8529, allocations: 31.86 kB / 1.173 GB, free: 13.18 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0002133/0.8531, allocations: 135 kB / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003585/0.8535, allocations: 80.06 kB / 1.173 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.8535, allocations: 0 / 1.173 GB, free: 12.95 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001668/0.8537, allocations: 48.08 kB / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001543/0.8538, allocations: 14.8 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006062/0.8545, allocations: 177.2 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.8548, allocations: 0.6846 MB / 1.174 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.161e-05/0.8549, allocations: 19.98 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.147e-05/0.8549, allocations: 11.44 kB / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of SimCode: time 4.61e-07/0.855, allocations: 0 / 1.174 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of Templates: time 0.003674/0.8586, allocations: 1.164 MB / 1.175 GB, free: 10.8 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches