Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") [: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.953/1.953, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.001067/0.001067, allocations: 185.2 kB / 490.8 MB, free: 1.918 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.377/1.377, allocations: 221.4 MB / 0.7863 GB, free: 13.64 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.001094/0.001094, allocations: 95.66 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 9.678e-06/9.698e-06, allocations: 4 kB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2671, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6855/0.9527, allocations: 150.8 MB / 1.359 GB, free: 16.91 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.9529, allocations: 77.89 kB / 1.359 GB, free: 16.91 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01647/0.9694, allocations: 5.192 MB / 1.364 GB, free: 16.56 MB / 0.823 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.9695, allocations: 3.656 kB / 1.364 GB, free: 16.56 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000574/0.97, allocations: 390.7 kB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.9701, allocations: 8.562 kB / 1.364 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003949/0.9705, allocations: 81.62 kB / 1.364 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.927e-05/0.9706, allocations: 165.7 kB / 1.365 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.114e-05/0.9706, allocations: 6.422 kB / 1.365 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.9707, allocations: 7.688 kB / 1.365 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001224/0.9708, allocations: 35.8 kB / 1.365 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.9709, allocations: 72.91 kB / 1.365 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.971, allocations: 1.312 kB / 1.365 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.971, allocations: 0 / 1.365 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.971, allocations: 5.812 kB / 1.365 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005448/0.9715, allocations: 313.2 kB / 1.365 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.724e-05/0.9717, allocations: 46.45 kB / 1.365 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.547e-05/0.9717, allocations: 27.14 kB / 1.365 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.9717, allocations: 1.828 kB / 1.365 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.9718, allocations: 35.66 kB / 1.365 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.9718, allocations: 1.094 kB / 1.365 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.01449/0.9863, allocations: 2.18 MB / 1.367 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.9863, allocations: 52.72 kB / 1.367 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.38e-05/0.9864, allocations: 94.59 kB / 1.367 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.341e-05/0.9865, allocations: 25.7 kB / 1.367 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.235e-05/0.9865, allocations: 86.7 kB / 1.367 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.9866, allocations: 36.53 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.9866, allocations: 4 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001045/0.9867, allocations: 317.3 kB / 1.368 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.987, allocations: 114.9 kB / 1.368 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.9872, allocations: 115.1 kB / 1.368 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.9875, allocations: 128.9 kB / 1.368 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.9875, allocations: 2.391 kB / 1.368 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0007728/0.9883, allocations: 335.8 kB / 1.368 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.9883, allocations: 7.938 kB / 1.368 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.9884, allocations: 0 / 1.368 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.9884, allocations: 1.469 kB / 1.368 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009269/0.9893, allocations: 132.9 kB / 1.369 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.9893, allocations: 0.9688 kB / 1.369 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006753/0.99, allocations: 62.84 kB / 1.369 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.22e-05/0.9901, allocations: 22.97 kB / 1.369 GB, free: 30.38 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 (13): * Single equations (assignments): 13 * 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 0.0001862/0.9903, allocations: 107.9 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.005e-05/0.9904, allocations: 7.719 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.652e-05/0.9904, allocations: 7.938 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.9904, allocations: 1.438 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.9904, allocations: 3.047 kB / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.9904, allocations: 0 / 1.369 GB, free: 30.27 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.9918, allocations: 0.8847 MB / 1.37 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.9918, allocations: 0.9688 kB / 1.37 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008979/0.9927, allocations: 121.1 kB / 1.37 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.9927, allocations: 0.9688 kB / 1.37 GB, free: 29.74 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.356e-05/0.9928, allocations: 34.19 kB / 1.37 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.9928, allocations: 0 / 1.37 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.9928, allocations: 1.062 kB / 1.37 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001088/0.9939, allocations: 0.5755 MB / 1.37 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.994, allocations: 116.1 kB / 1.371 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.324e-05/0.9941, allocations: 3.078 kB / 1.371 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007281/0.9949, allocations: 71.08 kB / 1.371 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.961e-05/0.995, allocations: 26.53 kB / 1.371 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-05/0.995, allocations: 27.72 kB / 1.371 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.788e-05/0.9951, allocations: 81.62 kB / 1.371 GB, free: 29.4 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003873/0.9955, allocations: 61.05 kB / 1.371 GB, free: 29.39 MB / 0.8386 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 () * 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 (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.0002003/0.9957, allocations: 112.5 kB / 1.371 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0005559/0.9962, allocations: 268.3 kB / 1.371 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.9962, allocations: 0 / 1.371 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.9965, allocations: 148.6 kB / 1.371 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002045/0.9968, allocations: 6.688 kB / 1.371 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004303/1.001, allocations: 0.802 MB / 1.372 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007287/1.002, allocations: 0.8224 MB / 1.373 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of SimCode: time 6.11e-07/1.002, allocations: 0 / 1.373 GB, free: 28.43 MB / 0.8386 GB Notification: Performance of Templates: time 0.01189/1.014, allocations: 5.764 MB / 1.378 GB, free: 27.5 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches