Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001576/0.001576, allocations: 107.2 kB / 16.27 MB, free: 6.414 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.001537/0.001537, allocations: 190.9 kB / 17.2 MB, free: 5.953 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.45/1.45, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.802/2.802, allocations: 482.4 MB / 0.7553 GB, free: 6.996 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 66.58 kB / 0.9245 GB, free: 15.94 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.942/0.944, allocations: 162.2 MB / 1.083 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check): time 0.002099/0.9462, allocations: 0.7821 MB / 1.084 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001751/0.9479, allocations: 1.47 MB / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.699e-05/0.948, allocations: 1.188 kB / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.068e-05/0.9481, allocations: 8.688 kB / 1.085 GB, free: 52 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.771e-05/0.9481, allocations: 3.938 kB / 1.085 GB, free: 48 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005635/0.9487, allocations: 137.6 kB / 1.085 GB, free: 15.99 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 9.474e-05/0.9488, allocations: 55 kB / 1.085 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.718e-05/0.9489, allocations: 11.92 kB / 1.085 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 8.424e-05/0.9489, allocations: 28.45 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 9.68e-05/0.9491, allocations: 30.88 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.9491, allocations: 4.719 kB / 1.085 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005239/0.9496, allocations: 321 kB / 1.086 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.9496, allocations: 14.31 kB / 1.086 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.354e-05/0.9497, allocations: 27.17 kB / 1.086 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003766/0.9501, allocations: 203.5 kB / 1.086 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.9501, allocations: 3.938 kB / 1.086 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.152e-06/0.9501, allocations: 0.7188 kB / 1.086 GB, free: 15.76 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.9501, allocations: 4 kB / 1.086 GB, free: 15.76 MB / 0.8419 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.0007456/0.9509, allocations: 401.5 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.9509, allocations: 9.875 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004971/0.9514, allocations: 71.78 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001484/0.9516, allocations: 168 kB / 1.087 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.9516, allocations: 11.12 kB / 1.087 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/0.9517, allocations: 5.719 kB / 1.087 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004113/0.9521, allocations: 125.1 kB / 1.087 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.9521, allocations: 3.938 kB / 1.087 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.9521, allocations: 1.5 kB / 1.087 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.9521, allocations: 1.344 kB / 1.087 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005178/0.9527, allocations: 102.8 kB / 1.087 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006585/0.9533, allocations: 334.4 kB / 1.087 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007038/0.954, allocations: 155.7 kB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.9543, allocations: 62.69 kB / 1.087 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.9543, allocations: 1.156 kB / 1.087 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.9544, allocations: 36.39 kB / 1.087 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.422e-06/0.9544, allocations: 0 / 1.087 GB, free: 14.66 MB / 0.8419 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.01907/0.9735, allocations: 2.835 MB / 1.09 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.9735, allocations: 57.17 kB / 1.09 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.201e-05/0.9736, allocations: 100.8 kB / 1.09 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.9737, allocations: 26.89 kB / 1.09 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 6.551e-05/0.9738, allocations: 92.78 kB / 1.09 GB, free: 13.53 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.085e-05/0.9739, allocations: 38.41 kB / 1.09 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.974, allocations: 72.8 kB / 1.091 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.9742, allocations: 323.5 kB / 1.091 GB, free: 13.15 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007191/0.9749, allocations: 187.5 kB / 1.091 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007376/0.9757, allocations: 189.8 kB / 1.091 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.9771, allocations: 395.1 kB / 1.092 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.9771, allocations: 0 / 1.092 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001736/0.9789, allocations: 485.8 kB / 1.092 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.9789, allocations: 5.062 kB / 1.092 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.9789, allocations: 0.5156 kB / 1.092 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.979, allocations: 4.906 kB / 1.092 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009129/0.9799, allocations: 103 kB / 1.092 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.531e-05/0.9799, allocations: 4.656 kB / 1.092 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006297/0.9805, allocations: 49.48 kB / 1.092 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.037e-05/0.9806, allocations: 28.09 kB / 1.092 GB, free: 12.8 MB / 0.8419 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.0002236/0.9809, allocations: 117.8 kB / 1.092 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.362e-05/0.981, allocations: 7.125 kB / 1.092 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.114e-05/0.981, allocations: 13.95 kB / 1.092 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.9811, allocations: 2.328 kB / 1.092 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.9811, allocations: 3.938 kB / 1.092 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.9811, allocations: 2.094 kB / 1.092 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002691/0.9838, allocations: 1.046 MB / 1.093 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.9838, allocations: 4.562 kB / 1.093 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008852/0.9847, allocations: 107 kB / 1.093 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.766e-06/0.9847, allocations: 3.938 kB / 1.093 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.28e-05/0.9848, allocations: 22.91 kB / 1.093 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.9848, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.9848, allocations: 1.094 kB / 1.093 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.9875, allocations: 0.7925 MB / 1.094 GB, free: 11.65 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.9877, allocations: 121 kB / 1.094 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.434e-05/0.9877, allocations: 1.672 kB / 1.094 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007045/0.9885, allocations: 46.52 kB / 1.094 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.9886, allocations: 30.59 kB / 1.094 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.741e-05/0.9887, allocations: 24.38 kB / 1.094 GB, free: 11.54 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 6.215e-05/0.9887, allocations: 79.59 kB / 1.095 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9887, allocations: 3.938 kB / 1.095 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004597/0.9892, allocations: 54.56 kB / 1.095 GB, free: 11.45 MB / 0.8419 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.000228/0.9894, allocations: 112.4 kB / 1.095 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001697/0.9911, allocations: 433.8 kB / 1.095 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.9912, allocations: 0 / 1.095 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000804/0.992, allocations: 222 kB / 1.095 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003691/0.9923, allocations: 12.73 kB / 1.095 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004706/0.9971, allocations: 0.7839 MB / 1.096 GB, free: 10.96 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.9975, allocations: 0.695 MB / 1.097 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004548/0.998, allocations: 75.53 kB / 1.097 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of SimCode: time 5.92e-07/0.998, allocations: 0 / 1.097 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of Templates: time 0.008602/1.007, allocations: 3.786 MB / 1.101 GB, free: 10.03 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.InverseXDerivative_2_Check.pipe 2>&1)