Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.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.001289/0.001289, allocations: 81.95 kB / 21.47 MB, free: 3.031 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.001548/0.001548, allocations: 166.8 kB / 24.87 MB, free: 8.891 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.9478/0.9478, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.781/1.781, allocations: 359 MB / 0.6063 GB, free: 10.91 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 0.7884 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.717e-05/2.858e-05, allocations: 9.062 kB / 0.7884 GB, free: 12.16 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.001706/0.001735, allocations: 0.7937 MB / 0.7891 GB, free: 11.38 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.001607/0.003342, allocations: 1.491 MB / 0.7906 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.874e-05/0.003381, allocations: 0.9688 kB / 0.7906 GB, free: 9.875 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.856e-05/0.003409, allocations: 3.938 kB / 0.7906 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 4.405e-05/0.003454, allocations: 4.812 kB / 0.7906 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004612/0.003915, allocations: 146.6 kB / 0.7908 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 8.329e-05/0.003998, allocations: 51.89 kB / 0.7908 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.623e-05/0.004034, allocations: 4 kB / 0.7908 GB, free: 9.672 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 8.651e-05/0.004121, allocations: 41.3 kB / 0.7908 GB, free: 9.633 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 4.463e-05/0.004165, allocations: 19.97 kB / 0.7909 GB, free: 9.613 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.00418, allocations: 4 kB / 0.7909 GB, free: 9.609 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.00449, allocations: 255.4 kB / 0.7911 GB, free: 9.359 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.00451, allocations: 18.94 kB / 0.7911 GB, free: 9.344 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.202e-05/0.004532, allocations: 19.97 kB / 0.7911 GB, free: 9.324 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0003308/0.004863, allocations: 219.4 kB / 0.7914 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.004869, allocations: 0 / 0.7914 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.023e-06/0.004871, allocations: 0 / 0.7914 GB, free: 9.109 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 8.547e-06/0.00488, allocations: 0 / 0.7914 GB, free: 9.109 MB / 0.7448 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.0007251/0.005605, allocations: 424.1 kB / 0.7918 GB, free: 8.66 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.005645, allocations: 9.219 kB / 0.7918 GB, free: 8.652 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002709/0.005916, allocations: 62.64 kB / 0.7918 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.719e-05/0.005993, allocations: 118.1 kB / 0.7919 GB, free: 8.453 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.006009, allocations: 384 / 0.7919 GB, free: 8.453 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.006029, allocations: 16.36 kB / 0.792 GB, free: 8.438 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.006226, allocations: 142.9 kB / 0.7921 GB, free: 8.277 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.006236, allocations: 4.922 kB / 0.7921 GB, free: 8.273 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.368e-05/0.006249, allocations: 8.375 kB / 0.7921 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.006257, allocations: 4.562 kB / 0.7921 GB, free: 8.262 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.446e-05/0.006312, allocations: 28.53 kB / 0.7921 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00037/0.006682, allocations: 300.9 kB / 0.7924 GB, free: 7.914 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.00681, allocations: 80.31 kB / 0.7925 GB, free: 7.824 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.14e-05/0.006842, allocations: 27.61 kB / 0.7925 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.292e-05/0.006855, allocations: 1.75 kB / 0.7925 GB, free: 7.793 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.006875, allocations: 33.39 kB / 0.7926 GB, free: 7.75 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.006876, allocations: 0 / 0.7926 GB, free: 7.75 MB / 0.7448 GB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=11): time 0.006921/0.0138, allocations: 1.882 MB / 0.7944 GB, free: 5.836 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.01383, allocations: 51.41 kB / 0.7944 GB, free: 5.773 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.947e-05/0.0139, allocations: 161.9 kB / 0.7946 GB, free: 5.598 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.01393, allocations: 25.7 kB / 0.7946 GB, free: 5.566 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.375e-05/0.01398, allocations: 146.8 kB / 0.7948 GB, free: 5.418 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 5.402e-05/0.01403, allocations: 39.67 kB / 0.7948 GB, free: 5.379 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.01414, allocations: 71.23 kB / 0.7949 GB, free: 5.301 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001685/0.01431, allocations: 0.4922 MB / 0.7954 GB, free: 4.797 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002238/0.01453, allocations: 119.9 kB / 0.7955 GB, free: 4.68 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002236/0.01476, allocations: 119.9 kB / 0.7956 GB, free: 4.562 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004097/0.01517, allocations: 247.5 kB / 0.7958 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.01517, allocations: 0 / 0.7958 GB, free: 4.316 MB / 0.7448 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004874/0.01566, allocations: 339.3 kB / 0.7961 GB, free: 3.98 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.01567, allocations: 8 kB / 0.7961 GB, free: 3.973 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.01568, allocations: 7.938 kB / 0.7962 GB, free: 3.965 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.0157, allocations: 0 / 0.7962 GB, free: 3.965 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004912/0.01619, allocations: 87.83 kB / 0.7962 GB, free: 3.879 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.0162, allocations: 5 kB / 0.7962 GB, free: 3.875 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.01643, allocations: 27.97 kB / 0.7963 GB, free: 3.848 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.01646, allocations: 23.94 kB / 0.7963 GB, free: 3.824 MB / 0.7448 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 (13): * Single equations (assignments): 13 * 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 0.00015/0.01661, allocations: 172.5 kB / 0.7965 GB, free: 3.645 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.74e-05/0.01669, allocations: 11.95 kB / 0.7965 GB, free: 3.633 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.626e-05/0.01672, allocations: 8.125 kB / 0.7965 GB, free: 3.629 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.01673, allocations: 4 kB / 0.7965 GB, free: 3.625 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.01673, allocations: 0 / 0.7965 GB, free: 3.625 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.01673, allocations: 0 / 0.7965 GB, free: 3.625 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009077/0.01764, allocations: 0.8282 MB / 0.7973 GB, free: 2.707 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01764, allocations: 4 kB / 0.7973 GB, free: 2.703 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004138/0.01806, allocations: 87.81 kB / 0.7974 GB, free: 2.617 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.01806, allocations: 0 / 0.7974 GB, free: 2.617 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.6e-05/0.0181, allocations: 27.92 kB / 0.7974 GB, free: 2.59 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.0181, allocations: 3.938 kB / 0.7974 GB, free: 2.586 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.0181, allocations: 0 / 0.7974 GB, free: 2.586 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007616/0.01886, allocations: 0.5892 MB / 0.798 GB, free: 1.977 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.01898, allocations: 39.86 kB / 0.798 GB, free: 1.938 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.01901, allocations: 0 / 0.798 GB, free: 1.938 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.01928, allocations: 31.95 kB / 0.7981 GB, free: 1.906 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.911e-05/0.01934, allocations: 27.92 kB / 0.7981 GB, free: 1.879 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.514e-05/0.01937, allocations: 19.94 kB / 0.7981 GB, free: 1.859 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 5.726e-05/0.01943, allocations: 123.4 kB / 0.7982 GB, free: 1.738 MB / 0.7448 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01943, allocations: 4.031 kB / 0.7982 GB, free: 1.734 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003245/0.01975, allocations: 59.92 kB / 0.7983 GB, free: 1.676 MB / 0.7448 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 () * Number of clocked 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 (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.0002097/0.01996, allocations: 111.3 kB / 0.7984 GB, free: 1.555 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0007805/0.02074, allocations: 283.3 kB / 0.7987 GB, free: 1.273 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.02075, allocations: 4 kB / 0.7987 GB, free: 1.27 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.02093, allocations: 167.7 kB / 0.7988 GB, free: 1.102 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.02117, allocations: 35.92 kB / 0.7989 GB, free: 1.066 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001711/0.02288, allocations: 0.6032 MB / 0.7994 GB, free: 444 kB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.57e-05/0.02292, allocations: 63.34 kB / 0.7995 GB, free: 360 kB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0003141/0.02324, allocations: 92.72 kB / 0.7996 GB, free: 268 kB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.02351, allocations: 126.1 kB / 0.7997 GB, free: 140 kB / 0.7448 GB Notification: Performance of SimCode: time 1.342e-06/0.02351, allocations: 0 / 0.7997 GB, free: 140 kB / 0.7448 GB Notification: Performance of Templates: time 0.005726/0.02924, allocations: 3.96 MB / 0.8036 GB, free: 12.2 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_InverseXDerivative_2_Check.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.166174329351634]