Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.958/1.958, allocations: 390.4 MB / 397.7 MB, free: 11.21 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009882/0.0009882, allocations: 185.2 kB / 490.8 MB, free: 1.945 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 221.3 MB / 0.7863 GB, free: 13.73 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008982/0.0008981, allocations: 95.86 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.767e-06/8.797e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2459, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6301/0.8761, allocations: 150 MB / 1.358 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.8764, allocations: 79.67 kB / 1.358 GB, free: 17.52 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01216/0.8886, allocations: 3.803 MB / 1.362 GB, free: 17.27 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.8886, allocations: 0 / 1.362 GB, free: 17.27 MB / 0.823 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.0004033/0.889, allocations: 366.6 kB / 1.362 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.8891, allocations: 9.469 kB / 1.362 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004191/0.8895, allocations: 71.62 kB / 1.362 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.005e-05/0.8896, allocations: 169.6 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.478e-05/0.8896, allocations: 1.781 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.911e-05/0.8897, allocations: 1.125 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.822e-05/0.8898, allocations: 19.52 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.8899, allocations: 48.89 kB / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.8899, allocations: 3.938 kB / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.8899, allocations: 1.281 kB / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.8899, allocations: 1.5 kB / 1.363 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001448/0.8901, allocations: 150.4 kB / 1.363 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.8903, allocations: 48.91 kB / 1.363 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.325e-05/0.8903, allocations: 27.11 kB / 1.363 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 6.599e-05/0.8904, allocations: 83.58 kB / 1.363 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.387e-05/0.8904, allocations: 36.38 kB / 1.363 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.8904, allocations: 4 kB / 1.363 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.001216/0.8917, allocations: 438.6 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.499e-05/0.8917, allocations: 51.41 kB / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.653e-05/0.8918, allocations: 97.31 kB / 1.363 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.8918, allocations: 25.7 kB / 1.363 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.675e-05/0.8918, allocations: 80.14 kB / 1.364 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.8918, allocations: 20 kB / 1.364 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.672e-06/0.8919, allocations: 0 / 1.364 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.724e-05/0.892, allocations: 316.8 kB / 1.364 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.252e-05/0.892, allocations: 10.97 kB / 1.364 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.002e-05/0.892, allocations: 12.83 kB / 1.364 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.8923, allocations: 72.22 kB / 1.364 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.8923, allocations: 0 / 1.364 GB, free: 31.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003517/0.8927, allocations: 123.5 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.8927, allocations: 4.156 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.8927, allocations: 5.094 kB / 1.364 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.8927, allocations: 0 / 1.364 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.8929, allocations: 30.33 kB / 1.364 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.511e-06/0.8929, allocations: 6.266 kB / 1.364 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.893, allocations: 14.73 kB / 1.364 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.246e-05/0.893, allocations: 6.625 kB / 1.364 GB, free: 31.39 MB / 0.8386 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 7.174e-05/0.8931, allocations: 106.7 kB / 1.364 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.405e-05/0.8931, allocations: 4.938 kB / 1.364 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004681/0.8936, allocations: 146.3 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.8936, allocations: 1.188 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.8936, allocations: 0 / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.8936, allocations: 1.188 kB / 1.364 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.707e-05/0.8937, allocations: 147.7 kB / 1.364 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.8937, allocations: 0 / 1.364 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001652/0.8939, allocations: 34.44 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.8939, allocations: 1.594 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.8939, allocations: 6.766 kB / 1.365 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.846e-06/0.8939, allocations: 4 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.894, allocations: 3.938 kB / 1.365 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004427/0.8944, allocations: 175.6 kB / 1.365 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.8945, allocations: 84.27 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.8945, allocations: 1.344 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.8947, allocations: 20.67 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.074e-05/0.8947, allocations: 7.875 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.8947, allocations: 6.469 kB / 1.365 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.591e-05/0.8948, allocations: 77.52 kB / 1.365 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002409/0.895, allocations: 36.81 kB / 1.365 GB, free: 30.79 MB / 0.8386 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.0002343/0.8952, allocations: 136.8 kB / 1.365 GB, free: 30.69 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000141/0.8954, allocations: 39.48 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.8954, allocations: 0.9062 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.843e-05/0.8955, allocations: 26.55 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001189/0.8956, allocations: 5.156 kB / 1.365 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005858/0.8962, allocations: 137.4 kB / 1.365 GB, free: 30.6 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.8966, allocations: 0.7017 MB / 1.366 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.8966, allocations: 0 / 1.366 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of Templates: time 0.003613/0.9002, allocations: 1.309 MB / 1.367 GB, free: 29.78 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches