Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009576/0.0009576, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001802/0.001802, allocations: 185 kB / 24.09 MB, free: 416 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.9683/0.9683, allocations: 177.1 MB / 204.5 MB, free: 5.52 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.893/1.893, allocations: 377.9 MB / 0.624 GB, free: 8.426 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.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_12_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_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 0.8121 GB, free: 1.398 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.751e-05/1.888e-05, allocations: 2.312 kB / 0.8121 GB, free: 1.395 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.0015/0.001519, allocations: 0.8012 MB / 0.8129 GB, free: 0.6133 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001478/0.002997, allocations: 1.483 MB / 0.8143 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.064e-05/0.003037, allocations: 0 / 0.8143 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.003e-05/0.003067, allocations: 9.516 kB / 0.8143 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.49e-05/0.003112, allocations: 7.938 kB / 0.8143 GB, free: 15.1 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004491/0.003561, allocations: 141.9 kB / 0.8145 GB, free: 14.96 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.074e-05/0.003642, allocations: 47.89 kB / 0.8145 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.381e-05/0.003676, allocations: 8.531 kB / 0.8145 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.371e-05/0.00377, allocations: 41.27 kB / 0.8146 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.727e-05/0.003817, allocations: 23.95 kB / 0.8146 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.003832, allocations: 4 kB / 0.8146 GB, free: 14.84 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002694/0.004102, allocations: 251.4 kB / 0.8148 GB, free: 14.59 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.11e-05/0.004123, allocations: 21.08 kB / 0.8148 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.302e-05/0.004146, allocations: 15.97 kB / 0.8149 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.004654, allocations: 219.4 kB / 0.8151 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.934e-06/0.004656, allocations: 1.156 kB / 0.8151 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.42e-07/0.004657, allocations: 0 / 0.8151 GB, free: 14.34 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.466e-06/0.00466, allocations: 0 / 0.8151 GB, free: 14.34 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0003806/0.005041, allocations: 425.2 kB / 0.8155 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.005074, allocations: 12.03 kB / 0.8155 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.005276, allocations: 59.27 kB / 0.8155 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.172e-05/0.005338, allocations: 115.3 kB / 0.8157 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.005353, allocations: 4.375 kB / 0.8157 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.005371, allocations: 8.375 kB / 0.8157 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.005567, allocations: 158.2 kB / 0.8158 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.005576, allocations: 0.6875 kB / 0.8158 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.005585, allocations: 4.375 kB / 0.8158 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.005589, allocations: 4.469 kB / 0.8158 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.435e-05/0.005634, allocations: 25.92 kB / 0.8158 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003237/0.005957, allocations: 296.2 kB / 0.8161 GB, free: 13.16 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001133/0.006071, allocations: 80.62 kB / 0.8162 GB, free: 13.07 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.458e-05/0.006095, allocations: 23.62 kB / 0.8162 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.006107, allocations: 0 / 0.8162 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.00613, allocations: 45.38 kB / 0.8163 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.006131, allocations: 0.9062 kB / 0.8163 GB, free: 12.98 MB / 0.7761 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.006188/0.01232, allocations: 1.872 MB / 0.8181 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.371e-05/0.01234, allocations: 51.41 kB / 0.8182 GB, free: 11.02 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.765e-05/0.01242, allocations: 165.9 kB / 0.8183 GB, free: 10.84 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.01245, allocations: 29.7 kB / 0.8183 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.483e-05/0.01251, allocations: 138.8 kB / 0.8185 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.745e-05/0.01256, allocations: 35.69 kB / 0.8185 GB, free: 10.62 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.01266, allocations: 79.16 kB / 0.8186 GB, free: 10.54 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.01278, allocations: 0.4961 MB / 0.8191 GB, free: 10.03 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001415/0.01293, allocations: 115.9 kB / 0.8192 GB, free: 9.918 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.01307, allocations: 119.8 kB / 0.8193 GB, free: 9.801 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003123/0.01338, allocations: 254.2 kB / 0.8195 GB, free: 9.551 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.01338, allocations: 0 / 0.8195 GB, free: 9.551 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004607/0.01384, allocations: 337.4 kB / 0.8199 GB, free: 9.215 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.01386, allocations: 8 kB / 0.8199 GB, free: 9.207 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.01386, allocations: 3.984 kB / 0.8199 GB, free: 9.203 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.01387, allocations: 0 / 0.8199 GB, free: 9.203 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003244/0.0142, allocations: 91.77 kB / 0.82 GB, free: 9.113 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.625e-06/0.0142, allocations: 400 / 0.82 GB, free: 9.113 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002078/0.01441, allocations: 31.95 kB / 0.82 GB, free: 9.082 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.01444, allocations: 23.94 kB / 0.82 GB, free: 9.059 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 (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.0001093/0.01455, allocations: 164.5 kB / 0.8202 GB, free: 8.887 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.146e-05/0.01462, allocations: 7.953 kB / 0.8202 GB, free: 8.879 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.527e-05/0.01466, allocations: 20.11 kB / 0.8202 GB, free: 8.863 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.01466, allocations: 0 / 0.8202 GB, free: 8.863 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.01466, allocations: 4 kB / 0.8202 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.01467, allocations: 0 / 0.8202 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008019/0.01547, allocations: 0.8321 MB / 0.821 GB, free: 7.934 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.01547, allocations: 0 / 0.821 GB, free: 7.934 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/0.01578, allocations: 91.81 kB / 0.8211 GB, free: 7.844 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.01578, allocations: 0 / 0.8211 GB, free: 7.844 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.855e-05/0.01581, allocations: 19.94 kB / 0.8211 GB, free: 7.824 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.01581, allocations: 0 / 0.8211 GB, free: 7.824 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.01581, allocations: 0 / 0.8211 GB, free: 7.824 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006463/0.01646, allocations: 0.5932 MB / 0.8217 GB, free: 7.211 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 8.283e-05/0.01654, allocations: 43.84 kB / 0.8217 GB, free: 7.168 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.01657, allocations: 4 kB / 0.8217 GB, free: 7.164 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.0168, allocations: 27.97 kB / 0.8218 GB, free: 7.137 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.078e-05/0.01685, allocations: 27.91 kB / 0.8218 GB, free: 7.109 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.115e-05/0.0169, allocations: 27.94 kB / 0.8218 GB, free: 7.082 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.149e-05/0.01693, allocations: 127.2 kB / 0.8219 GB, free: 6.957 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01693, allocations: 0 / 0.8219 GB, free: 6.957 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002407/0.01717, allocations: 51.94 kB / 0.822 GB, free: 6.906 MB / 0.7761 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.0001699/0.01734, allocations: 111.2 kB / 0.8221 GB, free: 6.789 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003433/0.01768, allocations: 287.3 kB / 0.8224 GB, free: 6.504 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01768, allocations: 0 / 0.8224 GB, free: 6.504 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.01788, allocations: 163.5 kB / 0.8225 GB, free: 6.34 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.01809, allocations: 43.91 kB / 0.8226 GB, free: 6.297 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/0.01962, allocations: 0.6088 MB / 0.8232 GB, free: 5.664 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.517e-05/0.01965, allocations: 63.34 kB / 0.8232 GB, free: 5.582 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.000278/0.01993, allocations: 84.73 kB / 0.8233 GB, free: 5.5 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.02026, allocations: 134 kB / 0.8234 GB, free: 5.367 MB / 0.7761 GB Notification: Performance of SimCode: time 9.62e-07/0.02026, allocations: 4 kB / 0.8234 GB, free: 5.363 MB / 0.7761 GB Notification: Performance of Templates: time 0.00511/0.02537, allocations: 3.85 MB / 0.8272 GB, free: 1.52 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.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.117635080125183]