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.001113/0.001113, allocations: 81.95 kB / 20.68 MB, free: 3.82 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.001185/0.001185, allocations: 181.3 kB / 24.09 MB, free: 424 kB / 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.9926/0.9926, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.904/1.904, allocations: 377.9 MB / 0.624 GB, free: 8.414 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.613e-06/1.613e-06, allocations: 0.6562 kB / 0.8121 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.305e-05/2.467e-05, allocations: 3.625 kB / 0.8121 GB, free: 1.379 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.00135/0.001375, allocations: 0.6167 MB / 0.8127 GB, free: 0.7812 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001506/0.002881, allocations: 1.462 MB / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.964e-05/0.00291, allocations: 1.594 kB / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.002928, allocations: 3.938 kB / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 3.044e-05/0.002958, allocations: 0 / 0.8141 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004548/0.003413, allocations: 146.4 kB / 0.8143 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 6.238e-05/0.003475, allocations: 27.97 kB / 0.8143 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.332e-05/0.003509, allocations: 0 / 0.8143 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 6.375e-05/0.003572, allocations: 21.14 kB / 0.8143 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 7.688e-05/0.003649, allocations: 19.95 kB / 0.8143 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.779e-05/0.003667, allocations: 4 kB / 0.8143 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002992/0.003966, allocations: 248.5 kB / 0.8146 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.04e-05/0.003986, allocations: 11.92 kB / 0.8146 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 1.793e-05/0.004004, allocations: 7.984 kB / 0.8146 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.004226, allocations: 204.3 kB / 0.8148 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.004228, allocations: 0 / 0.8148 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.062e-06/0.004229, allocations: 1.344 kB / 0.8148 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.437e-06/0.004233, allocations: 0 / 0.8148 GB, free: 14.62 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.0003718/0.004604, allocations: 395.9 kB / 0.8152 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.004641, allocations: 8.562 kB / 0.8152 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002223/0.004863, allocations: 56.8 kB / 0.8152 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.975e-05/0.004933, allocations: 108.6 kB / 0.8153 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.004948, allocations: 8.375 kB / 0.8153 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.621e-05/0.004965, allocations: 384 / 0.8153 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001532/0.005118, allocations: 98.05 kB / 0.8154 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.714e-06/0.005125, allocations: 4.875 kB / 0.8154 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.005134, allocations: 384 / 0.8154 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.005141, allocations: 8.406 kB / 0.8154 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.736e-05/0.005179, allocations: 17.3 kB / 0.8154 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001251/0.005304, allocations: 101.3 kB / 0.8155 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001646/0.005469, allocations: 59.89 kB / 0.8156 GB, free: 13.67 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.411e-05/0.005493, allocations: 19.75 kB / 0.8156 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001588/0.005651, allocations: 54.94 kB / 0.8157 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.005674, allocations: 37.39 kB / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.005675, allocations: 5.156 kB / 0.8157 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5): time 0.0003661/0.006041, allocations: 207 kB / 0.8159 GB, free: 13.31 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.142e-05/0.006063, allocations: 55.34 kB / 0.816 GB, free: 13.24 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.981e-05/0.006122, allocations: 165.8 kB / 0.8161 GB, free: 13.06 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.006135, allocations: 27.3 kB / 0.8161 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 3.012e-05/0.006165, allocations: 126.9 kB / 0.8163 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.503e-05/0.00619, allocations: 19.84 kB / 0.8163 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.58e-05/0.006226, allocations: 23.36 kB / 0.8163 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.006333, allocations: 0.4989 MB / 0.8168 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.093e-05/0.006354, allocations: 4 kB / 0.8168 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.931e-05/0.006373, allocations: 11.98 kB / 0.8168 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.448e-05/0.006418, allocations: 23.69 kB / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.006418, allocations: 0 / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6) (initialization): time 9.133e-05/0.00651, allocations: 65.77 kB / 0.8169 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.00652, allocations: 4.5 kB / 0.8169 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.006526, allocations: 4.062 kB / 0.8169 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.006537, allocations: 1.125 kB / 0.8169 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.953e-05/0.006606, allocations: 21.05 kB / 0.8169 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.526e-06/0.00661, allocations: 3.938 kB / 0.8169 GB, free: 12.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.19e-05/0.006642, allocations: 8.484 kB / 0.8169 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.006647, allocations: 0 / 0.8169 GB, free: 12.19 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.707e-05/0.006714, allocations: 161.9 kB / 0.8171 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.006727, allocations: 4 kB / 0.8171 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000128/0.006855, allocations: 84.52 kB / 0.8172 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.006858, allocations: 4.656 kB / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-06/0.006859, allocations: 0 / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.006863, allocations: 4.594 kB / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.17e-05/0.006945, allocations: 105.2 kB / 0.8173 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.006945, allocations: 2.906 kB / 0.8173 GB, free: 11.8 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-05/0.007005, allocations: 15.98 kB / 0.8173 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.007007, allocations: 0 / 0.8173 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.007016, allocations: 7.984 kB / 0.8173 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.007017, allocations: 0 / 0.8173 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.007018, allocations: 0 / 0.8173 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001318/0.00715, allocations: 114.9 kB / 0.8174 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.973e-05/0.00718, allocations: 15.94 kB / 0.8174 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.00719, allocations: 3.938 kB / 0.8174 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.364e-05/0.007224, allocations: 8 kB / 0.8174 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.572e-05/0.00724, allocations: 3.984 kB / 0.8175 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.007246, allocations: 4 kB / 0.8175 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 2.833e-05/0.007274, allocations: 120.1 kB / 0.8176 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of sort global known variables: time 4e-08/0.007274, allocations: 0 / 0.8176 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001579/0.007432, allocations: 36.98 kB / 0.8176 GB, free: 11.46 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.0001489/0.007581, allocations: 132.1 kB / 0.8177 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.933e-05/0.00767, allocations: 43.8 kB / 0.8178 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.007672, allocations: 0 / 0.8178 GB, free: 11.27 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.545e-05/0.007698, allocations: 29.23 kB / 0.8178 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001054/0.007803, allocations: 4 kB / 0.8178 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/0.008079, allocations: 152.8 kB / 0.818 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.557e-05/0.008104, allocations: 55.36 kB / 0.818 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.22e-05/0.008156, allocations: 18.59 kB / 0.818 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.041e-05/0.008227, allocations: 82.19 kB / 0.8181 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of SimCode: time 7.81e-07/0.008228, allocations: 0 / 0.8181 GB, free: 10.89 MB / 0.7761 GB Notification: Performance of Templates: time 0.002745/0.01097, allocations: 1.332 MB / 0.8194 GB, free: 9.57 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.042019368615001]