Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 2.046/2.046, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001329/0.001328, allocations: 180.6 kB / 487 MB, free: 5.316 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.366/1.366, allocations: 221.3 MB / 0.7819 GB, free: 1.32 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008906/0.0008906, allocations: 97.92 kB / 0.9213 GB, free: 2.578 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.364e-06/7.494e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2242, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5749/0.7991, allocations: 149.2 MB / 1.351 GB, free: 16.21 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000209/0.7993, allocations: 76.75 kB / 1.351 GB, free: 16.21 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01288/0.8122, allocations: 3.805 MB / 1.355 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.8123, allocations: 0.9375 kB / 1.355 GB, free: 15.96 MB / 0.8073 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.0003321/0.8126, allocations: 368.2 kB / 1.355 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.8127, allocations: 9.75 kB / 1.355 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004056/0.8131, allocations: 71.44 kB / 1.355 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.8e-05/0.8132, allocations: 161.2 kB / 1.355 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.064e-05/0.8132, allocations: 4.812 kB / 1.355 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.283e-05/0.8132, allocations: 2.406 kB / 1.355 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.763e-05/0.8133, allocations: 22.64 kB / 1.355 GB, free: 15.38 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.8134, allocations: 48.86 kB / 1.355 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.8134, allocations: 2.281 kB / 1.355 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.8135, allocations: 8.969 kB / 1.355 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.8135, allocations: 0 / 1.355 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.8136, allocations: 138.8 kB / 1.356 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002199/0.8138, allocations: 55.66 kB / 1.356 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.657e-05/0.8139, allocations: 19.95 kB / 1.356 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 6.111e-05/0.814, allocations: 81.73 kB / 1.356 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.814, allocations: 33.77 kB / 1.356 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.593e-06/0.814, allocations: 1.125 kB / 1.356 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of matching and sorting (n=5): time 0.001279/0.8153, allocations: 442.9 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.315e-05/0.8153, allocations: 52.28 kB / 1.356 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.469e-05/0.8153, allocations: 91.06 kB / 1.356 GB, free: 14.6 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.8154, allocations: 25.7 kB / 1.356 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.165e-05/0.8154, allocations: 85.84 kB / 1.356 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.8154, allocations: 19.23 kB / 1.356 GB, free: 14.47 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-06/0.8154, allocations: 3.938 kB / 1.356 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.783e-05/0.8155, allocations: 316.5 kB / 1.357 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.504e-05/0.8155, allocations: 16.16 kB / 1.357 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.131e-05/0.8155, allocations: 12.56 kB / 1.357 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.8158, allocations: 73.44 kB / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.8159, allocations: 0 / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003907/0.8163, allocations: 118.9 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.8163, allocations: 8.812 kB / 1.357 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.8163, allocations: 6.562 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.8163, allocations: 0 / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001673/0.8165, allocations: 26.06 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.8165, allocations: 0.9688 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.8166, allocations: 19.59 kB / 1.357 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.8166, allocations: 1.75 kB / 1.357 GB, free: 14.1 MB / 0.8073 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 4.702e-05/0.8167, allocations: 108 kB / 1.357 GB, free: 13.99 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.505e-05/0.8167, allocations: 5.688 kB / 1.357 GB, free: 13.98 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004737/0.8172, allocations: 147.2 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.8172, allocations: 0.9375 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.8172, allocations: 7.938 kB / 1.357 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.8172, allocations: 0 / 1.357 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.54e-05/0.8173, allocations: 145.2 kB / 1.357 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8173, allocations: 0 / 1.357 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.8175, allocations: 32.03 kB / 1.357 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.8175, allocations: 0 / 1.357 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.8175, allocations: 5.5 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.8175, allocations: 0.75 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.8175, allocations: 4.859 kB / 1.357 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004394/0.818, allocations: 177.7 kB / 1.358 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.667e-05/0.818, allocations: 83.03 kB / 1.358 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.8181, allocations: 2.188 kB / 1.358 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001319/0.8182, allocations: 15.78 kB / 1.358 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.096e-05/0.8182, allocations: 3.969 kB / 1.358 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.8183, allocations: 6.562 kB / 1.358 GB, free: 13.6 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.75e-05/0.8183, allocations: 82.38 kB / 1.358 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002393/0.8185, allocations: 36.52 kB / 1.358 GB, free: 13.51 MB / 0.8073 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.0001878/0.8187, allocations: 146.7 kB / 1.358 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001216/0.8189, allocations: 41 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.8189, allocations: 0 / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 4.644e-05/0.8189, allocations: 18.91 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001013/0.819, allocations: 6.922 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004741/0.8195, allocations: 133.2 kB / 1.358 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/0.8198, allocations: 0.7064 MB / 1.359 GB, free: 28.61 MB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/0.8198, allocations: 0.9062 kB / 1.359 GB, free: 28.61 MB / 0.823 GB Notification: Performance of Templates: time 0.003337/0.8231, allocations: 1.301 MB / 1.36 GB, free: 28.5 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches