Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 83.59 kB / 20.45 MB, free: 4.117 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009708/0.0009708, allocations: 161 kB / 23.82 MB, free: 0.7461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9941/0.9941, allocations: 177.1 MB / 204.2 MB, free: 5.309 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.879/1.879, allocations: 377.8 MB / 0.6236 GB, free: 8.523 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y_comp|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 0.8116 GB, free: 1.648 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.499e-05/2.65e-05, allocations: 3.156 kB / 0.8116 GB, free: 1.645 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001371/0.001398, allocations: 0.6266 MB / 0.8122 GB, free: 1.043 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.003008, allocations: 1.475 MB / 0.8136 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.175e-05/0.00304, allocations: 0 / 0.8136 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.397e-05/0.003064, allocations: 0 / 0.8136 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 3.454e-05/0.003099, allocations: 5.5 kB / 0.8136 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004747/0.003573, allocations: 141.5 kB / 0.8138 GB, free: 15.41 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.003636, allocations: 27.97 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.317e-05/0.003679, allocations: 4.531 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 5.717e-05/0.003736, allocations: 21.34 kB / 0.8138 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.214e-05/0.003808, allocations: 27.95 kB / 0.8139 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.837e-05/0.003827, allocations: 0 / 0.8139 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002724/0.004099, allocations: 239.5 kB / 0.8141 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.675e-05/0.004116, allocations: 13.08 kB / 0.8141 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.356e-05/0.00414, allocations: 11.97 kB / 0.8141 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.004387, allocations: 211.4 kB / 0.8143 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.004389, allocations: 0.9375 kB / 0.8143 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.243e-06/0.004391, allocations: 0 / 0.8143 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.598e-06/0.004395, allocations: 0 / 0.8143 GB, free: 14.87 MB / 0.7761 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.0005458/0.004941, allocations: 388.8 kB / 0.8147 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.004979, allocations: 13.09 kB / 0.8147 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002557/0.005234, allocations: 53.52 kB / 0.8148 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.698e-05/0.005321, allocations: 112.6 kB / 0.8149 GB, free: 14.26 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.005336, allocations: 4.312 kB / 0.8149 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.005365, allocations: 8.375 kB / 0.8149 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.005538, allocations: 96.61 kB / 0.815 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.005547, allocations: 4.688 kB / 0.815 GB, free: 14.13 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.005561, allocations: 10.3 kB / 0.815 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.005571, allocations: 7.938 kB / 0.815 GB, free: 14.12 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.992e-05/0.005621, allocations: 11.98 kB / 0.815 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.005771, allocations: 120.7 kB / 0.8151 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00023/0.006001, allocations: 60.61 kB / 0.8152 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.203e-05/0.006043, allocations: 27.77 kB / 0.8152 GB, free: 13.85 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001917/0.006235, allocations: 42.36 kB / 0.8152 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.006262, allocations: 37.39 kB / 0.8153 GB, free: 13.77 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 2.164e-06/0.006264, allocations: 4.781 kB / 0.8153 GB, free: 13.76 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5): time 0.0005102/0.006774, allocations: 219 kB / 0.8155 GB, free: 13.51 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.006803, allocations: 55.34 kB / 0.8155 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.81e-05/0.006871, allocations: 158.8 kB / 0.8157 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.006885, allocations: 30.58 kB / 0.8157 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 3.193e-05/0.006917, allocations: 126.9 kB / 0.8158 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.995e-05/0.006947, allocations: 19.8 kB / 0.8159 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.653e-05/0.006983, allocations: 28.92 kB / 0.8159 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.007094, allocations: 0.4884 MB / 0.8164 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.055e-05/0.007125, allocations: 8 kB / 0.8164 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.602e-05/0.007151, allocations: 11.98 kB / 0.8164 GB, free: 12.54 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.545e-05/0.007217, allocations: 36.56 kB / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.007217, allocations: 0 / 0.8164 GB, free: 12.5 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6) (initialization): time 9.868e-05/0.007316, allocations: 62.75 kB / 0.8165 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.007329, allocations: 4 kB / 0.8165 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.007334, allocations: 1.094 kB / 0.8165 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.007351, allocations: 7.984 kB / 0.8165 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.166e-05/0.007433, allocations: 21.05 kB / 0.8165 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.007438, allocations: 0 / 0.8165 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.35e-05/0.007472, allocations: 5.156 kB / 0.8165 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-06/0.007479, allocations: 4 kB / 0.8165 GB, free: 12.39 MB / 0.7761 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 6.843e-05/0.007548, allocations: 164.5 kB / 0.8167 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.376e-05/0.007562, allocations: 4.5 kB / 0.8167 GB, free: 12.21 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001574/0.007719, allocations: 85.25 kB / 0.8168 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.007721, allocations: 0 / 0.8168 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.007726, allocations: 9.031 kB / 0.8168 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.007729, allocations: 0 / 0.8168 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.672e-05/0.007815, allocations: 128.6 kB / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.007817, allocations: 0.6562 kB / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.212e-05/0.007889, allocations: 18.45 kB / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.007891, allocations: 0 / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.007901, allocations: 4 kB / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.007903, allocations: 0 / 0.8169 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.007905, allocations: 3.938 kB / 0.8169 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.008076, allocations: 127.2 kB / 0.817 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 3.822e-05/0.008114, allocations: 7.984 kB / 0.817 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.854e-05/0.008132, allocations: 4 kB / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.191e-05/0.008174, allocations: 7.984 kB / 0.8171 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.518e-05/0.0082, allocations: 12.25 kB / 0.8171 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.008206, allocations: 4 kB / 0.8171 GB, free: 11.76 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.301e-05/0.008239, allocations: 119.2 kB / 0.8172 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.008239, allocations: 1.188 kB / 0.8172 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001668/0.008406, allocations: 31.88 kB / 0.8172 GB, free: 11.61 MB / 0.7761 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.0001668/0.008573, allocations: 126.2 kB / 0.8173 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001191/0.008692, allocations: 47.59 kB / 0.8174 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.008694, allocations: 0 / 0.8174 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 3.46e-05/0.008728, allocations: 31.67 kB / 0.8174 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.008847, allocations: 4 kB / 0.8174 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003657/0.009213, allocations: 162.8 kB / 0.8176 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.162e-05/0.009244, allocations: 57.02 kB / 0.8176 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.926e-05/0.009304, allocations: 20.22 kB / 0.8176 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.117e-05/0.009345, allocations: 12.5 kB / 0.8177 GB, free: 11.1 MB / 0.7761 GB Notification: Performance of SimCode: time 8.92e-07/0.009346, allocations: 4 kB / 0.8177 GB, free: 11.1 MB / 0.7761 GB Notification: Performance of Templates: time 0.00328/0.01263, allocations: 1.217 MB / 0.8189 GB, free: 9.891 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivativeCheck.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.112343657296151]