Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|y_comp|der_y|der_y_comp|der_err|err",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 105.5 kB / 16.41 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001486/0.001487, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 67.91 kB / 1.019 GB, free: 9.367 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.845/0.8466, allocations: 151.6 MB / 1.167 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002795/0.8494, allocations: 0.7812 MB / 1.168 GB, free: 3.035 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002386/0.8519, allocations: 1.48 MB / 1.17 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.062e-05/0.8519, allocations: 0 / 1.17 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.192e-05/0.852, allocations: 0 / 1.17 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.606e-05/0.8521, allocations: 3.938 kB / 1.17 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007715/0.8529, allocations: 151.4 kB / 1.17 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001223/0.853, allocations: 47.91 kB / 1.17 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.423e-05/0.853, allocations: 3.984 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.904e-05/0.8531, allocations: 23.92 kB / 1.17 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.19e-05/0.8532, allocations: 39.83 kB / 1.17 GB, free: 1.273 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.8532, allocations: 4 kB / 1.17 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000551/0.8538, allocations: 319.4 kB / 1.17 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.966e-05/0.8538, allocations: 19.97 kB / 1.17 GB, free: 0.9375 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.042e-05/0.8539, allocations: 23.86 kB / 1.17 GB, free: 0.9141 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003857/0.8543, allocations: 207.6 kB / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.8543, allocations: 0 / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8543, allocations: 0 / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.8543, allocations: 0 / 1.17 GB, free: 0.7109 MB / 0.8887 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.0007588/0.8551, allocations: 395.2 kB / 1.171 GB, free: 288 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.8551, allocations: 8.922 kB / 1.171 GB, free: 280 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004971/0.8556, allocations: 72.75 kB / 1.171 GB, free: 208 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.8558, allocations: 186.1 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.8559, allocations: 8.375 kB / 1.171 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.194e-05/0.8559, allocations: 8.375 kB / 1.171 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003799/0.8563, allocations: 109.9 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.8563, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.8563, allocations: 3.828 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.8563, allocations: 8 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004478/0.8568, allocations: 103.9 kB / 1.171 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006289/0.8574, allocations: 332.6 kB / 1.172 GB, free: 15.37 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006061/0.8581, allocations: 150.4 kB / 1.172 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000268/0.8583, allocations: 60.75 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.946e-05/0.8584, allocations: 4 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.8584, allocations: 30.56 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.783e-06/0.8584, allocations: 0 / 1.172 GB, free: 15.11 MB / 0.9044 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.01879/0.8772, allocations: 2.857 MB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.973e-05/0.8773, allocations: 59.34 kB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.425e-05/0.8774, allocations: 97.84 kB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 6.63e-05/0.8775, allocations: 29.7 kB / 1.175 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.8775, allocations: 91.98 kB / 1.175 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 7.617e-05/0.8776, allocations: 39.45 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001627/0.8778, allocations: 69.58 kB / 1.175 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.8779, allocations: 318.8 kB / 1.175 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006699/0.8786, allocations: 191.8 kB / 1.175 GB, free: 11.23 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006077/0.8792, allocations: 187.8 kB / 1.176 GB, free: 11.05 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.8805, allocations: 397.8 kB / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.8805, allocations: 0 / 1.176 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001545/0.8821, allocations: 473.3 kB / 1.176 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.8821, allocations: 4 kB / 1.176 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.8821, allocations: 8 kB / 1.176 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.8822, allocations: 0 / 1.176 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008319/0.883, allocations: 103.8 kB / 1.177 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.883, allocations: 7.875 kB / 1.177 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006121/0.8837, allocations: 51.94 kB / 1.177 GB, free: 10.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.487e-05/0.8837, allocations: 19.94 kB / 1.177 GB, free: 9.996 MB / 0.9044 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.0001807/0.8839, allocations: 117.8 kB / 1.177 GB, free: 9.871 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.139e-05/0.884, allocations: 7.906 kB / 1.177 GB, free: 9.863 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.406e-05/0.8841, allocations: 15.95 kB / 1.177 GB, free: 9.844 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.8841, allocations: 4.094 kB / 1.177 GB, free: 9.84 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.8841, allocations: 7.875 kB / 1.177 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.8841, allocations: 0 / 1.177 GB, free: 9.832 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.8864, allocations: 1.051 MB / 1.178 GB, free: 8.672 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.8864, allocations: 0 / 1.178 GB, free: 8.672 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008215/0.8872, allocations: 103.8 kB / 1.178 GB, free: 8.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.998e-06/0.8872, allocations: 7.922 kB / 1.178 GB, free: 8.562 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.339e-05/0.8873, allocations: 27.94 kB / 1.178 GB, free: 8.535 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.8873, allocations: 0 / 1.178 GB, free: 8.535 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.8873, allocations: 0 / 1.178 GB, free: 8.535 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.8896, allocations: 0.7916 MB / 1.179 GB, free: 7.727 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.8898, allocations: 124.9 kB / 1.179 GB, free: 7.586 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.24e-05/0.8899, allocations: 4 kB / 1.179 GB, free: 7.582 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006758/0.8906, allocations: 43.94 kB / 1.179 GB, free: 7.539 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.301e-05/0.8907, allocations: 27.98 kB / 1.179 GB, free: 7.512 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.555e-05/0.8907, allocations: 27.94 kB / 1.179 GB, free: 7.484 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.487e-05/0.8908, allocations: 83.27 kB / 1.179 GB, free: 7.402 MB / 0.9044 GB Notification: Performance of sort global known variables: time 9e-08/0.8908, allocations: 0 / 1.179 GB, free: 7.402 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003999/0.8912, allocations: 52 kB / 1.179 GB, free: 7.352 MB / 0.9044 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.0002325/0.8914, allocations: 107.2 kB / 1.179 GB, free: 7.238 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.001417/0.8928, allocations: 428.8 kB / 1.18 GB, free: 6.82 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.8929, allocations: 3.938 kB / 1.18 GB, free: 6.816 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0007251/0.8936, allocations: 223.7 kB / 1.18 GB, free: 6.598 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003929/0.894, allocations: 9.125 kB / 1.18 GB, free: 6.59 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004272/0.8983, allocations: 0.7808 MB / 1.181 GB, free: 5.777 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.8986, allocations: 0.6924 MB / 1.181 GB, free: 5.059 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004442/0.8991, allocations: 79.23 kB / 1.181 GB, free: 4.98 MB / 0.9044 GB Notification: Performance of SimCode: time 5.71e-07/0.8991, allocations: 0 / 1.181 GB, free: 4.98 MB / 0.9044 GB Notification: Performance of Templates: time 0.006882/0.906, allocations: 3.78 MB / 1.185 GB, free: 1.195 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)