Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.223/1.223, allocations: 249.4 MB / 256.7 MB, free: 6.934 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009674/0.0009674, allocations: 177.2 kB / 316 MB, free: 3.512 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.07/1.07, allocations: 205.2 MB / 0.5667 GB, free: 15.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000857/0.000857, allocations: 96.41 kB / 0.671 GB, free: 4.789 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.576e-06/8.596e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1407, allocations: 106.3 MB / 0.8846 GB, free: 12.62 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4027/0.5435, allocations: 132.7 MB / 1.014 GB, free: 5.969 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.5437, allocations: 80.02 kB / 1.014 GB, free: 5.926 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.0117/0.5554, allocations: 3.751 MB / 1.018 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.5554, allocations: 8 kB / 1.018 GB, free: 2.797 MB / 0.6355 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.00035/0.5558, allocations: 357.9 kB / 1.018 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.5558, allocations: 8.031 kB / 1.018 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.5562, allocations: 71.92 kB / 1.018 GB, free: 2.328 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.5564, allocations: 171 kB / 1.019 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.5564, allocations: 3.906 kB / 1.019 GB, free: 2.117 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.5564, allocations: 3.984 kB / 1.019 GB, free: 2.113 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.545e-05/0.5565, allocations: 15.81 kB / 1.019 GB, free: 2.102 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.79e-05/0.5566, allocations: 56.22 kB / 1.019 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.5566, allocations: 0 / 1.019 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.5566, allocations: 0 / 1.019 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.5566, allocations: 0 / 1.019 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001627/0.5568, allocations: 150 kB / 1.019 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.557, allocations: 50.17 kB / 1.019 GB, free: 1.812 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.433e-05/0.5571, allocations: 20.61 kB / 1.019 GB, free: 1.793 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 8.029e-05/0.5572, allocations: 85.19 kB / 1.019 GB, free: 1.691 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.5572, allocations: 34.31 kB / 1.019 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.222e-06/0.5572, allocations: 0 / 1.019 GB, free: 1.652 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5): time 0.001245/0.5584, allocations: 438.8 kB / 1.019 GB, free: 1.188 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.558e-05/0.5585, allocations: 59.22 kB / 1.019 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.968e-05/0.5585, allocations: 89 kB / 1.019 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.361e-05/0.5586, allocations: 25.7 kB / 1.019 GB, free: 0.9961 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.23e-05/0.5586, allocations: 80.14 kB / 1.02 GB, free: 0.9141 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.857e-05/0.5586, allocations: 23.23 kB / 1.02 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.693e-06/0.5586, allocations: 0 / 1.02 GB, free: 0.8945 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.14e-05/0.5587, allocations: 314.8 kB / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.097e-05/0.5588, allocations: 11.75 kB / 1.02 GB, free: 0.5703 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.734e-05/0.5588, allocations: 11.19 kB / 1.02 GB, free: 0.5625 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.5591, allocations: 78.89 kB / 1.02 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.5591, allocations: 0 / 1.02 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003479/0.5594, allocations: 128.9 kB / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.5595, allocations: 4 kB / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.5595, allocations: 0 / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.5595, allocations: 0 / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.5596, allocations: 23.98 kB / 1.02 GB, free: 352 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.5597, allocations: 4 kB / 1.02 GB, free: 348 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.5598, allocations: 19.97 kB / 1.02 GB, free: 328 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/0.5598, allocations: 7.938 kB / 1.02 GB, free: 320 kB / 0.6355 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.013e-05/0.5599, allocations: 104.9 kB / 1.02 GB, free: 208 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.239e-05/0.5599, allocations: 4 kB / 1.02 GB, free: 204 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004447/0.5603, allocations: 145.5 kB / 1.02 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.5603, allocations: 0 / 1.02 GB, free: 64 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.5603, allocations: 4 kB / 1.02 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.5604, allocations: 3.906 kB / 1.02 GB, free: 56 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001339/0.5605, allocations: 145 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.5605, allocations: 0 / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001612/0.5607, allocations: 31.92 kB / 1.021 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.5607, allocations: 0 / 1.021 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.5607, allocations: 3.984 kB / 1.021 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.5607, allocations: 0 / 1.021 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.5607, allocations: 4 kB / 1.021 GB, free: 15.84 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004208/0.5611, allocations: 173.8 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.358e-05/0.5612, allocations: 89 kB / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.5612, allocations: 0 / 1.021 GB, free: 15.57 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001271/0.5614, allocations: 24.03 kB / 1.021 GB, free: 15.55 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.507e-05/0.5614, allocations: 7.438 kB / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.5614, allocations: 192 / 1.021 GB, free: 15.54 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.641e-05/0.5615, allocations: 79.28 kB / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002099/0.5617, allocations: 39.92 kB / 1.021 GB, free: 15.43 MB / 0.6511 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001945/0.5619, allocations: 135.2 kB / 1.021 GB, free: 15.28 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000112/0.562, allocations: 42.55 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.562, allocations: 8.031 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 3.886e-05/0.562, allocations: 19.5 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.024e-05/0.5621, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004501/0.5626, allocations: 146.6 kB / 1.021 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002501/0.5629, allocations: 0.7036 MB / 1.022 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of SimCode: time 2.11e-07/0.5629, allocations: 3.938 kB / 1.022 GB, free: 14.33 MB / 0.6511 GB Notification: Performance of Templates: time 0.002858/0.5657, allocations: 1.313 MB / 1.023 GB, free: 13.03 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches