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/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.0009558/0.0009558, allocations: 73.88 kB / 20.66 MB, free: 3.84 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.001005/0.001005, allocations: 169 kB / 24.06 MB, free: 452 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.9132/0.9132, allocations: 177.1 MB / 204.5 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.06/2.06, allocations: 429.5 MB / 0.6743 GB, free: 3.926 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.8794 GB, free: 4.809 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.406e-05/2.552e-05, allocations: 4.797 kB / 0.8795 GB, free: 4.805 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck): time 0.001394/0.001419, allocations: 0.632 MB / 0.8801 GB, free: 4.195 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.002932, allocations: 1.463 MB / 0.8815 GB, free: 2.723 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.631e-05/0.002958, allocations: 0 / 0.8815 GB, free: 2.723 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 1.518e-05/0.002973, allocations: 1.094 kB / 0.8815 GB, free: 2.723 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 3.003e-05/0.003003, allocations: 3.938 kB / 0.8815 GB, free: 2.719 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004722/0.003476, allocations: 144.4 kB / 0.8816 GB, free: 2.582 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 5.921e-05/0.003535, allocations: 27.97 kB / 0.8817 GB, free: 2.555 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 3.407e-05/0.003569, allocations: 0 / 0.8817 GB, free: 2.555 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 5.408e-05/0.003623, allocations: 27.95 kB / 0.8817 GB, free: 2.527 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 6.851e-05/0.003691, allocations: 15.97 kB / 0.8817 GB, free: 2.512 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.435e-05/0.003706, allocations: 4 kB / 0.8817 GB, free: 2.508 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002804/0.003986, allocations: 247.5 kB / 0.882 GB, free: 2.266 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 1.823e-05/0.004004, allocations: 11.98 kB / 0.882 GB, free: 2.254 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.689e-05/0.004021, allocations: 9.547 kB / 0.882 GB, free: 2.246 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.004253, allocations: 203.5 kB / 0.8822 GB, free: 2.047 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.004258, allocations: 4 kB / 0.8822 GB, free: 2.043 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.092e-06/0.004259, allocations: 3.938 kB / 0.8822 GB, free: 2.039 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 4.018e-06/0.004263, allocations: 1.031 kB / 0.8822 GB, free: 2.039 MB / 0.7917 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.0003752/0.004638, allocations: 388.3 kB / 0.8825 GB, free: 1.625 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.004672, allocations: 13.09 kB / 0.8826 GB, free: 1.613 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002346/0.004906, allocations: 47.09 kB / 0.8826 GB, free: 1.57 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.583e-05/0.004982, allocations: 113.4 kB / 0.8827 GB, free: 1.434 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.004998, allocations: 4.375 kB / 0.8827 GB, free: 1.43 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.005016, allocations: 4.359 kB / 0.8827 GB, free: 1.426 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001457/0.005162, allocations: 99.22 kB / 0.8828 GB, free: 1.316 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-06/0.005167, allocations: 192 / 0.8828 GB, free: 1.316 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.005175, allocations: 384 / 0.8828 GB, free: 1.316 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.005181, allocations: 3.938 kB / 0.8828 GB, free: 1.312 MB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.853e-05/0.005219, allocations: 25.86 kB / 0.8828 GB, free: 1.289 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.005338, allocations: 101.2 kB / 0.8829 GB, free: 1.164 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.005505, allocations: 55.14 kB / 0.883 GB, free: 1.098 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.085e-05/0.005536, allocations: 24.47 kB / 0.883 GB, free: 1.07 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001646/0.005701, allocations: 50.11 kB / 0.8831 GB, free: 1.023 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.005723, allocations: 37.91 kB / 0.8831 GB, free: 0.9766 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=4): time 1.443e-06/0.005724, allocations: 1 kB / 0.8831 GB, free: 0.9766 MB / 0.7917 GB Notification: Performance of matching and sorting (n=5): time 0.0003798/0.006104, allocations: 207.3 kB / 0.8833 GB, free: 0.7383 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.006129, allocations: 51.41 kB / 0.8833 GB, free: 0.6758 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.954e-05/0.006189, allocations: 165.8 kB / 0.8835 GB, free: 0.4961 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.006204, allocations: 33.77 kB / 0.8835 GB, free: 468 kB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 3.068e-05/0.006235, allocations: 126.9 kB / 0.8837 GB, free: 336 kB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 3.037e-05/0.006265, allocations: 23.8 kB / 0.8837 GB, free: 312 kB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.571e-05/0.006301, allocations: 27.34 kB / 0.8837 GB, free: 276 kB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.006418, allocations: 0.4884 MB / 0.8842 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.734e-05/0.006446, allocations: 7.984 kB / 0.8842 GB, free: 15.76 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.143e-05/0.006467, allocations: 12 kB / 0.8842 GB, free: 15.75 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.271e-05/0.00652, allocations: 23.69 kB / 0.8842 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.006521, allocations: 0 / 0.8842 GB, free: 15.72 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6) (initialization): time 9.225e-05/0.006613, allocations: 61.88 kB / 0.8843 GB, free: 15.66 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.006627, allocations: 11.98 kB / 0.8843 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.006631, allocations: 0 / 0.8843 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.564e-06/0.006639, allocations: 0 / 0.8843 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.887e-05/0.006718, allocations: 23.92 kB / 0.8843 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.096e-06/0.006721, allocations: 3.938 kB / 0.8843 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.2e-05/0.006753, allocations: 4 kB / 0.8843 GB, free: 15.61 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.006761, allocations: 7.984 kB / 0.8843 GB, free: 15.61 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 () * 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.479e-05/0.006826, allocations: 156.6 kB / 0.8845 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.006839, allocations: 8 kB / 0.8845 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001354/0.006974, allocations: 77.47 kB / 0.8846 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.006976, allocations: 0 / 0.8846 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.006978, allocations: 4 kB / 0.8846 GB, free: 15.35 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.006981, allocations: 3.938 kB / 0.8846 GB, free: 15.34 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.14e-05/0.007062, allocations: 113.2 kB / 0.8847 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.007063, allocations: 0 / 0.8847 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.961e-05/0.007133, allocations: 15.98 kB / 0.8847 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.007134, allocations: 0 / 0.8847 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.007142, allocations: 4 kB / 0.8847 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.007143, allocations: 0 / 0.8847 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.007144, allocations: 0 / 0.8847 GB, free: 15.19 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001439/0.007288, allocations: 116.3 kB / 0.8848 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 3.102e-05/0.007319, allocations: 11.98 kB / 0.8848 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.00733, allocations: 0 / 0.8848 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.974e-05/0.00737, allocations: 15.92 kB / 0.8848 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.724e-05/0.007387, allocations: 0 / 0.8848 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.007396, allocations: 12.11 kB / 0.8848 GB, free: 15.01 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 3.162e-05/0.007428, allocations: 119.2 kB / 0.885 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of sort global known variables: time 8e-08/0.007428, allocations: 0 / 0.885 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001689/0.007597, allocations: 35.88 kB / 0.885 GB, free: 14.86 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 () * 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.0001498/0.007746, allocations: 131.2 kB / 0.8851 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.183e-05/0.007838, allocations: 47.66 kB / 0.8852 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.00784, allocations: 0 / 0.8852 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.723e-05/0.007867, allocations: 27.61 kB / 0.8852 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.007979, allocations: 4 kB / 0.8852 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002911/0.00827, allocations: 146.3 kB / 0.8853 GB, free: 14.46 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.734e-05/0.008298, allocations: 59.36 kB / 0.8854 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 5.531e-05/0.008353, allocations: 19.98 kB / 0.8854 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.076e-05/0.008424, allocations: 78.2 kB / 0.8855 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of SimCode: time 1.001e-06/0.008425, allocations: 0 / 0.8855 GB, free: 14.29 MB / 0.8073 GB Notification: Performance of Templates: time 0.002849/0.01127, allocations: 1.355 MB / 0.8868 GB, free: 12.95 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.153924773912877]